1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 04:14:01 +02:00
Commit Graph

85 Commits

Author SHA1 Message Date
Jeffery To
46017682f4 golang: Set buildid and enable stripping for Go compiler
Doing both should make the compiler reproducible.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-13 16:07:27 +08:00
Jeffery To
d2f5e6966b golang: Rename GoPackage/Environment to GO_PKG_VARS
The variable is a list of shell variables; the new name is more in-line
with other parts the build system (CONFIGURE_VARS, MAKE_VARS, etc.).

GoPackage/Environment is kept (for now) in case other feeds are using
it.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-13 16:07:20 +08:00
Jeffery To
49a2ff493b golang: Add option to use external bootstrap Go
The default bootstrap Go (Go 1.4) can only be compiled on a limited
number of platforms compared to newer versions of Go.

This adds a config option to use an external bootstrap Go, e.g.
installed through the build system's package manager or downloaded from
golang.org.

See: https://github.com/openwrt/packages/issues/11731

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-05-12 17:42:48 +08:00
Jeffery To
a00a0230b4 golang: Update to 1.14.2
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-04-23 02:40:50 +08:00
Jeffery To
5f392c62a5 golang: Update to 1.14.1
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-23 21:25:52 +08:00
Jeffery To
074b417c67 golang: Update to 1.14
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-03-05 02:53:44 +08:00
Jeffery To
1772267747 golang: Update to 1.13.8
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-18 17:57:55 +08:00
Jeffery To
bddd1ec588 golang: Update files installed
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-05 14:19:34 +08:00
Jeffery To
89d3f0ab54 golang: Reorganize GoPackage/Environment and Makefile variables
* Move more environment variables into GoPackage/Environment
* Split GoPackage/Environment into target and build sections
* Do not set GOROOT_FINAL for Go packages (setting it should only affect
  the Go compiler and not Go packages)
* Set CGO_LDFLAGS to $(TARGET_LDFLAGS)
* Move GO_TARGET_* variables from golang-values.mk, and GO_VERSION_*
  variables from golang-version.mk, into golang/Makefile

This also updates runc, containerd, and docker-ce to reflect the changes
in GoPackage/Environment.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-05 14:19:34 +08:00
Jeffery To
3b5f1c73fb golang: Improve build isolation from user environment
* Set GOENV=off when building Go compiler and packages, to ignore user's
  environment configuration file
* Set GOCACHE when building host Go
* Unset GOTMPDIR, to use the buildroot temp directory instead of temp
  directories in build_dir

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-04 04:05:29 +08:00
Jeffery To
0dc4fa6efb golang: Update to 1.13.7, add PKG_CPE_ID to Makefile
This update includes fixes for[1]:
* CVE-2020-7919 - doesn't appear to be published publicly yet
* CVE-2020-0601 - a Windows-related issue

[1]: https://github.com/golang/go/issues?q=milestone%3AGo1.13.7+label%3ACherryPickApproved

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-02-03 04:58:58 +08:00
Jeffery To
b621d1b0f3 golang: Update for ASLR PIE tristate option change
The ASLR PIE option was changed to a tristate option
(openwrt/openwrt@19cbac7d26). This updates
the Go compiler package and golang-package.mk to account for this
change.

This also adds warning messages for when the user has selected PIE but
Go does not have PIE support for the chosen target.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-15 19:36:09 +08:00
Jeffery To
7459757039 golang: Update to 1.13.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-14 22:34:07 +08:00
Jeffery To
c377576734 golang: Add support for ASLR/PIE for host and target Go
This adds support to compile host and target Go as position-independent
executables.

Host Go will have PIE enabled if Go supports PIE on the host platform.

Target Go will have PIE enabled if Go supports PIE on the target
platform and CONFIG_PKG_ASLR_PIE is selected.

Go 1.13 supports PIE for x86 and arm targets; mips support is in
progress[1].

