diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..f0df181 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,4 @@ +sources: + go1.17.2.linux-386.tar.gz: 2d043c1503ca1ea6fd5a9c7d8d1afa58ec6185c3 + go1.17.2.linux-amd64.tar.gz: 75a9eea2035c3e80d76250b332110d1616807920 + go1.17.2.src.tar.gz: b78350fa6e4617c1eac66dff656eda8df0a13c1f diff --git a/golang-cross.spec b/golang-cross.spec index b060ddd..1f081e3 100644 --- a/golang-cross.spec +++ b/golang-cross.spec @@ -25,20 +25,20 @@ # %define _xemacs_sitestartdir %{_datadir}/xemacs/site-lisp %define __noautoreq '/bin/rc|/usr/bin/awk|libc.so' -%define api 1.13 +%define api 1.17 Name: golang-cross -Version: 1.13 +Version: 1.17.2 Release: 1 Summary: The Go Programming Language Group: Development/Other License: BSD URL: http://golang.org/ -Source0: https://storage.googleapis.com/golang/go%{api}.src.tar.gz +Source0: https://storage.googleapis.com/golang/go%{version}.src.tar.gz Source3: macros.go #bootstrap -Source10: https://storage.googleapis.com/golang/go%{api}.linux-amd64.tar.gz -Source11: https://storage.googleapis.com/golang/go%{api}.linux-386.tar.gz +Source10: https://storage.googleapis.com/golang/go%{version}.linux-amd64.tar.gz +Source11: https://storage.googleapis.com/golang/go%{version}.linux-386.tar.gz # for hostname BuildRequires: net-tools BuildRequires: go >= 1.12 @@ -106,6 +106,7 @@ export GOROOT_FINAL=%{_libdir}/%{name} export GOROOT=$RPM_BUILD_DIR/go-bootstrap/go export GOBIN="$GOROOT"/bin export GOROOT_BOOTSTRAP=$GOROOT + # TODO use the system linker to get the system link flags and build-id # when https://code.google.com/p/go/issues/detail?id=5221 is solved #export GO_LDFLAGS="-linkmode external -extldflags $RPM_LD_FLAGS" @@ -116,14 +117,17 @@ export GOROOT_BOOTSTRAP=$GOROOT #cd .. pushd src -./buildall.bash +#/buildall.bash #GOROOT_BOOTSTRAP=$GOROOT GOOS=linux GOARCH=arm GOARM=5 ./make.bash #GOROOT_BOOTSTRAP=$GOROOT GOOS=linux GOARCH=arm GOARM=7 ./make.bash +#GOROOT_BOOTSTRAP=$GOROOT GOOS=linux GOARCH=arm64 ./make.bash #GOROOT_BOOTSTRAP=$GOROOT GOOS=linux GOARCH=386 ./make.bash #GOROOT_BOOTSTRAP=$GOROOT GOOS=linux GOARCH=amd64 ./make.bash #GOROOT_BOOTSTRAP=$GOROOT GOOS=linux GOARCH=ppc64 ./make.bash #GOROOT_BOOTSTRAP=$GOROOT GOOS=linux GOARCH=mips64 ./make.bash -#GOROOT_BOOTSTRAP=$GOROOT GOOS=android ./make.bash +go env CGO_ENABLED +CGO_ENABLED=1 GOROOT_BOOTSTRAP=$GOROOT GOOS=android ./make.bash +go env CGO_ENABLED popd # build static version of documentation