Accepting request 1152227 from home:dimstar:rpm4.20:g

Prepare for RPM 4.20

OBS-URL: https://build.opensuse.org/request/show/1152227
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go1.17?expand=0&rev=43
This commit is contained in:
Jeff Kowalczyk 2024-02-27 13:50:42 +00:00 committed by Git OBS Bridge
parent 3cf738ee90
commit 22a1dcbcdf
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 27 11:33:15 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Use %patch -P N instead of deprecated %patchN.
-------------------------------------------------------------------
Fri Apr 14 23:41:22 UTC 2023 - Jeff Kowalczyk <jkowalczyk@suse.com>

View File

@ -230,14 +230,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} .