go: Refactor patches for 1.13.3
PATCH v5 1/3 go: Refactor patches for 1.13.3
From: Alex Kube <[email protected]>
Signed-off-by Alex Kube <[email protected]>
--- ...ow-CC-and-CXX-to-have-multiple-words.patch | 38 +++ ...ent-based-hash-generation-less-pedan.patch | 226 ++++++++++++++ ...-to-be-overridden-in-the-environment.patch | 54 ++++ ...4-ld-add-soname-to-shareable-objects.patch | 50 ++++ ...de-CC-when-building-dist-and-go_boot.patch | 44 +++ ...dist-separate-host-and-target-builds.patch | 279 ++++++++++++++++++ ...d-go-make-GOROOT-precious-by-default.patch | 113 +++++++ ...008-use-GOBUILDMODE-to-set-buildmode.patch | 47 +++ ...place-glibc-dynamic-linker-with-musl.patch | 134 +++++++++ 9 files changed, 985 insertions(+) create mode 100644 meta/recipes-devtools/go/go-1.13/0001-allow-CC-and-CXX-to-have-multiple-words.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0004-ld-add-soname-to-shareable-objects.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0006-cmd-dist-separate-host-and-target-builds.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0007-cmd-go-make-GOROOT-precious-by-default.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0008-use-GOBUILDMODE-to-set-buildmode.patch create mode 100644 meta/recipes-devtools/go/go-1.13/0009-ld-replace-glibc-dynamic-linker-with-musl.patch
meta/recipes-devtools/go/go-1.13/0001-allow-CC-and-CXX-to-have-multiple-words.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 9e3dc44cdfa58d96504d0a789dc82617dd5bef55 Mon Sep 17 00:00:00 2001 +From: Alex Kube <[email protected]> +Date: Wed, 23 Oct 2019 21:01:13 +0430 +Subject: [PATCH 1/9] cmd/go: Allow CC and CXX to have multiple words + +Upstream-Status: Inappropriate [OE specific] + +Adapted to Go 1.13 from patches originally submitted to +the meta/recipes-devtools/go tree by +Matt Madison <[email protected]>. + +Signed-off-by: Alexander J Kube <[email protected]> + +--- + src/cmd/go/internal/envcmd/env.go | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go +index 17852de..7b5ec5e 100644 +--- a/src/cmd/go/internal/envcmd/env.go ++++ b/src/cmd/go/internal/envcmd/env.go +@@ -100,11 +100,11 @@ func MkEnv() []cfg.EnvVar { + + cc := cfg.DefaultCC(cfg.Goos, cfg.Goarch) + if env := strings.Fields(cfg.Getenv("CC")); len(env) > 0 { +- cc = env[0] ++ cc = strings.Join(env, " ") + } + cxx := cfg.DefaultCXX(cfg.Goos, cfg.Goarch) + if env := strings.Fields(cfg.Getenv("CXX")); len(env) > 0 { +- cxx = env[0] ++ cxx = strings.Join(env, " ") + } + env = append(env, cfg.EnvVar{Name: "AR", Value: envOr("AR", "ar")}) + env = append(env, cfg.EnvVar{Name: "CC", Value: cc}) +-- +2.17.1 (Apple Git-112) +
meta/recipes-devtools/go/go-1.13/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch new file +226 -0
226 lines not on this page · raw message
meta/recipes-devtools/go/go-1.13/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch new file +54 -0
54 lines not on this page · raw message
meta/recipes-devtools/go/go-1.13/0004-ld-add-soname-to-shareable-objects.patch new file +50 -0
50 lines not on this page · raw message
meta/recipes-devtools/go/go-1.13/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch new file +44 -0
44 lines not on this page · raw message
meta/recipes-devtools/go/go-1.13/0006-cmd-dist-separate-host-and-target-builds.patch new file +279 -0
279 lines not on this page · raw message
meta/recipes-devtools/go/go-1.13/0007-cmd-go-make-GOROOT-precious-by-default.patch new file +113 -0
113 lines not on this page · raw message
meta/recipes-devtools/go/go-1.13/0008-use-GOBUILDMODE-to-set-buildmode.patch new file +47 -0
47 lines not on this page · raw message
meta/recipes-devtools/go/go-1.13/0009-ld-replace-glibc-dynamic-linker-with-musl.patch new file +134 -0
134 lines not on this page · raw message
Signature · 1 line
2.17.1 (Apple Git-112)
PATCH v5 2/3 go: Add go1.13 recipes
From: Alex Kube <[email protected]>
Signed-off-by Alex Kube <[email protected]>
--- meta/recipes-devtools/go/go-1.13.inc | 24 +++++++++++++++++++ .../go/go-cross-canadian_1.13.bb | 2 ++ meta/recipes-devtools/go/go-cross_1.13.bb | 2 ++ meta/recipes-devtools/go/go-crosssdk_1.13.bb | 2 ++ meta/recipes-devtools/go/go-native_1.13.bb | 2 ++ meta/recipes-devtools/go/go-runtime_1.13.bb | 2 ++ meta/recipes-devtools/go/go_1.13.bb | 14 +++++++++++ 7 files changed, 48 insertions(+) create mode 100644 meta/recipes-devtools/go/go-1.13.inc create mode 100644 meta/recipes-devtools/go/go-cross-canadian_1.13.bb create mode 100644 meta/recipes-devtools/go/go-cross_1.13.bb create mode 100644 meta/recipes-devtools/go/go-crosssdk_1.13.bb create mode 100644 meta/recipes-devtools/go/go-native_1.13.bb create mode 100644 meta/recipes-devtools/go/go-runtime_1.13.bb create mode 100644 meta/recipes-devtools/go/go_1.13.bb
meta/recipes-devtools/go/go-1.13.inc new file +24 -0
@@ -0,0 +1,24 @@ +require go-common.inc + +GO_BASEVERSION = "1.13" +GO_MINOR = ".3" +PV .= "${GO_MINOR}" +FILESEXTRAPATHS_prepend := "${FILE_DIRNAME}/go-${GO_BASEVERSION}:" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707" + +SRC_URI += "\ + file://0001-allow-CC-and-CXX-to-have-multiple-words.patch \ + file://0002-cmd-go-make-content-based-hash-generation-less-pedan.patch \ + file://0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch \ + file://0004-ld-add-soname-to-shareable-objects.patch \ + file://0005-make.bash-override-CC-when-building-dist-and-go_boot.patch \ + file://0006-cmd-dist-separate-host-and-target-builds.patch \ + file://0007-cmd-go-make-GOROOT-precious-by-default.patch \ + file://0008-use-GOBUILDMODE-to-set-buildmode.patch \ +" +SRC_URI_append_libc-musl = " file://0009-ld-replace-glibc-dynamic-linker-with-musl.patch" + +SRC_URI[main.md5sum] = "94ae8bf6a4fe623e34cb8b0db2a71ec0" +SRC_URI[main.sha256sum] = "4f7123044375d5c404280737fbd2d0b17064b66182a65919ffe20ffe8620e3df" +
meta/recipes-devtools/go/go-cross-canadian_1.13.bb new file +2 -0
@@ -0,0 +1,2 @@ +require go-cross-canadian.inc +require go-${PV}.inc
meta/recipes-devtools/go/go-cross_1.13.bb new file +2 -0
@@ -0,0 +1,2 @@ +require go-cross.inc +require go-${PV}.inc
meta/recipes-devtools/go/go-crosssdk_1.13.bb new file +2 -0
@@ -0,0 +1,2 @@ +require go-crosssdk.inc +require go-${PV}.inc
meta/recipes-devtools/go/go-native_1.13.bb new file +2 -0
@@ -0,0 +1,2 @@ +require ${PN}.inc +require go-${PV}.inc
meta/recipes-devtools/go/go-runtime_1.13.bb new file +2 -0
@@ -0,0 +1,2 @@ +require go-${PV}.inc +require go-runtime.inc
meta/recipes-devtools/go/go_1.13.bb new file +14 -0
@@ -0,0 +1,14 @@ +require go-${PV}.inc +require go-target.inc + +export GOBUILDMODE="" + +# Add pie to GOBUILDMODE to satisfy "textrel" QA checking, but mips +# doesn't support -buildmode=pie, so skip the QA checking for mips and its +# variants. +python() { + if 'mips' in d.getVar('TARGET_ARCH',True): + d.appendVar('INSANE_SKIP_%s' % d.getVar('PN',True), " textrel") + else: + d.setVar('GOBUILDMODE', 'pie') +}
Signature · 1 line
2.17.1 (Apple Git-112)
PATCH v5 3/3 go: Change default GOVERSION to 1.13
In reply to Alexander KubeFrom: Alex Kube <[email protected]>
Signed-off-by Alex Kube <[email protected]>
--- meta/conf/distro/include/tcmode-default.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/distro/include/tcmode-default.inc +1 -1
@@ -23,7 +23,7 @@ GDBVERSION ?= "8.3%" GLIBCVERSION ?= "2.30%" LINUXLIBCVERSION ?= "5.2%" QEMUVERSION ?= "4.1%" -GOVERSION ?= "1.12%" +GOVERSION ?= "1.13%" # This can not use wildcards like 8.0.% since it is also used in mesa to denote # llvm version being used, so always bump it with llvm recipe version bump LLVMVERSION ?= "9.0.0"
Signature · 1 line
2.17.1 (Apple Git-112)