[packages/golang] do not drop regular "trace" package, but do drop actual tests; rel 2

atler atler at pld-linux.org
Mon Sep 8 14:28:49 CEST 2025


commit 335c8810776e3dff9cf7700ff8ab76556a5b4cd1
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Sep 8 14:25:12 2025 +0200

    do not drop regular "trace" package, but do drop actual tests; rel 2

 golang.spec | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/golang.spec b/golang.spec
index 2b4fdcc..1f928bf 100644
--- a/golang.spec
+++ b/golang.spec
@@ -26,7 +26,7 @@ Summary:	Go compiler and tools
 Summary(pl.UTF-8):	Kompilator języka Go i narzędzia
 Name:		golang
 Version:	1.25.1
-Release:	1
+Release:	2
 # source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
 License:	BSD and Public Domain
 Group:		Development/Languages
@@ -232,7 +232,7 @@ ln -sf %{_libdir}/%{name}/pkg/tool/linux_%{GOARCH}/cgo $RPM_BUILD_ROOT%{_bindir}
 %{__rm} \
 	$RPM_BUILD_ROOT%{_libdir}/%{name}/src/syscall/{mksyscall,mksysctl_openbsd,mksysnum_{dragonfly,freebsd,netbsd,openbsd}}.pl
 # ...and tests
-%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/src/internal/trace
+find $RPM_BUILD_ROOT%{_libdir}/%{name} -name '*_test.go' | xargs grep -l testing | xargs %{__rm}
 find $RPM_BUILD_ROOT%{_libdir}/%{name} -name testdata -prune | xargs %{__rm} -r
 
 # unenvize remaining scripts
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/golang.git/commitdiff/335c8810776e3dff9cf7700ff8ab76556a5b4cd1



More information about the pld-cvs-commit mailing list