Compare commits

...
Sign in to create a new pull request.

37 commits

Author SHA1 Message Date
Packit
ea19b0619c Update to 1.26.0 upstream release
Upstream tag: v1.26.0
Upstream commit: 4e4f29ce

Commit authored by Packit automation (https://packit.dev/)
2025-12-19 20:00:02 +00:00
Alejandro Sáez
879815f21e rebuild 2025-10-10 13:13:51 +02:00
Packit
35ddcc4ce8 Update to 1.25.2 upstream release
- Resolves: rhbz#2391351

Upstream tag: v1.25.2
Upstream commit: 498ee9c2

Commit authored by Packit automation (https://packit.dev/)
2025-08-27 20:16:16 +00:00
Maxwell G
60aaee6390 Rebuild for golang-1.25.0 2025-08-15 16:10:14 -05:00
Maxwell G
324bb19e13 Revert "Rebuild for golang-1.25.0"
This reverts commit 6b1119e20c.
2025-08-15 15:29:03 -05:00
Maxwell G
6b1119e20c Rebuild for golang-1.25.0 2025-08-15 14:31:53 -05:00
Fedora Release Engineering
632559dd0b Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 19:11:55 +00:00
Packit
424ce48f52 Update to 1.25.1 upstream release
Upstream tag: v1.25.1
Upstream commit: f498dc8c

Commit authored by Packit automation (https://packit.dev/)
2025-07-18 15:47:15 +00:00
Alejandro Sáez
7f7f2c39ef Merge branch 'f41' into rawhide
Trying to fix divergent branches
2025-07-14 18:04:43 +02:00
Packit
6e3485730d Update to 1.25.0 upstream release
Upstream tag: v1.25.0
Upstream commit: a40a5e05

Commit authored by Packit automation (https://packit.dev/)
2025-06-23 11:01:04 +00:00
Yaakov Selkowitz
eade53f5c8 Enable on ppc64le
This syncs changes back from c10s:

4a0f16f6d7
034e94e7f0
0929f23d8d
2025-05-22 13:10:36 -04:00
Packit
8da1af0f1f Update to 1.24.1 upstream release
- Resolves: rhbz#2350494

Upstream tag: v1.24.1
Upstream commit: fc6a439f

Commit authored by Packit automation (https://packit.dev/)
2025-04-11 11:30:43 +02:00
Packit
a645831223 Update to 1.24.2 upstream release
- Resolves: rhbz#2358894

Upstream tag: v1.24.2
Upstream commit: f0cc62bf

Commit authored by Packit automation (https://packit.dev/)
2025-04-10 16:31:50 +00:00
Packit
ff525c696c Update to 1.24.1 upstream release
- Resolves: rhbz#2350494

Upstream tag: v1.24.1
Upstream commit: fc6a439f

Commit authored by Packit automation (https://packit.dev/)
2025-03-06 22:23:25 +00:00
Fedora Release Engineering
7251fceb8f Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 15:35:17 +00:00
Alejandro Sáez
a4f47c0f59 Enable fast forward merge 2025-01-09 13:08:41 +01:00
Packit
0b28f0edca Update to 1.24.0 upstream release
- Resolves: rhbz#2333136

Upstream tag: v1.24.0
Upstream commit: 0b7bffc7

Commit authored by Packit automation (https://packit.dev/)
2024-12-18 22:16:37 +00:00
Packit
a1251406aa Update to 1.24.0 upstream release
- Resolves: rhbz#2333136

Upstream tag: v1.24.0
Upstream commit: 0b7bffc7

Commit authored by Packit automation (https://packit.dev/)
2024-12-18 22:16:17 +00:00
Packit
ed764a4252 Update to 1.23.1 upstream release
- Resolves: rhbz#2314436

Upstream tag: v1.23.1
Upstream commit: 856ad78b

Commit authored by Packit automation (https://packit.dev/)
2024-09-24 14:09:59 +00:00
Packit
9ce6e76491 Update to 1.23.1 upstream release
- Resolves: rhbz#2314436

Upstream tag: v1.23.1
Upstream commit: 856ad78b

Commit authored by Packit automation (https://packit.dev/)
2024-09-24 14:09:40 +00:00
Alejandro Sáez
4a8bf75f66 Reverting the change back again to fedora-all
In this project I think it makes more sense to keep all of the branches
up to date automatically than worrying about the branches because it's a
final product that nothing uses as a dependency.
2024-08-09 18:50:21 +02:00
Alejandro Sáez
405ddf0886 Pull from upstream only in Rawhide 2024-08-09 18:15:58 +02:00
Alejandro Sáez
611c88732e Update patch and dependencies 2024-08-09 14:21:16 +00:00
Packit
e67ff375e5 Update to 1.23.0 upstream release
- Resolves: rhbz#2298253

Upstream tag: v1.23.0
Upstream commit: 56e9b85f

Commit authored by Packit automation (https://packit.dev/)
2024-08-09 14:21:16 +00:00
Fedora Release Engineering
d5aaf961f7 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 20:50:01 +00:00
Packit
28c7e44e89 [packit] 1.22.1 upstream release
- Resolves rhbz#2265452

Upstream tag: v1.22.1
Upstream commit: 26799555
2024-02-22 16:20:36 +00:00
FAS Alejandro Saez Morollon
ef5a917b4a Update .packit.yml
Clean it a little bit
2024-02-22 13:56:37 +00:00
Maxwell G
902b323225
Rebuild for golang 1.22.0 2024-02-11 22:01:13 +00:00
Alejandro Sáez
0dca9fbb35 Skip tests due to version issues
Also, increase the bundled dependencies.
2024-02-02 14:30:30 +01:00
Fedora Release Engineering
5edc67669f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 09:18:21 +00:00
Fedora Release Engineering
6127373221 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 17:01:21 +00:00
Packit
efec468d12 [packit] 1.22.0 upstream release
- Resolves rhbz#2242098

Upstream tag: v1.22.0
Upstream commit: 31a3c0de
2023-12-31 18:18:28 +00:00
Yaakov Selkowitz
db560ae46c Drop dynamic buildrequires
With the switch to vendored dependencies even in Fedora, these serve no
purpose, and cause unwanted (and unused) dependencies in ELN.
2023-12-13 22:45:49 -05:00
Alejandro Sáez
2b207cbf27 Update to 1.21.2
Switch to bundled dependencies to simplify the process.
Add bundle-deps.sh like rpms/golang has.
Remove 0001-Skip-TestCgoStacktrace2.patch
2023-12-13 16:36:54 +01:00
Alejandro Sáez
5956211b2b Set up Packit integration 2023-11-17 12:55:02 +01:00
Edjunior Machado
69727d9e50 Introduce CI gating 2023-11-17 10:53:48 +00:00
Alejandro Sáez
adee8e69e1 Migrated to SPDX license 2023-09-29 10:16:02 +02:00
11 changed files with 178 additions and 73 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

12
.gitignore vendored
View file

@ -1,3 +1,15 @@
/delve-1.20.1.tar.gz
/delve-1.20.2.tar.gz
/delve-1.21.0.tar.gz
/delve-1.21.2.tar.gz
/delve-1.22.0.tar.gz
/delve-1.22.1.tar.gz
/delve-1.23.0.tar.gz
/delve-1.23.1.tar.gz
/delve-1.24.0.tar.gz
/delve-1.24.1.tar.gz
/delve-1.24.2.tar.gz
/delve-1.25.0.tar.gz
/delve-1.25.1.tar.gz
/delve-1.25.2.tar.gz
/delve-1.26.0.tar.gz

27
.packit.yml Normal file
View file

@ -0,0 +1,27 @@
specfile_path: delve.spec
files_to_sync:
- delve.spec
- .packit.yaml
upstream_package_name: delve
upstream_project_url: https://github.com/go-delve/delve
downstream_package_name: delve
upstream_tag_template: v{version}
actions:
changelog-entry:
- bash -c "echo - New release ${PACKIT_PROJECT_VERSION}"
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
rawhide:
fast_forward_merge_into: [fedora-branched]
- job: koji_build
trigger: commit
dist_git_branches: fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches: fedora-all

View file

@ -1,24 +0,0 @@
From dff6a7871debe62db762eea34a1356f11fda305c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= <asm@redhat.com>
Date: Mon, 31 Jul 2023 14:46:54 +0200
Subject: [PATCH] Skip TestCgoStacktrace2
---
pkg/proc/proc_test.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/pkg/proc/proc_test.go b/pkg/proc/proc_test.go
index 0cb84f6b..88db4c43 100644
--- a/pkg/proc/proc_test.go
+++ b/pkg/proc/proc_test.go
@@ -4606,6 +4606,7 @@ func TestCgoStacktrace2(t *testing.T) {
skipOn(t, "upstream issue", "windows")
skipOn(t, "broken", "386")
skipOn(t, "broken", "arm64")
+ skipOn(t, "broken", "amd64")
protest.MustHaveCgo(t)
// If a panic happens during cgo execution the stacktrace should show the C
// function that caused the problem.
--
2.41.0

View file

@ -0,0 +1,37 @@
From 70a9601e1b6e4d97c2c34e1989eba5726df97131 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81lex=20S=C3=A1ez?= <asm@redhat.com>
Date: Wed, 31 Jul 2024 16:54:34 +0200
Subject: [PATCH] Skipping due issues with the go version in Fedora
If the Go package gets an update, Koschei will trigger a Delve build
that will fail because Delve is not supporting the newer version of Go.
Skipping these tests is not ideal but gore returns an error if the go
version is missing.
---
pkg/proc/proc_test.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pkg/proc/proc_test.go b/pkg/proc/proc_test.go
index 3437a2a4..a602dbcb 100644
--- a/pkg/proc/proc_test.go
+++ b/pkg/proc/proc_test.go
@@ -3236,6 +3236,7 @@ func TestShadowedFlag(t *testing.T) {
func TestDebugStripped(t *testing.T) {
// Currently only implemented for Linux ELF and macOS Mach-O executables.
// TODO(derekparker): Add support for PE.
+ skipOn(t, "not working on Fedora CI", "linux")
skipOn(t, "not working on windows", "windows")
skipOn(t, "not working on freebsd", "freebsd")
skipOn(t, "not working on linux/386", "linux", "386")
@@ -3265,6 +3266,7 @@ func TestDebugStripped(t *testing.T) {
func TestDebugStripped2(t *testing.T) {
// TODO(derekparker): Add support for PE.
+ skipOn(t, "not working on Fedora CI", "linux")
skipOn(t, "not working on windows", "windows")
skipOn(t, "not working on freebsd", "freebsd")
skipOn(t, "not working on linux/386", "linux", "386")
--
2.45.2

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.13.0.post1.dev2+g84134016c.

22
bundled-deps.sh Executable file
View file

@ -0,0 +1,22 @@
#! /bin/bash
# Copyright (C) 2021 Jakub Čajka jcajka@redhat.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
provides=""
for bundle in $(find -name modules.txt); do
provides="$provides\n$(cat "$bundle" | grep "^# " | grep -v "# explicit" | sed -r s/"^#.* => "// | sed -r "s/# //" | sed -r "s:(.*) v(.*):Provides\: bundled(golang(\1)) = \2:")"
done
echo -e "$provides" | sed 's/-/./g' | sort -u

View file

@ -1,19 +1,23 @@
# Run tests in check section
%bcond_without check
%ifarch ppc64le
%global exp "-tags=exp.linuxppc64le"
%endif
# https://github.com/go-delve/delve
%global goipath github.com/go-delve/delve
Version: 1.21.0
Version: 1.26.0
%global common_description %{expand:
Delve is a debugger for the Go programming language. The goal of the project
is to provide a simple, full featured debugging tool for Go. Delve should be
easy to invoke and easy to use. Chances are if you're using a debugger, things
aren't going your way. With that in mind, Delve should stay out of your way as
Delve is a debugger for the Go programming language. The goal of the project
is to provide a simple, full featured debugging tool for Go. Delve should be
easy to invoke and easy to use. Chances are if you're using a debugger, things
aren't going your way. With that in mind, Delve should stay out of your way as
much as possible.}
# Currently Delve only supports x86_64 and aarch64
%global golang_arches x86_64 aarch64
# Currently Delve only supports x86_64, aarch64, and ppc64le
%global golang_arches x86_64 aarch64 ppc64le
%gometa
@ -22,68 +26,60 @@ Release: %autorelease
Summary: A debugger for the Go programming language
# Detected licences
# - Expat License at 'LICENSE'
# It is a SPDX license already
License: MIT
URL: %{gourl}
Source0: %{gosource}
# RHEL builds with vendored dependencies
%if %{undefined rhel}
# This dependencies are only in use in x86_64
%ifarch x86_64
BuildRequires: golang(github.com/cilium/ebpf)
BuildRequires: golang(github.com/cilium/ebpf/link)
BuildRequires: golang(github.com/cilium/ebpf/ringbuf)
%endif
BuildRequires: golang(github.com/cosiner/argv)
BuildRequires: golang(github.com/creack/pty)
BuildRequires: golang(github.com/derekparker/trie)
BuildRequires: golang(github.com/go-delve/liner)
BuildRequires: golang(github.com/google/go-dap)
BuildRequires: golang(github.com/hashicorp/golang-lru/simplelru)
BuildRequires: golang(github.com/mattn/go-isatty)
BuildRequires: golang(github.com/sirupsen/logrus)
BuildRequires: golang(github.com/spf13/cobra)
BuildRequires: golang(github.com/spf13/cobra/doc)
BuildRequires: golang(golang.org/x/arch/arm64/arm64asm)
BuildRequires: golang(golang.org/x/arch/ppc64/ppc64asm)
BuildRequires: golang(golang.org/x/arch/x86/x86asm)
BuildRequires: golang(golang.org/x/sys/unix)
BuildRequires: golang(golang.org/x/tools/go/packages)
BuildRequires: golang(gopkg.in/yaml.v2)
BuildRequires: golang(go.starlark.net/resolve)
BuildRequires: golang(go.starlark.net/starlark)
BuildRequires: golang(go.starlark.net/syntax)
%endif
BuildRequires: lsof
BuildRequires: git
Patch1: 0001-Skip-TestCgoStacktrace2.patch
# Bundled/Vendored provides generated by bundled-deps.sh based on the in tree module data
# - in version filed substituted with . per versioning guidelines
Provides: bundled(golang(github.com/cilium/ebpf)) = 0.11.0
Provides: bundled(golang(github.com/cosiner/argv)) = 0.1.0
Provides: bundled(golang(github.com/cpuguy83/go.md2man/v2)) = 2.0.2
Provides: bundled(golang(github.com/creack/pty)) = 1.1.20
Provides: bundled(golang(github.com/derekparker/trie)) = 0.0.0.20230829180723.39f4de51ef7d
Provides: bundled(golang(github.com/go.delve/liner)) = 1.2.3.0.20231231155935.4726ab1d7f62
Provides: bundled(golang(github.com/google/go.dap)) = 0.12.0
Provides: bundled(golang(github.com/hashicorp/golang.lru)) = 1.0.2
Provides: bundled(golang(github.com/inconshreveable/mousetrap)) = 1.1.0
Provides: bundled(golang(github.com/mattn/go.colorable)) = 0.1.13
Provides: bundled(golang(github.com/mattn/go.isatty)) = 0.0.20
Provides: bundled(golang(github.com/mattn/go.runewidth)) = 0.0.13
Provides: bundled(golang(github.com/rivo/uniseg)) = 0.2.0
Provides: bundled(golang(github.com/russross/blackfriday/v2)) = 2.1.0
Provides: bundled(golang(github.com/sirupsen/logrus)) = 1.9.3
Provides: bundled(golang(github.com/spf13/cobra)) = 1.7.0
Provides: bundled(golang(github.com/spf13/pflag)) = 1.0.5
Provides: bundled(golang(github.com/stretchr/testify)) = 1.8.4
Provides: bundled(golang(golang.org/x/arch)) = 0.6.0
Provides: bundled(golang(golang.org/x/exp)) = 0.0.0.20230224173230.c95f2b4c22f2
Provides: bundled(golang(golang.org/x/mod)) = 0.14.0
Provides: bundled(golang(golang.org/x/sys)) = 0.17.0
Provides: bundled(golang(golang.org/x/tools)) = 0.14.0
Provides: bundled(golang(gopkg.in/yaml.v3)) = 3.0.1
Provides: bundled(golang(go.starlark.net)) = 0.0.0.20231101134539.556fd59b42f6
Patch0001: 0001-Skipping-due-issues-with-the-go-version-in-Fedora.patch
%description
%{common_description}
%prep
echo "=== Start prep ==="
%if %{defined rhel}
%goprep -k
# unpack vendored dependencies to GOPATH
tar c -C vendor/ . | tar x -C %{gobuilddir}/src
%autopatch -v -p1
%else
%goprep
%autopatch -v -p1
%generate_buildrequires
%go_generate_buildrequires
%endif
%build
echo "=== Start build ==="
%gobuild -o %{gobuilddir}/bin/dlv %{goipath}/cmd/dlv
%gobuild %{?exp} -o %{gobuilddir}/bin/dlv %{goipath}/cmd/dlv
echo "=== End build ==="
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
@ -92,20 +88,26 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
export GO111MODULE=off
export GOPATH=%{buildroot}/%{gopath}:%{gobuilddir}:%{gopath}
delvepath=%{buildroot}/%{gopath}/src/%{goipath}
mkdir -p $delvepath
mkdir -p $delvepath/pkg/dwarf/line
mkdir -p $delvepath/pkg/proc/internal
cp -r _fixtures $delvepath
cp -r pkg/dwarf $delvepath/pkg/
cp -r pkg/dwarf/line/_testdata $delvepath/pkg/dwarf/line
cp -r pkg/proc/internal/ebpf $delvepath/pkg/proc/internal/
pushd $delvepath
echo "=== Start tests ==="
%gotest $(go list ./... | awk '!/(cmd|scripts)/ {print $1}')
for d in $(go list %{?exp} ./... | grep -v cmd | grep -v scripts); do
go test %{?exp} ${d} -skip TestGuessSubstitutePath
done
echo "=== End tests ==="
rm -rf $delvepath
popd
%endif
%files
%license LICENSE %{?rhel:vendor/modules.txt}
%license LICENSE vendor/modules.txt
%doc CONTRIBUTING.md CHANGELOG.md
%doc Documentation/*
%{_bindir}/dlv

19
gating.yaml Normal file
View file

@ -0,0 +1,19 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
subject_type: koji_build
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}

6
plans/ci.fmf Normal file
View file

@ -0,0 +1,6 @@
summary: CI Gating Plan
discover:
how: fmf
url: https://src.fedoraproject.org/tests/delve
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (delve-1.21.0.tar.gz) = 2b2249b14d5565fbb59408251a1272db8e092ab7ac7cb65d33b810b89f1352d3b487a8d582dde8f1102d0362ee142e6106c98cd217c5031c9a09497d20a0cdde
SHA512 (delve-1.26.0.tar.gz) = 1b9d5c7b91bbf1df47c1fdb3553893497defe7a71ae9c7cef160cf15afac391fe77f66b748e028b29aa3456c21cfc079c2751afb788cb065ee8580501d21ad0e