77 Commits

Author SHA1 Message Date
alpine-mips-patches
1274258888 community/go: enable build on armel
There were ARMv5TE boards with 512 MiB (as in RPi1), that is enough
for go.

Also remove go-bootstrap from makedepends. In a cross-build it ends
up with depending on itself which is safe (abuild handles this) but
ugly. In normal build it is duplicated which is safe but ugly too.

Do not bump pkgrel since
 - no previous armel packages exist;
 - makedepends change makes no difference for the created apks.
2019-02-05 11:23:13 +00:00
Natanael Copa
d37614ce58 community/go: security upgrade to 1.11.5 (CVE-2019-6486)
fixes #9937
2019-01-29 16:31:53 +00:00
alpine-mips-patches
5b7cc97743 community/go: fix target float ABI on mips* 2018-12-19 10:00:36 +00:00
Natanael Copa
fa82fcd9c6 community/go: upgrade to 1.11.4 2018-12-18 13:34:15 +00:00
Natanael Copa
b46a3d4f3d Revert "community/go: Fix the cannot find runtime/cgo-warning"
This change broke building of various packages, like docker and
gomplate.

This reverts commit 9686793792a2c40a872ebbb2b86fa537f22491ad.
2018-11-22 15:20:21 +00:00
Natanael Copa
15c0fbc81e community/go: upgrade to 1.11.2 2018-11-14 11:53:55 +00:00
Andy Postnikov
b0c5f29688 community/go: upgrade to 1.11.1 2018-10-14 12:30:16 +02:00
Sören Tempel
11b2a03085 community/go: disable tests entirely on x86
Various tests fail on this arch, fixing them will be a lot of work.
2018-10-08 10:07:40 +02:00
Sören Tempel
9d5ff3ca7c community/go: disable os/exec test as well
Passes locally (even in abuild rootbld) but fails on the builders with
the following error message:

	testing: can't write /tmp/go-build314848300/b744/testlog.txt:
		write /tmp/go-build314848300/b744/testlog.txt: broken pipe
2018-10-08 09:37:26 +02:00
Sören Tempel
270f7916d1 community/go: partially enable the test suite
Still better than compiling and running a 'Hello World' example.
2018-10-07 18:52:21 +02:00
Sören Tempel
09c3c53f25 community/go: remove inaccurate comment 2018-10-07 18:52:21 +02:00
Sören Tempel
9686793792 community/go: Fix the cannot find runtime/cgo-warning
This warning seems to be emitted since we build with `-shared` for PIE
by default through our `default-buildmode-pie.patch`. Building with
shared linkage requires depending on CGO. The patch, however, doesn't
force a dependency on CGO. As with android we need to force external
linkage in order to always depend on CGO thereby resolving this warning.

I am unsure whether this is really the best way to fix the problem since
I don't know enough about the internals of the go compiler. However, I
am under the impression that the person who originally committed the
patch isn't familiar with the compiler internals either. Thus it's
probably ok to push this as is.
2018-10-07 18:41:55 +02:00
J0WI
0ed5524b74 community: (Bulk change) Update source urls to https using HTTPS Everywhere 2018-10-06 17:10:15 +00:00
Timo Teräs
15079f01d5 community/go: fix bootstrap
the provides is setup correctly later on based on cross compile
variables
2018-09-24 10:41:04 +00:00
Sören Tempel
11c5f257c5 community/go: remove tools subpackage
According to [0] it is no longer necessary to distribute the tools with
the package itself. Additionally, other distributions such as Arch Linux
and Void Linux no longer ship the tools with the go package itself.

[0]: https://gitlab.informatik.uni-bremen.de/BEDUINO-Master/projektbericht/merge_requests/64#note_118786
2018-09-04 12:04:20 +00:00
Sören Tempel
eaabed32cd community/go: remove cover from _gotools
See: 33f4f12cb690a294c334d3e87b2e3c3daccd7a3c
2018-09-04 12:04:20 +00:00
Sören Tempel
95bfde0568 community/go: add comment to set-external-linker.patch 2018-09-04 12:04:20 +00:00
Sören Tempel
263ca65d85 community/go: strip the binaries
It should be possible to strip go binaries these days [0]:

> We don't intentionally do anything that would make stripping a binary
not OK, and strip has worked for the past five years or so.

[0]: https://groups.google.com/forum/?_escaped_fragment_=topic/golang-dev/ABppMOjYP6w#!topic/golang-dev/ABppMOjYP6w
2018-09-04 12:04:20 +00:00
Natanael Copa
825ac37d06 community/go: upgrade to 1.11 2018-08-28 09:27:37 +00:00
Sören Tempel
11358778c5 community/go: remove compiler cache files 2018-08-27 14:06:49 +02:00
Andy Postnikov
5a057d92a9 community/go: upgrade to 1.10.3 2018-07-18 06:38:50 +00:00
Andy Postnikov
bf0dcee49c community/go: upgrade to 1.10.1 2018-04-05 07:01:37 +00:00
Natanael Copa
254d79ff3a community/go: update the tools 2018-02-28 14:31:55 +00:00
Natanael Copa
b02b8f39c2 community/go: upgrade to 1.10 2018-02-28 14:09:29 +00:00
Sören Tempel
4b171c25d3 community/go: security upgrade to 1.9.4
CVE-2018-6574
2018-02-11 15:08:59 +01:00
Nils Andreas Svee
21f49fd0f8 community/go: add mips arches 2017-12-11 09:01:40 +02:00
Sören Tempel
9ec5b02144 Remove Eivind Uggedal as a maintainer
He hasn't been active since 2015.
2017-11-01 16:55:24 +01:00
Roberto Oliveira
5a5dd7f7e5 community/go: upgrade to 1.9.2
Removed a ppc64le patch that was backported from upstream
and is now part of go 1.9.2
2017-10-26 12:51:18 +00:00
Natanael Copa
791c97a017 community/go: upgrade to 1.9.1 2017-10-12 14:51:29 +00:00
Sören Tempel
8c704d3917 Revert "community/go: upgrade to 1.9.1"
Even though the upgrade successfully compiled on my x86_64 laptop it
seems to fail on the x86_64 builder for some reason. Reverting the
upgrade until I figure out what's going on.

