aboutsummaryrefslogtreecommitdiff
path: root/lang/golang
Commit message (Collapse)AuthorAge
* golang: Update to 1.14.2Jeffery To2020-04-23
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.14.1Jeffery To2020-03-23
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.14Jeffery To2020-03-05
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.13.8Jeffery To2020-02-18
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update files installedJeffery To2020-02-05
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Reorganize GoPackage/Environment and Makefile variablesJeffery To2020-02-05
| | | | | | | | | | | | | | | * 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>
* golang: Improve build isolation from user environmentJeffery To2020-02-04
| | | | | | | | | | * 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>
* golang: Update to 1.13.7, add PKG_CPE_ID to MakefileJeffery To2020-02-03
| | | | | | | | | | 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>
* golang: Update for ASLR PIE tristate option changeJeffery To2020-01-15
| | | | | | | | | | | | The ASLR PIE option was changed to a tristate option (openwrt/openwrt@19cbac7d264dfca1f75849de64beb98830fbb1e4). 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>
* golang: Update to 1.13.6Jeffery To2020-01-14
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Add support for ASLR/PIE for Go packagesJeffery To2020-01-14
| | | | | | | | | | | | | | | | | This adds support to compile position-independent executables for packages that use golang-package.mk. Go packages will have PIE enabled if: * Go supports PIE on the target platform; * CONFIG_PKG_ASLR_PIE is selected; and * PKG_ASLR_PIE (for the package) is not set to 0 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>
* golang: Fix selection of GOARM valueJeffery To2020-01-14
| | | | | | | | | This fixes how GOARM is selected for arm platforms, based on support for VFP/VFPv3 rather than CPU version. Fixes #10967. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Add support for ASLR/PIE for host and target GoJeffery To2020-01-08
| | | | | | | | | | | | | | | | | 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>
* golang: Make golang-values.mk more readableJeffery To2020-01-08
| | | | | | | This replaces conditional functions with conditional directives to make golang-values.mk more readable. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Strip whitespace when using Go package variablesJeffery To2020-01-08
| | | | | | | This adds calls to the strip function in golang-package.mk when using variables expected to be set by Go packages. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update valid os/arch combinations for host GoJeffery To2020-01-08
| | | | | | The list is updated for Go 1.13. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update variables unexported in golang-values.mkJeffery To2020-01-08
| | | | | | The lists of variables are updated for Go 1.13. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Re-format environment variable unexportsJeffery To2020-01-08
| | | | | | | | | | This changes the formatting of environment variable unexports in golang-values.mk to be more maintainable, and to document the sources of variables. There should be no change to the actual list of variables unexported. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Format TARGET_LDFLAGS for gccJeffery To2019-12-29
| | | | | | | go invokes the external linker by calling gcc, so -zxxx options in TARGET_LDFLAGS (in golang-package.mk) need to be formatted as -Wl,z,xxx. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Fix ldflags when GO_PKG_LDFLAGS is setJeffery To2019-12-26
| | | | | | | | | | | | | | | | | go build/install supports multiple -ldflags arguments, but they are not combined; for each package, the latest match on the command line is used.[1] Previously, the main executable would not be affected by the default ldflags if GO_PKG_LDFLAGS or GO_PKG_LDFLAGS_X were set. (The default ldflags instructs go to use the external linker.) This fixes golang-package.mk so that the default ldflags take effect in all cases. [1]: https://golang.org/cmd/go/#hdr-Compile_packages_and_dependencies Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.13.5Josef Schlehofer2019-12-09
| | | | Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* golang: Update to 1.13.4Jeffery To2019-11-04
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to version 1.13.3Josef Schlehofer2019-10-19
| | | | | | Fixes CVE-2019-17596 Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* golang: Update to version 1.13.1Josef Schlehofer2019-09-29
| | | | | | Fixes CVE-2019-16276 Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* golang: Use new -trimpath option when compiling Go packagesJeffery To2019-09-13
| | | | | | | | | | | | | | Go 1.13 added a new -trimpath option to the "go build" command[1] that removes system paths from compiled executables. This replaces the previous -trimpath flags. There are still system paths in the compiled executable (for crti.o and crtn.o, when cross-compiling); these appear to be stripped during the packaging process. [1]: https://golang.org/doc/go1.13#trimpath Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.13Xingwang Liao2019-09-06
| | | | Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
* golang: Update to 1.12.9Jeffery To2019-08-20
| | | | | | | | | 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>
* golang: Update to 1.12.7Jeffery To2019-07-20
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.12.6Jeffery To2019-06-18
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Add the ability to custom build environmentXingwang Liao2019-06-10
| | | | | | by overwrite the GoPackage/Environment definition Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
* golang: Update to 1.12.5Jeffery To2019-05-13
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang-libraries: Remove library packagesJeffery To2019-05-03
| | | | | | | | | | These Go library packages were added to support obfs4proxy. As obfs4proxy was updated to allow dependency management by the Go compiler, these packages no longer have any dependants. This removes these packages from the feed. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: update to version 1.12.4Josef Schlehofer2019-04-18
| | | | Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* golang: Update to 1.12.3Jeffery To2019-04-09
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Add support for setting gcflags/ldflags from package MakefileJeffery To2019-03-21
| | | | | | | | | | | | | | | | This adds several variables for Go package Makefiles: * GO_PKG_GCFLAGS - go tool compile arguments * GO_PKG_LDFLAGS - go tool link arguments * GO_PKG_LDFLAGS_X - go tool link -X definitions Settings these will add the corresponding flags to the go install command line. (Other command line arguments can still be added by passing them as the first argument to GoPackage/Build/Compile.) This also adds Go's runtime environment variables (GOGC, GOMAXPROCS, GOTRACEBACK) to the unexport list. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: update to version 1.12.1Josef Schlehofer2019-03-19
| | | | Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
* golang: Bump to version 1.12Xingwang Liao2019-03-08
| | | | Signed-off-by: Xingwang Liao <kuoruan@gmail.com>
* golang: Ignore GOFLAGS, GO111MODULE environment variablesJeffery To2019-02-11
| | | | | | These were added in Go 1.11. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Install go.mod/go.sum by defaultJeffery To2019-02-11
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Install files with .cpp/.hpp suffixes by defaultJeffery To2019-02-11
| | | | | | This also updates the URL for dh-golang. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Fix handling of filenames with spacesJeffery To2019-02-11
| | | | | | Closes #7127. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to latest versionJeffery To2019-01-28
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: update to latest versionJeffery To2018-12-19
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* Merge pull request #7617 from neheb/sipHannu Nyman2018-12-14
|\ | | | | golang-github-dchest-siphash: Switch to versioned releases
| * golang-github-dchest-siphash: Switch to versioned releasesRosen Penev2018-12-08
| | | | | | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* | golang: fix package clean / autoremove, add output whitespaceJeffery To2018-12-12
|/ | | | | | | | | | | | | | | go 1.11 added modules, which are cached locally. The go developers have decided to make this cache read-only (golang/go#27455), which causes problems with package clean / autoremove (#7635). This adds a call to clear this cache right after building, as currently there is no easy way to hook into autoremove (it may be possible to hook into package clean). This also adds whitespace (blank lines) to certain places in make output, to aid debugging. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.11.2, fix build errorsJeffery To2018-11-06
| | | | | | | | | 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>
* Merge pull request #5781 from jefferyto/obfs4proxyHannu Nyman2018-11-04
|\ | | | | obfs4proxy: new packages (including dependencies)
| * obfs4proxy: new packages (including dependencies)Jeffery To2018-06-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | obfs4proxy is a Tor pluggable transport proxy, implementing obfs4. This commit also includes obfs4proxy's build time dependencies: * golang-github-agl-ed25519: Go implementation of Ed25519 signature algorithm * golang-github-dchest-siphash: Go implementation of SipHash-2-4 * golang-golang-x-crypto: Go supplementary cryptography libraries * golang-golang-x-net: Go supplementary network libraries * golang-golang-x-sys: Go packages for interaction with the OS * golang-golang-x-text: Go text processing support * golang-torproject-pluggable-transports-goptlib: Tor pluggable transports library for Go Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* | golang: Update to 1.11.1, add mips64 / mips64el buildsJeffery To2018-10-13
| | | | | | | | | | | | | | | | | | 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>