[1]: https://github.com/golang/go/issues/21222#issuecomment-542064462

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-08 19:29:54 +08:00
Jeffery To
12812d328f golang: Update valid os/arch combinations for host Go
The list is updated for Go 1.13.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2020-01-08 19:29:54 +08:00
Josef Schlehofer
802e8bf3f0
golang: Update to 1.13.5
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-12-09 23:27:24 +01:00
Jeffery To
e239dba400 golang: Update to 1.13.4
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-11-04 22:54:57 +08:00
Josef Schlehofer
10d55f63d6
golang: Update to version 1.13.3
Fixes CVE-2019-17596

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-10-19 22:53:25 +02:00
Josef Schlehofer
65b7bd6cc0
golang: Update to version 1.13.1
Fixes CVE-2019-16276

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-09-29 00:53:05 +02:00
Xingwang Liao
0849e32659 golang: Update to 1.13
Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
2019-09-06 11:59:04 +08:00
Jeffery To
da0dfb1856 golang: Update to 1.12.9
Includes fixes (in 1.12.8) for:
CVE-2019-14809 - https://nvd.nist.gov/vuln/detail/CVE-2019-14809
CVE-2019-9512 - https://nvd.nist.gov/vuln/detail/CVE-2019-9512
CVE-2019-9514 - https://nvd.nist.gov/vuln/detail/CVE-2019-9514

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-08-20 22:03:52 +08:00
Jeffery To
d0bf31431d golang: Update to 1.12.7
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-07-20 20:53:49 +08:00
Jeffery To
78e378fde3 golang: Update to 1.12.6
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-06-18 18:53:49 +08:00
Jeffery To
b1383b418c golang: Update to 1.12.5
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-05-13 20:08:03 +08:00
Josef Schlehofer
2fe6c2aedd golang: update to version 1.12.4
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-04-18 16:06:23 +08:00
Jeffery To
5d787e9656 golang: Update to 1.12.3
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-04-09 14:22:47 +08:00
Josef Schlehofer
c996ea6e4e golang: update to version 1.12.1
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2019-03-19 14:53:18 +08:00
Xingwang Liao
98986e858a golang: Bump to version 1.12
Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
2019-03-08 19:37:48 +08:00
Jeffery To
6c0c3cefbf golang: Update to latest version
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-01-28 15:59:28 +08:00
Jeffery To
d53d839739 golang: update to latest version
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-12-19 15:33:44 +08:00
Jeffery To
275e6c4a3d golang: Update to 1.11.2, fix build errors
When installing a newer host Go, be sure to remove the old host Go. Not
doing so causes errors[1] when trying to build target Go.

[1]: https://github.com/openwrt/packages/pull/7194#issuecomment-435948361

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-11-06 19:32:23 +08:00
Jeffery To
453749f12b golang: Update to 1.11.1, add mips64 / mips64el builds
Go 1.11 added softfloat support for 64-bit MIPS systems[1], so this also
adds builds for mips64 and mips64el.

[1] https://golang.org/doc/go1.11#mips

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-10-13 02:30:03 +08:00
Jeffery To
2fa8e650d7 golang: Download bootstrap source directly, use golang-specific mirrors
These changes are a result of this conversation:
1929265024 (r29531922)

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-29 14:57:50 +08:00
Jeffery To
1929265024 golang: update to 1.10.3, add mirrors
This also changes the bootstrap source URL to the official GitHub
mirror, to make building easier for places where Google sites aren't
accessible. Fixes #6326.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-06-27 11:35:48 +08:00
Jeffery To
c137c38257 golang: new packages
From golang.org:
The Go programming language is an open source project to make
programmers more productive.

This commit consists of two "parts":

* golang/host: Main Go compiler for host (installed to
  STAGING_DIR_HOST/lib/go-cross), used to cross-compile Go programs to
  be packaged.

* golang (and golang-src/golang-doc): Main Go compiler for on-target
  development. These packages are quite large, but I would expect only
  developers to install these.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2018-03-21 09:21:57 +08:00