Sync from SUSE:SLFO:Main go1.20 revision da61c2128d3d55da035b8a535e082b1c

This commit is contained in:
Adrian Schröter 2024-10-03 17:15:04 +02:00
parent 2306dc9a29
commit 336ebac3eb
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Feb 27 05:45:13 UTC 2024 - Jeff Kowalczyk <jkowalczyk@suse.com>
- Packaging improvements:
* Use %patch -P N instead of deprecated %patchN
-------------------------------------------------------------------
Tue Feb 6 22:28:04 UTC 2024 - Jeff Kowalczyk <jkowalczyk@suse.com>
- Packaging improvements:
* boo#1219988 ensure VERSION file is present in GOROOT
as required by go tool dist and go tool distpack
-------------------------------------------------------------------
Tue Feb 6 18:22:28 UTC 2024 - Jeff Kowalczyk <jkowalczyk@suse.com>

View File

@ -233,14 +233,14 @@ Go standard library compiled to a dynamically loadable shared object libstd.so
# go
%setup -q -n go
%patch7 -p1
%patch -P 7 -p1
%if %{with gccgo}
# Currently gcc-go does not manage an update-alternatives entry and will
# never be symlinked as "go", even if gcc-go is the only installed go toolchain.
# Patch go bootstrap scripts to find hardcoded go-(gcc-go-version) e.g. go-8
# Substitute defined gcc_go_version into gcc-go.patch
sed -i "s/\$gcc_go_version/%{gcc_go_version}/" $RPM_SOURCE_DIR/gcc-go.patch
%patch8 -p1
%patch -P 8 -p1
%endif
cp %{SOURCE4} .
@ -353,6 +353,8 @@ for ext in *.{go,c,h,s,S,py,syso,bin}; do
done
# executable bash scripts called by go tool, etc
find src -name "*.bash" -exec install -Dm655 \{\} %{buildroot}%{_datadir}/go/%{go_label}/\{\} \;
# VERSION file referenced by go tool dist and go tool distpack
find . -name VERSION -exec install -Dm655 \{\} %{buildroot}%{_datadir}/go/%{go_label}/\{\} \;
# Trace viewer html and javascript files moved from misc/trace in
# previous versions to src/cmd/trace/static in go1.19.
# static contains pprof trace viewer html javascript and markdown