See: http://build.alpinelinux.org/buildlogs/build-edge-x86_64/community/go/go-1.9.1-r0.log

This reverts commit a51cc78c60ec483e63747c15c8321a4996db7fd0.
2017-10-08 13:38:18 +02:00
Sören Tempel
a51cc78c60 community/go: upgrade to 1.9.1 2017-10-08 13:29:13 +02:00
Roberto Oliveira
f82e428d9c community/go: backport ppc64le fix for regression in PPC64.rules
When a MOVDstorezero (8 bytes) is used the offset field
in the instruction must be a multiple of 4. This situation
had been corrected in the rules for other types of stores
but not for the zero case.
2017-09-26 16:00:50 +00:00
Christine Dodrill
6affaf07e4 community/go: don't build cross-compilers 2017-09-17 14:49:21 +02:00
Roberto Oliveira
fdb4bb35e3 community/go: backport ppc64le fix for _main
_main has an early check to verify if a binary is statically or dynamically
linked that depends on R0 being zero. R0 is not guaranteed to be zero at that
point and this can break Go on ppc64le.
2017-09-12 23:35:39 +00:00
Sören Tempel
33f4f12cb6 community/go: upgrade to 1.9
Also remove cover:

> For Go releases 1.5 and later, this tool lives in the standard
repository. The code here is not maintained.

See: https://godoc.org/golang.org/x/tools/cmd/cover
2017-08-29 17:56:44 +00:00
Timo Teräs
57f6e7c808 community/go: fix subpkgdir vs. pkgdir 2017-06-19 15:25:37 +03:00
Timo Teräs
bbff2dbbfb community/go: upgrade to 1.8.3, modernize aport
- remove unneeded "|| return 1"
- make copying sources as separate step
- fix 'rootpkg' to be invokable as individual step multiple times
  (fix environment, and not moving things out of $builddir)
- do not ship cross-built tools in 'go-tools' package
2017-06-19 12:07:30 +00:00
Tuan M. Hoang
b5f0896153 community/go: default buildmode=pie on s390x 2017-06-09 15:30:28 +00:00
Roberto Oliveira
80d3e2de0e community/go: fix external linker for ppc64le
The external linker for ppc64le was pointing to /lib64/ld-musl-ppc64le.so.1
but the valid path for alpine ppc64le is /lib/ld-musl-powerpc64le.so.1.

This issue was found by Lynn Boger from IBM go compiler team.
2017-06-08 14:44:50 +00:00
Natanael Copa
fbd5379554 community/go: set external linker for all archs 2017-05-16 09:53:30 +00:00
Ed Robinson
34c3049c67 community/go: upgrade to 1.8.1
set-external-linker.patch adresses golang/go#18243
2017-05-16 09:53:30 +00:00
Roberto Oliveira
717f370d39 community/go: enable build on ppc64le.
Go package build was disabled on ppc64le because it was missing go-bootstrap dependency.
As the last version of go-bootstrap (1.4) is not available for ppc64le, I cross-compiled
it and uploaded it to: ftp://ftp.unicamp.br/pub/ppc64el/alpine/go-bootstrap/

The go-bootstrap is now installed in build-edge-ppc64le and can compile the go package.
2017-04-18 13:48:27 +00:00
Natanael Copa
6bd986c913 community/go: disable go on ppc64le 2017-04-07 14:57:28 +00:00
Timo Teräs
f5c4b29891 community/go: cross-build support 2017-02-27 06:23:05 +00:00
Timo Teräs
0030ca9f77 community/go: use any go-bootstrap, add s390x
Now that go-bootstrap can be the bootstrap package (for x86*) or
the real go package, search for the right bootstrap go directory
to use. This also adds s390x arch mapping.
2017-02-23 16:46:14 +02:00
Timo Teräs
b6efdc05ed community/go: provide go-bootstrap
This enables Go to compile itself with previous Go build. Should
improve build times. More importantly, this is prerequisite to get
the cross compilation makedependencies right. Support for cross-compiling
Go to new arches is due out soon.
2017-02-23 16:39:43 +02:00
Timo Teräs
4777ebdef1 community/go: do not use sse2 on x86
ref #6788
2017-02-07 14:57:53 +02:00
Natanael Copa
4a155b59b4 community/go: upgrade to 1.7.4 2017-01-18 16:49:31 +00:00
Natanael Copa
1fc3f7b4df community/go: upgrade to 1.7.3 2016-10-28 11:04:12 +00:00
Sören Tempel
da2574c7e3 community/go: split go-cross into multiple subpackages 2016-10-06 18:45:30 +02:00