Hello community, here is the log from the commit of package go1.9 for openSUSE:Factory checked in at 2019-06-27 15:23:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/go1.9 (Old) and /work/SRC/openSUSE:Factory/.go1.9.new.4615 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "go1.9" Thu Jun 27 15:23:08 2019 rev:8 rq:711930 version:1.9.7 Changes: -------- --- /work/SRC/openSUSE:Factory/go1.9/go1.9.changes 2019-05-25 13:15:07.508450559 +0200 +++ /work/SRC/openSUSE:Factory/.go1.9.new.4615/go1.9.changes 2019-06-27 15:23:09.441170240 +0200 @@ -1,0 +2,6 @@ +Sat Jun 22 09:38:30 UTC 2019 - Matwey Kornilov <[email protected]> + +- Enable %arm architecture +- Add gcc9-go.patch: bootstrap works only with gcc9 at armv7l (boo#974800) + +------------------------------------------------------------------- New: ---- gcc9-go.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ go1.9.spec ++++++ --- /var/tmp/diff_new_pack.3NWEup/_old 2019-06-27 15:23:10.549172124 +0200 +++ /var/tmp/diff_new_pack.3NWEup/_new 2019-06-27 15:23:10.553172131 +0200 @@ -107,6 +107,7 @@ # PATCH-FIX-UPSTREAM [email protected] - find /usr/bin/go-5 when bootstrapping with gcc5-go Patch8: gcc6-go.patch Patch9: gcc7-go.patch +Patch10: gcc9-go.patch # PATCH-FIX-UPSTREAM (compiler-rt): Fix sanitizer build against latest glibc Patch100: fix-sanitizer-build-against-latest-glibc.patch Patch101: gcc9-rsp-clobber.patch @@ -120,8 +121,12 @@ # SLE12 or Leap 42.x BuildRequires: gcc6-go %else +%ifarch %arm +BuildRequires: gcc9-go +%else BuildRequires: gcc7-go %endif +%endif %else # no gcc-go BuildRequires: go1.4 @@ -149,7 +154,7 @@ # go-vim/emacs were separate projects starting from 1.4 Obsoletes: go-emacs <= 1.3.3 Obsoletes: go-vim <= 1.3.3 -ExclusiveArch: %ix86 x86_64 aarch64 ppc64 ppc64le s390x +ExclusiveArch: %ix86 x86_64 %arm aarch64 ppc64 ppc64le s390x %description Go is an expressive, concurrent, garbage collected systems programming language @@ -204,9 +209,13 @@ # SLE12 or Leap 42.x %patch8 -p1 %else +%ifarch %arm +%patch10 -p1 +%else %patch9 -p1 %endif %endif +%endif cp %{SOURCE4} . # setup go_arch (BSD-like scheme) ++++++ gcc9-go.patch ++++++ Index: go/src/cmd/dist/buildtool.go =================================================================== --- go.orig/src/cmd/dist/buildtool.go +++ go/src/cmd/dist/buildtool.go @@ -164,7 +164,7 @@ func bootstrapBuildTools() { // Use the math_big_pure_go build tag to disable the assembly in math/big // which may contain unsupported instructions. cmd := []string{ - pathf("%s/bin/go", goroot_bootstrap), + pathf("%s/bin/go-9", goroot_bootstrap), "install", "-gcflags=-l", "-tags=math_big_pure_go", Index: go/src/make.bash =================================================================== --- go.orig/src/make.bash +++ go/src/make.bash @@ -41,7 +41,7 @@ # This is used by cgo. Default is CC. # # CXX_FOR_TARGET: Command line to run to compile C++ code for GOARCH. -# This is used by cgo. Default is CXX, or, if that is not set, +# This is used by cgo. Default is CXX, or, if that is not set, # "g++" or "clang++". # # FC: Command line to run to compile Fortran code for GOARCH. @@ -120,8 +120,8 @@ echo '##### Building Go bootstrap tool.' echo cmd/dist export GOROOT="$(cd .. && pwd)" GOROOT_BOOTSTRAP=${GOROOT_BOOTSTRAP:-$HOME/go1.4} -if [ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]; then - echo "ERROR: Cannot find $GOROOT_BOOTSTRAP/bin/go." >&2 +if [ ! -x "$GOROOT_BOOTSTRAP/bin/go-9" ]; then + echo "ERROR: Cannot find $GOROOT_BOOTSTRAP/bin/go-9." >&2 echo "Set \$GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4." >&2 exit 1 fi @@ -131,7 +131,7 @@ if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; exit 1 fi rm -f cmd/dist/dist -GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist +GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go-9" build -o cmd/dist/dist ./cmd/dist # -e doesn't propagate out of eval, so check success by hand. eval $(./cmd/dist/dist env -p || echo FAIL=true) Index: go/src/make.rc =================================================================== --- go.orig/src/make.rc +++ go/src/make.rc @@ -46,13 +46,13 @@ echo cmd/dist GOROOT = `{cd .. && pwd} if(! ~ $#GOROOT_BOOTSTRAP 1) GOROOT_BOOTSTRAP = $home/go1.4 -if(! test -x $GOROOT_BOOTSTRAP/bin/go){ - echo 'ERROR: Cannot find '$GOROOT_BOOTSTRAP'/bin/go.' >[1=2] +if(! test -x $GOROOT_BOOTSTRAP/bin/go-9){ + echo 'ERROR: Cannot find '$GOROOT_BOOTSTRAP'/bin/go-9.' >[1=2] echo 'Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.' >[1=2] exit bootstrap } rm -f cmd/dist/dist -GOROOT=$GOROOT_BOOTSTRAP GOOS='' GOARCH='' $GOROOT_BOOTSTRAP/bin/go build -o cmd/dist/dist ./cmd/dist +GOROOT=$GOROOT_BOOTSTRAP GOOS='' GOARCH='' $GOROOT_BOOTSTRAP/bin/go-9 build -o cmd/dist/dist ./cmd/dist eval `{./cmd/dist/dist env -9} echo
