go: Refactor patches for 1.13.3
PATCH v5 1/4 go: Refactor patches for 1.13.3
From: 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/4 go: Add go1.13 recipes
From: 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/4 go: Change default GOVERSION to 1.13
In reply to Alexander KubeFrom: 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)
PATCH v4 4/4 Remove go-1.12
In reply to Alexander KubeFrom: Alex Kube <[email protected]>
--- meta/recipes-devtools/go/go-1.12.inc | 24 -- ...ow-CC-and-CXX-to-have-multiple-words.patch | 31 -- ...o1.12-security-net-textproto-don-t-n.patch | 163 ---------- ...ent-based-hash-generation-less-pedan.patch | 218 -------------- ...-to-be-overridden-in-the-environment.patch | 48 --- ...4-ld-add-soname-to-shareable-objects.patch | 45 --- ...de-CC-when-building-dist-and-go_boot.patch | 37 --- ...dist-separate-host-and-target-builds.patch | 282 ------------------ ...d-go-make-GOROOT-precious-by-default.patch | 106 ------- ...008-use-GOBUILDMODE-to-set-buildmode.patch | 37 --- ...place-glibc-dynamic-linker-with-musl.patch | 112 ------- .../go/go-cross-canadian_1.12.bb | 2 - meta/recipes-devtools/go/go-cross_1.12.bb | 2 - meta/recipes-devtools/go/go-crosssdk_1.12.bb | 2 - meta/recipes-devtools/go/go-native_1.12.bb | 2 - meta/recipes-devtools/go/go-runtime_1.12.bb | 2 - meta/recipes-devtools/go/go_1.12.bb | 14 - 17 files changed, 1127 deletions(-) delete mode 100644 meta/recipes-devtools/go/go-1.12.inc delete mode 100644 meta/recipes-devtools/go/go-1.12/0001-allow-CC-and-CXX-to-have-multiple-words.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0001-release-branch.go1.12-security-net-textproto-don-t-n.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0004-ld-add-soname-to-shareable-objects.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0006-cmd-dist-separate-host-and-target-builds.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0007-cmd-go-make-GOROOT-precious-by-default.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0008-use-GOBUILDMODE-to-set-buildmode.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0009-ld-replace-glibc-dynamic-linker-with-musl.patch delete mode 100644 meta/recipes-devtools/go/go-cross-canadian_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-cross_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-crosssdk_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-native_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-runtime_1.12.bb delete mode 100644 meta/recipes-devtools/go/go_1.12.bb
meta/recipes-devtools/go/go-1.12.inc deleted +0 -24
@@ -1,24 +0,0 @@ -require go-common.inc - -GO_BASEVERSION = "1.12" -GO_MINOR = ".9" -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 \ - file://0001-release-branch.go1.12-security-net-textproto-don-t-n.patch \ -" -SRC_URI_append_libc-musl = " file://0009-ld-replace-glibc-dynamic-linker-with-musl.patch" - -SRC_URI[main.md5sum] = "6132109d4050da349eadc9f7b0304ef4" -SRC_URI[main.sha256sum] = "ab0e56ed9c4732a653ed22e232652709afbf573e710f56a07f7fdeca578d62fc"
meta/recipes-devtools/go/go-1.12/0001-allow-CC-and-CXX-to-have-multiple-words.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 7cc519aa5f84cf8fc7ac8c10fc69aa8040330ea0 Mon Sep 17 00:00:00 2001 -From: Matt Madison <[email protected]> -Date: Mon, 19 Feb 2018 08:49:33 -0800 -Subject: [PATCH] allow CC and CXX to have multiple words - -Upstream-Status: Inappropriate [OE specific] - -Signed-off-by: Matt Madison <[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 afadbad..cedbfbf 100644 ---- a/src/cmd/go/internal/envcmd/env.go -+++ b/src/cmd/go/internal/envcmd/env.go -@@ -85,11 +85,11 @@ func MkEnv() []cfg.EnvVar { - - cc := cfg.DefaultCC(cfg.Goos, cfg.Goarch) - if env := strings.Fields(os.Getenv("CC")); len(env) > 0 { -- cc = env[0] -+ cc = strings.Join(env, " ") - } - cxx := cfg.DefaultCXX(cfg.Goos, cfg.Goarch) - if env := strings.Fields(os.Getenv("CXX")); len(env) > 0 { -- cxx = env[0] -+ cxx = strings.Join(env, " ") - } - env = append(env, cfg.EnvVar{Name: "CC", Value: cc}) - env = append(env, cfg.EnvVar{Name: "CXX", Value: cxx})
meta/recipes-devtools/go/go-1.12/0001-release-branch.go1.12-security-net-textproto-don-t-n.patch deleted +0 -163
163 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch deleted +0 -218
218 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch deleted +0 -48
48 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0004-ld-add-soname-to-shareable-objects.patch deleted +0 -45
45 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 1bf15aa8fb773604b2524cfdab493fa4d8fa9285 Mon Sep 17 00:00:00 2001 -From: Matt Madison <[email protected]> -Date: Sat, 17 Feb 2018 06:32:45 -0800 -Subject: [PATCH] make.bash: override CC when building dist and go_bootstrap - -for handling OE cross-canadian builds. - -Upstream-Status: Inappropriate [OE specific] - -Signed-off-by: Matt Madison <[email protected]> - ---- - src/make.bash | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/make.bash b/src/make.bash -index 78882d9..25943d0 100755 ---- a/src/make.bash -+++ b/src/make.bash -@@ -163,7 +163,7 @@ if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; then - exit 1 - fi - rm -f cmd/dist/dist --GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist -+CC="${BUILD_CC:-${CC}}" GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist - - # -e doesn't propagate out of eval, so check success by hand. - eval $(./cmd/dist/dist env -p || echo FAIL=true) -@@ -194,7 +194,7 @@ fi - # Run dist bootstrap to complete make.bash. - # Bootstrap installs a proper cmd/dist, built with the new toolchain. - # Throw ours, built with Go 1.4, away after bootstrap. --./cmd/dist/dist bootstrap $buildall $vflag $GO_DISTFLAGS "$@" -+CC="${BUILD_CC:-${CC}}" ./cmd/dist/dist bootstrap $buildall $vflag $GO_DISTFLAGS "$@" - rm -f ./cmd/dist/dist - - # DO NOT ADD ANY NEW CODE HERE.
meta/recipes-devtools/go/go-1.12/0006-cmd-dist-separate-host-and-target-builds.patch deleted +0 -282
282 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0007-cmd-go-make-GOROOT-precious-by-default.patch deleted +0 -106
106 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0008-use-GOBUILDMODE-to-set-buildmode.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 0e0c247f0caec23528889ff09d98348cba9028f1 Mon Sep 17 00:00:00 2001 -From: Hongxu Jia <[email protected]> -Date: Fri, 26 Oct 2018 15:02:32 +0800 -Subject: [PATCH] use GOBUILDMODE to set buildmode - -While building go itself, the go build system does not support -to set `-buildmode=pie' from environment. - -Add GOBUILDMODE to support it which make PIE executables the default -build mode, as PIE executables are required as of Yocto - -Refers: https://groups.google.com/forum/#!topic/golang-dev/gRCe5URKewI -Upstream-Status: Denied [upstream choose antoher solution: `17a256b -cmd/go: -buildmode=pie for android/arm'] - -Signed-off-by: Hongxu Jia <[email protected]> ---- - src/cmd/go/internal/work/build.go | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -Index: go/src/cmd/go/internal/work/build.go -=================================================================== ---- go.orig/src/cmd/go/internal/work/build.go -+++ go/src/cmd/go/internal/work/build.go -@@ -223,7 +223,11 @@ func AddBuildFlags(cmd *base.Command) { - - cmd.Flag.Var(&load.BuildAsmflags, "asmflags", "") - cmd.Flag.Var(buildCompiler{}, "compiler", "") -- cmd.Flag.StringVar(&cfg.BuildBuildmode, "buildmode", "default", "") -+ if bm := os.Getenv("GOBUILDMODE"); bm != "" { -+ cmd.Flag.StringVar(&cfg.BuildBuildmode, "buildmode", bm, "") -+ } else { -+ cmd.Flag.StringVar(&cfg.BuildBuildmode, "buildmode", "default", "") -+ } - cmd.Flag.Var(&load.BuildGcflags, "gcflags", "") - cmd.Flag.Var(&load.BuildGccgoflags, "gccgoflags", "") - cmd.Flag.StringVar(&cfg.BuildMod, "mod", "", "")
meta/recipes-devtools/go/go-1.12/0009-ld-replace-glibc-dynamic-linker-with-musl.patch deleted +0 -112
112 lines not on this page · raw message
meta/recipes-devtools/go/go-cross-canadian_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-cross-canadian.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-cross_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-cross.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-crosssdk_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-crosssdk.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-native_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require ${PN}.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-runtime_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-${PV}.inc -require go-runtime.inc
meta/recipes-devtools/go/go_1.12.bb deleted +0 -14
@@ -1,14 +0,0 @@ -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'): - d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel") - else: - d.setVar('GOBUILDMODE', 'pie') -}
Signature · 1 line
2.17.1 (Apple Git-112)
PATCH v5 4/4 go: Remove go-1.12
In reply to Alexander KubeFrom: Alex Kube <[email protected]>
--- meta/recipes-devtools/go/go-1.12.inc | 24 -- ...ow-CC-and-CXX-to-have-multiple-words.patch | 31 -- ...o1.12-security-net-textproto-don-t-n.patch | 163 ---------- ...ent-based-hash-generation-less-pedan.patch | 218 -------------- ...-to-be-overridden-in-the-environment.patch | 48 --- ...4-ld-add-soname-to-shareable-objects.patch | 45 --- ...de-CC-when-building-dist-and-go_boot.patch | 37 --- ...dist-separate-host-and-target-builds.patch | 282 ------------------ ...d-go-make-GOROOT-precious-by-default.patch | 106 ------- ...008-use-GOBUILDMODE-to-set-buildmode.patch | 37 --- ...place-glibc-dynamic-linker-with-musl.patch | 112 ------- .../go/go-cross-canadian_1.12.bb | 2 - meta/recipes-devtools/go/go-cross_1.12.bb | 2 - meta/recipes-devtools/go/go-crosssdk_1.12.bb | 2 - meta/recipes-devtools/go/go-native_1.12.bb | 2 - meta/recipes-devtools/go/go-runtime_1.12.bb | 2 - meta/recipes-devtools/go/go_1.12.bb | 14 - 17 files changed, 1127 deletions(-) delete mode 100644 meta/recipes-devtools/go/go-1.12.inc delete mode 100644 meta/recipes-devtools/go/go-1.12/0001-allow-CC-and-CXX-to-have-multiple-words.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0001-release-branch.go1.12-security-net-textproto-don-t-n.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0004-ld-add-soname-to-shareable-objects.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0006-cmd-dist-separate-host-and-target-builds.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0007-cmd-go-make-GOROOT-precious-by-default.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0008-use-GOBUILDMODE-to-set-buildmode.patch delete mode 100644 meta/recipes-devtools/go/go-1.12/0009-ld-replace-glibc-dynamic-linker-with-musl.patch delete mode 100644 meta/recipes-devtools/go/go-cross-canadian_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-cross_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-crosssdk_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-native_1.12.bb delete mode 100644 meta/recipes-devtools/go/go-runtime_1.12.bb delete mode 100644 meta/recipes-devtools/go/go_1.12.bb
meta/recipes-devtools/go/go-1.12.inc deleted +0 -24
@@ -1,24 +0,0 @@ -require go-common.inc - -GO_BASEVERSION = "1.12" -GO_MINOR = ".9" -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 \ - file://0001-release-branch.go1.12-security-net-textproto-don-t-n.patch \ -" -SRC_URI_append_libc-musl = " file://0009-ld-replace-glibc-dynamic-linker-with-musl.patch" - -SRC_URI[main.md5sum] = "6132109d4050da349eadc9f7b0304ef4" -SRC_URI[main.sha256sum] = "ab0e56ed9c4732a653ed22e232652709afbf573e710f56a07f7fdeca578d62fc"
meta/recipes-devtools/go/go-1.12/0001-allow-CC-and-CXX-to-have-multiple-words.patch deleted +0 -31
@@ -1,31 +0,0 @@ -From 7cc519aa5f84cf8fc7ac8c10fc69aa8040330ea0 Mon Sep 17 00:00:00 2001 -From: Matt Madison <[email protected]> -Date: Mon, 19 Feb 2018 08:49:33 -0800 -Subject: [PATCH] allow CC and CXX to have multiple words - -Upstream-Status: Inappropriate [OE specific] - -Signed-off-by: Matt Madison <[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 afadbad..cedbfbf 100644 ---- a/src/cmd/go/internal/envcmd/env.go -+++ b/src/cmd/go/internal/envcmd/env.go -@@ -85,11 +85,11 @@ func MkEnv() []cfg.EnvVar { - - cc := cfg.DefaultCC(cfg.Goos, cfg.Goarch) - if env := strings.Fields(os.Getenv("CC")); len(env) > 0 { -- cc = env[0] -+ cc = strings.Join(env, " ") - } - cxx := cfg.DefaultCXX(cfg.Goos, cfg.Goarch) - if env := strings.Fields(os.Getenv("CXX")); len(env) > 0 { -- cxx = env[0] -+ cxx = strings.Join(env, " ") - } - env = append(env, cfg.EnvVar{Name: "CC", Value: cc}) - env = append(env, cfg.EnvVar{Name: "CXX", Value: cxx})
meta/recipes-devtools/go/go-1.12/0001-release-branch.go1.12-security-net-textproto-don-t-n.patch deleted +0 -163
163 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch deleted +0 -218
218 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch deleted +0 -48
48 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0004-ld-add-soname-to-shareable-objects.patch deleted +0 -45
45 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 1bf15aa8fb773604b2524cfdab493fa4d8fa9285 Mon Sep 17 00:00:00 2001 -From: Matt Madison <[email protected]> -Date: Sat, 17 Feb 2018 06:32:45 -0800 -Subject: [PATCH] make.bash: override CC when building dist and go_bootstrap - -for handling OE cross-canadian builds. - -Upstream-Status: Inappropriate [OE specific] - -Signed-off-by: Matt Madison <[email protected]> - ---- - src/make.bash | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/make.bash b/src/make.bash -index 78882d9..25943d0 100755 ---- a/src/make.bash -+++ b/src/make.bash -@@ -163,7 +163,7 @@ if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; then - exit 1 - fi - rm -f cmd/dist/dist --GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist -+CC="${BUILD_CC:-${CC}}" GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist - - # -e doesn't propagate out of eval, so check success by hand. - eval $(./cmd/dist/dist env -p || echo FAIL=true) -@@ -194,7 +194,7 @@ fi - # Run dist bootstrap to complete make.bash. - # Bootstrap installs a proper cmd/dist, built with the new toolchain. - # Throw ours, built with Go 1.4, away after bootstrap. --./cmd/dist/dist bootstrap $buildall $vflag $GO_DISTFLAGS "$@" -+CC="${BUILD_CC:-${CC}}" ./cmd/dist/dist bootstrap $buildall $vflag $GO_DISTFLAGS "$@" - rm -f ./cmd/dist/dist - - # DO NOT ADD ANY NEW CODE HERE.
meta/recipes-devtools/go/go-1.12/0006-cmd-dist-separate-host-and-target-builds.patch deleted +0 -282
282 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0007-cmd-go-make-GOROOT-precious-by-default.patch deleted +0 -106
106 lines not on this page · raw message
meta/recipes-devtools/go/go-1.12/0008-use-GOBUILDMODE-to-set-buildmode.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 0e0c247f0caec23528889ff09d98348cba9028f1 Mon Sep 17 00:00:00 2001 -From: Hongxu Jia <[email protected]> -Date: Fri, 26 Oct 2018 15:02:32 +0800 -Subject: [PATCH] use GOBUILDMODE to set buildmode - -While building go itself, the go build system does not support -to set `-buildmode=pie' from environment. - -Add GOBUILDMODE to support it which make PIE executables the default -build mode, as PIE executables are required as of Yocto - -Refers: https://groups.google.com/forum/#!topic/golang-dev/gRCe5URKewI -Upstream-Status: Denied [upstream choose antoher solution: `17a256b -cmd/go: -buildmode=pie for android/arm'] - -Signed-off-by: Hongxu Jia <[email protected]> ---- - src/cmd/go/internal/work/build.go | 6 +++++- - 1 file changed, 5 insertions(+), 1 deletion(-) - -Index: go/src/cmd/go/internal/work/build.go -=================================================================== ---- go.orig/src/cmd/go/internal/work/build.go -+++ go/src/cmd/go/internal/work/build.go -@@ -223,7 +223,11 @@ func AddBuildFlags(cmd *base.Command) { - - cmd.Flag.Var(&load.BuildAsmflags, "asmflags", "") - cmd.Flag.Var(buildCompiler{}, "compiler", "") -- cmd.Flag.StringVar(&cfg.BuildBuildmode, "buildmode", "default", "") -+ if bm := os.Getenv("GOBUILDMODE"); bm != "" { -+ cmd.Flag.StringVar(&cfg.BuildBuildmode, "buildmode", bm, "") -+ } else { -+ cmd.Flag.StringVar(&cfg.BuildBuildmode, "buildmode", "default", "") -+ } - cmd.Flag.Var(&load.BuildGcflags, "gcflags", "") - cmd.Flag.Var(&load.BuildGccgoflags, "gccgoflags", "") - cmd.Flag.StringVar(&cfg.BuildMod, "mod", "", "")
meta/recipes-devtools/go/go-1.12/0009-ld-replace-glibc-dynamic-linker-with-musl.patch deleted +0 -112
112 lines not on this page · raw message
meta/recipes-devtools/go/go-cross-canadian_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-cross-canadian.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-cross_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-cross.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-crosssdk_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-crosssdk.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-native_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require ${PN}.inc -require go-${PV}.inc
meta/recipes-devtools/go/go-runtime_1.12.bb deleted +0 -2
@@ -1,2 +0,0 @@ -require go-${PV}.inc -require go-runtime.inc
meta/recipes-devtools/go/go_1.12.bb deleted +0 -14
@@ -1,14 +0,0 @@ -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'): - d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel") - else: - d.setVar('GOBUILDMODE', 'pie') -}
Signature · 1 line
2.17.1 (Apple Git-112)
✗ patchtest: failure for "[v5] go: Refactor patches for ..." and 3 more
In reply to Alexander Kube== Series Details ==
Series: "[v5] go: Refactor patches for ..." and 3 more
Revision: 1
URL : https://patchwork.openembedded.org/series/20677/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Patch [v4,4/4] Remove go-1.12 Issue Shortlog does not follow expected format [test_shortlog_format] Suggested fix Commit shortlog (first line of commit message) should follow the format "<target>: <summary>"
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe