Accepting request 998279 from home:jfkw:branches:devel:languages:go
- Bootstrap using go1.16 on SLE-15 and newer. go1.16 is bootstrapped using gcc-go 11 or 12. This allows dropping older versions of Go from Factory. OBS-URL: https://build.opensuse.org/request/show/998279 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go1.17?expand=0&rev=34
This commit is contained in:
parent
ef3d7d025e
commit
821fdd06aa
@ -1,7 +1,9 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 18 08:36:32 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
Thu Aug 18 08:36:32 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
- bootstrap go1.17 via go1.16 (which uses gcc-go) on SLE15+
|
- Bootstrap using go1.16 on SLE-15 and newer. go1.16 is
|
||||||
|
bootstrapped using gcc-go 11 or 12. This allows dropping older
|
||||||
|
versions of Go from Factory.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Aug 1 15:40:03 UTC 2022 - Jeff Kowalczyk <jkowalczyk@suse.com>
|
Mon Aug 1 15:40:03 UTC 2022 - Jeff Kowalczyk <jkowalczyk@suse.com>
|
||||||
|
25
go1.17.spec
25
go1.17.spec
@ -37,15 +37,10 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# By default use go and not gccgo
|
# Bootstrap go toolchain using existing go package go_bootstrap_version
|
||||||
|
# To bootstrap using gccgo use '--with gccgo'
|
||||||
%bcond_with gccgo
|
%bcond_with gccgo
|
||||||
|
|
||||||
# The fallback boostrap method via %%{go_bootstrap_version} would work for Leap
|
|
||||||
# but we don't have %%{go_bootstrap_version} in there. Same for SLE15+
|
|
||||||
#if ( 0%{?suse_version} < 1550 && 0%{?is_opensuse} ) || ( 0%{?suse_version} >= 1500 && ! 0%{?is_opensuse} )
|
|
||||||
#bcond_without gccgo
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# The fallback bootstrap method via go1.4 doesn't work
|
# The fallback bootstrap method via go1.4 doesn't work
|
||||||
# for aarch64 nor ppc64le because go 1.4 did not support that architecture.
|
# for aarch64 nor ppc64le because go 1.4 did not support that architecture.
|
||||||
%if 0%{?suse_version} == 1315
|
%if 0%{?suse_version} == 1315
|
||||||
@ -339,14 +334,14 @@ sed -i "s/\$go_label/%{go_label}/" $GOROOT/bin/gdbinit.d/go.gdb
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# update-alternatives
|
# update-alternatives
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/gdbinit.d
|
mkdir -p %{buildroot}%{_sysconfdir}/gdbinit.d
|
||||||
touch %{buildroot}%{_sysconfdir}/alternatives/{go,gofmt,go.gdb}
|
touch %{buildroot}%{_sysconfdir}/alternatives/{go,gofmt,go.gdb}
|
||||||
ln -sf %{_sysconfdir}/alternatives/go %{buildroot}%{_bindir}/go
|
ln -sf %{_sysconfdir}/alternatives/go %{buildroot}%{_bindir}/go
|
||||||
ln -sf %{_sysconfdir}/alternatives/gofmt %{buildroot}%{_bindir}/gofmt
|
ln -sf %{_sysconfdir}/alternatives/gofmt %{buildroot}%{_bindir}/gofmt
|
||||||
ln -sf %{_sysconfdir}/alternatives/go.gdb %{buildroot}%{_sysconfdir}/gdbinit.d/go.gdb
|
ln -sf %{_sysconfdir}/alternatives/go.gdb %{buildroot}%{_sysconfdir}/gdbinit.d/go.gdb
|
||||||
|
|
||||||
# documentation and examples
|
# documentation and examples
|
||||||
# fix documetation permissions (rpmlint warning)
|
# fix documetation permissions (rpmlint warning)
|
||||||
|
Loading…
Reference in New Issue
Block a user