Accepting request 998363 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/998363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/go1.18?expand=0&rev=28
This commit is contained in:
parent
b0aed9571d
commit
ff00e95546
@ -1,8 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 19 15:47:43 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- bootstrap openSUSE Factory via go1.16, so that we can drop
|
||||
older versions of go from Factory
|
||||
- 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>
|
||||
|
29
go1.18.spec
29
go1.18.spec
@ -31,20 +31,15 @@
|
||||
%define go_bootstrap_version go1.16
|
||||
%if 0%{?sle_version} == 150000
|
||||
# SLE15 or Leap 15.x
|
||||
%define gcc_go_version 7
|
||||
%define gcc_go_version 11
|
||||
%else
|
||||
%define gcc_go_version 12
|
||||
%endif
|
||||
%endif
|
||||
|
||||
# By default use go, use '--with gccgo' to bootstrap via 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
|
||||
# Bootstrap go toolchain using existing go package go_bootstrap_version
|
||||
# To bootstrap using gccgo use '--with gccgo'
|
||||
%bcond_with gccgo
|
||||
|
||||
# The fallback bootstrap method via go1.4 doesn't work
|
||||
# for aarch64 nor ppc64le because go 1.4 did not support that architecture.
|
||||
@ -339,14 +334,14 @@ sed -i "s/\$go_label/%{go_label}/" $GOROOT/bin/gdbinit.d/go.gdb
|
||||
%endif
|
||||
|
||||
# update-alternatives
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/gdbinit.d
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/{go,gofmt,go.gdb}
|
||||
ln -sf %{_sysconfdir}/alternatives/go %{buildroot}%{_bindir}/go
|
||||
ln -sf %{_sysconfdir}/alternatives/gofmt %{buildroot}%{_bindir}/gofmt
|
||||
ln -sf %{_sysconfdir}/alternatives/go.gdb %{buildroot}%{_sysconfdir}/gdbinit.d/go.gdb
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/gdbinit.d
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/{go,gofmt,go.gdb}
|
||||
ln -sf %{_sysconfdir}/alternatives/go %{buildroot}%{_bindir}/go
|
||||
ln -sf %{_sysconfdir}/alternatives/gofmt %{buildroot}%{_bindir}/gofmt
|
||||
ln -sf %{_sysconfdir}/alternatives/go.gdb %{buildroot}%{_sysconfdir}/gdbinit.d/go.gdb
|
||||
|
||||
# documentation and examples
|
||||
# fix documetation permissions (rpmlint warning)
|
||||
|
Loading…
Reference in New Issue
Block a user