All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
@ 2024-02-28 18:30 Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 2/7] go: bump 1.21.0 Jose Quaresma
                   ` (6 more replies)
  0 siblings, 7 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-28 18:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

It's more hard to read but easy to rebase, no functional changes

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 ...dist-separate-host-and-target-builds.patch | 136 +++++-------------
 1 file changed, 35 insertions(+), 101 deletions(-)

diff --git a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
index 29598449da..aa2df58995 100644
--- a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
+++ b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
@@ -3,8 +3,6 @@ From: Alex Kube <alexander.j.kube@gmail.com>
 Date: Wed, 23 Oct 2019 21:18:12 +0430
 Subject: [PATCH 5/9] cmd/dist: separate host and target builds
 
-Upstream-Status: Inappropriate [OE specific]
-
 Change the dist tool to allow for OE-style cross-
 and cross-canadian builds:
 
@@ -33,13 +31,20 @@ Adapted to Go 1.13 from patches originally submitted to
 the meta/recipes-devtools/go tree by
 Matt Madison <matt@madison.systems>.
 
+Rework the patch to avoid identation, it's more hard to read
+but easy to rebase.
+Jose Quaresma <jose.quaresma@foundries.io>
+
+Upstream-Status: Inappropriate [OE specific]
+
 Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
- src/cmd/dist/build.go | 152 +++++++++++++++++++++++++++++++-----------
- 1 file changed, 113 insertions(+), 39 deletions(-)
+ src/cmd/dist/build.go | 76 ++++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 75 insertions(+), 1 deletion(-)
 
 diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
-index 5d31718..1c7f308 100644
+index 5d3171856a..d0ba54c072 100644
 --- a/src/cmd/dist/build.go
 +++ b/src/cmd/dist/build.go
 @@ -44,6 +44,7 @@ var (
@@ -119,17 +124,14 @@ index 5d31718..1c7f308 100644
  		xprintf("\n")
  	}
  
--	gogcflags = os.Getenv("GO_GCFLAGS") // we were using $BOOT_GO_GCFLAGS until now
--	setNoOpt()
--	goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
 +	// For split host/target cross/cross-canadian builds, we don't
 +	// want to be setting these flags until after we have compiled
 +	// the toolchain that runs on the build host.
 +	if !crossBuild {
-+		gogcflags = os.Getenv("GO_GCFLAGS") // we were using $BOOT_GO_GCFLAGS until now
-+		setNoOpt()
-+		goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
-+	}
+ 	gogcflags = os.Getenv("GO_GCFLAGS") // we were using $BOOT_GO_GCFLAGS until now
+ 	setNoOpt()
+ 	goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
++}
  	goBootstrap := pathf("%s/go_bootstrap", tooldir)
  	cmdGo := pathf("%s/go", gorootBin)
  	if debug {
@@ -137,25 +139,27 @@ index 5d31718..1c7f308 100644
  		xprintf("\n")
  	}
  	xprintf("Building Go toolchain2 using go_bootstrap and Go toolchain1.\n")
--	os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
-+	if crossBuild {
++	if !crossBuild {
+ 	os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
++} else {
 +		os.Setenv("CC", defaultcc[""])
-+	} else {
-+		os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
 +	}
  	// Now that cmd/go is in charge of the build process, enable GOEXPERIMENT.
  	os.Setenv("GOEXPERIMENT", goexperiment)
  	goInstall(goBootstrap, toolchain...)
-@@ -1421,46 +1454,84 @@ func cmdbootstrap() {
+@@ -1421,6 +1454,7 @@ func cmdbootstrap() {
  		copyfile(pathf("%s/compile3", tooldir), pathf("%s/compile", tooldir), writeExec)
  	}
  
--	if goos == oldgoos && goarch == oldgoarch {
--		// Common case - not setting up for cross-compilation.
--		timelog("build", "toolchain")
--		if vflag > 0 {
--			xprintf("\n")
-+	if crossBuild {
++	if !crossBuild {
+ 	if goos == oldgoos && goarch == oldgoarch {
+ 		// Common case - not setting up for cross-compilation.
+ 		timelog("build", "toolchain")
+@@ -1462,6 +1496,42 @@ func cmdbootstrap() {
+ 		checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
+ 		copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
+ 	}
++} else {
 +		gogcflags = os.Getenv("GO_GCFLAGS")
 +		goldflags = os.Getenv("GO_LDFLAGS")
 +		tool_files, _ := filepath.Glob(pathf("%s/*", tooldir))
@@ -189,94 +193,24 @@ index 5d31718..1c7f308 100644
 +			goInstall(goBootstrap, toBuild...)
 +			checkNotStale(goBootstrap, toBuild...)
 +			// Skip cmdGo staleness checks here, since we can't run the target's cmdGo binary
- 		}
--		xprintf("Building packages and commands for %s/%s.\n", goos, goarch)
- 	} else {
--		// GOOS/GOARCH does not match GOHOSTOS/GOHOSTARCH.
--		// Finish GOHOSTOS/GOHOSTARCH installation and then
--		// run GOOS/GOARCH installation.
--		timelog("build", "host toolchain")
--		if vflag > 0 {
--			xprintf("\n")
-+
-+		if goos == oldgoos && goarch == oldgoarch {
-+			// Common case - not setting up for cross-compilation.
-+			timelog("build", "toolchain")
-+			if vflag > 0 {
-+				xprintf("\n")
-+			}
-+			xprintf("Building packages and commands for %s/%s.\n", goos, goarch)
-+		} else {
-+			// GOOS/GOARCH does not match GOHOSTOS/GOHOSTARCH.
-+			// Finish GOHOSTOS/GOHOSTARCH installation and then
-+			// run GOOS/GOARCH installation.
-+			timelog("build", "host toolchain")
-+			if vflag > 0 {
-+				xprintf("\n")
-+			}
-+			xprintf("Building packages and commands for host, %s/%s.\n", goos, goarch)
-+			goInstall(goBootstrap, "std", "cmd")
-+			checkNotStale(goBootstrap, "std", "cmd")
-+			checkNotStale(cmdGo, "std", "cmd")
-+
-+			timelog("build", "target toolchain")
-+			if vflag > 0 {
-+				xprintf("\n")
-+			}
-+			goos = oldgoos
-+			goarch = oldgoarch
-+			os.Setenv("GOOS", goos)
-+			os.Setenv("GOARCH", goarch)
-+			os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
-+			xprintf("Building packages and commands for target, %s/%s.\n", goos, goarch)
- 		}
--		xprintf("Building packages and commands for host, %s/%s.\n", goos, goarch)
- 		goInstall(goBootstrap, "std", "cmd")
- 		checkNotStale(goBootstrap, "std", "cmd")
- 		checkNotStale(cmdGo, "std", "cmd")
- 
--		timelog("build", "target toolchain")
--		if vflag > 0 {
--			xprintf("\n")
-+		if debug {
-+			run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
-+			run("", ShowOutput|CheckExit, pathf("%s/buildid", tooldir), pathf("%s/pkg/%s_%s/runtime/internal/sys.a", goroot, goos, goarch))
-+			checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
-+			copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
- 		}
--		goos = oldgoos
--		goarch = oldgoarch
--		os.Setenv("GOOS", goos)
--		os.Setenv("GOARCH", goarch)
--		os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
--		xprintf("Building packages and commands for target, %s/%s.\n", goos, goarch)
--	}
--	targets := []string{"std", "cmd"}
--	goInstall(goBootstrap, targets...)
--	checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
--	checkNotStale(goBootstrap, targets...)
--	checkNotStale(cmdGo, targets...)
--	if debug {
--		run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
--		checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
--		copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
- 	}
++		}
++	}
  
  	// Check that there are no new files in $GOROOT/bin other than
-@@ -1477,8 +1548,11 @@ func cmdbootstrap() {
+ 	// go and gofmt and $GOOS_$GOARCH (target bin when cross-compiling).
+@@ -1477,8 +1547,12 @@ func cmdbootstrap() {
  		}
  	}
  
--	// Remove go_bootstrap now that we're done.
--	xremove(pathf("%s/go_bootstrap", tooldir))
 +	// Except that for split host/target cross-builds, we need to
 +	// keep it.
 +	if !crossBuild {
-+		xremove(pathf("%s/go_bootstrap", tooldir))
-+	}
+ 	// Remove go_bootstrap now that we're done.
+ 	xremove(pathf("%s/go_bootstrap", tooldir))
++}
  
  	if goos == "android" {
  		// Make sure the exec wrapper will sync a fresh $GOROOT to the device.
 -- 
-2.30.2
+2.43.0
 
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [RFC OE-core][PATCH v2 2/7] go: bump 1.21.0
  2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
@ 2024-02-28 18:30 ` Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 3/7] goarch: disable dynamic linking globally Jose Quaresma
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-28 18:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

Go 1.21 Release Notes
https://go.dev/doc/go1.21

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 meta/conf/distro/include/tcmode-default.inc   |  2 +-
 .../go/{go-1.20.14.inc => go-1.21.0.inc}      |  2 +-
 ..._1.20.14.bb => go-binary-native_1.21.0.bb} |  6 +-
 ...1.20.14.bb => go-cross-canadian_1.21.0.bb} |  0
 ...go-cross_1.20.14.bb => go-cross_1.21.0.bb} |  0
 ...sssdk_1.20.14.bb => go-crosssdk_1.21.0.bb} |  0
 ...-native_1.20.14.bb => go-native_1.21.0.bb} |  0
 ...untime_1.20.14.bb => go-runtime_1.21.0.bb} |  0
 ...ent-based-hash-generation-less-pedan.patch | 35 ++++-----
 ...OOLDIR-to-be-overridden-in-the-envir.patch | 17 +++--
 ...3-ld-add-soname-to-shareable-objects.patch | 11 +--
 ...de-CC-when-building-dist-and-go_boot.patch | 15 ++--
 ...dist-separate-host-and-target-builds.patch | 74 ++++++++++---------
 ...d-go-make-GOROOT-precious-by-default.patch | 27 +++----
 ...not-write-linker-flags-into-buildids.patch | 12 +--
 ...ldgo.go-do-not-hardcode-host-compile.patch | 12 +--
 ...uild-paths-on-staticly-linked-arches.patch | 23 +++---
 .../go/{go_1.20.14.bb => go_1.21.0.bb}        |  0
 18 files changed, 125 insertions(+), 111 deletions(-)
 rename meta/recipes-devtools/go/{go-1.20.14.inc => go-1.21.0.inc} (89%)
 rename meta/recipes-devtools/go/{go-binary-native_1.20.14.bb => go-binary-native_1.21.0.bb} (78%)
 rename meta/recipes-devtools/go/{go-cross-canadian_1.20.14.bb => go-cross-canadian_1.21.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-cross_1.20.14.bb => go-cross_1.21.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-crosssdk_1.20.14.bb => go-crosssdk_1.21.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-native_1.20.14.bb => go-native_1.21.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-runtime_1.20.14.bb => go-runtime_1.21.0.bb} (100%)
 rename meta/recipes-devtools/go/{go_1.20.14.bb => go_1.21.0.bb} (100%)

diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 94e413efe1..87666e5837 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -23,7 +23,7 @@ GDBVERSION ?= "14.%"
 GLIBCVERSION ?= "2.39%"
 LINUXLIBCVERSION ?= "6.6%"
 QEMUVERSION ?= "8.2%"
-GOVERSION ?= "1.20%"
+GOVERSION ?= "1.21%"
 RUSTVERSION ?= "1.74%"
 
 PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
diff --git a/meta/recipes-devtools/go/go-1.20.14.inc b/meta/recipes-devtools/go/go-1.21.0.inc
similarity index 89%
rename from meta/recipes-devtools/go/go-1.20.14.inc
rename to meta/recipes-devtools/go/go-1.21.0.inc
index 7e425effe5..2933793b8b 100644
--- a/meta/recipes-devtools/go/go-1.20.14.inc
+++ b/meta/recipes-devtools/go/go-1.21.0.inc
@@ -15,4 +15,4 @@ SRC_URI += "\
     file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \
     file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \
 "
-SRC_URI[main.sha256sum] = "1aef321a0e3e38b7e91d2d7eb64040666cabdcc77d383de3c9522d0d69b67f4e"
+SRC_URI[main.sha256sum] = "818d46ede85682dd551ad378ef37a4d247006f12ec59b5b755601d2ce114369a"
diff --git a/meta/recipes-devtools/go/go-binary-native_1.20.14.bb b/meta/recipes-devtools/go/go-binary-native_1.21.0.bb
similarity index 78%
rename from meta/recipes-devtools/go/go-binary-native_1.20.14.bb
rename to meta/recipes-devtools/go/go-binary-native_1.21.0.bb
index 95211e6696..5d0427f56f 100644
--- a/meta/recipes-devtools/go/go-binary-native_1.20.14.bb
+++ b/meta/recipes-devtools/go/go-binary-native_1.21.0.bb
@@ -9,9 +9,9 @@ PROVIDES = "go-native"
 
 # Checksums available at https://go.dev/dl/
 SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
-SRC_URI[go_linux_amd64.sha256sum] = "ff445e48af27f93f66bd949ae060d97991c83e11289009d311f25426258f9c44"
-SRC_URI[go_linux_arm64.sha256sum] = "2096507509a98782850d1f0669786c09727053e9fe3c92b03c0d96f48700282b"
-SRC_URI[go_linux_ppc64le.sha256sum] = "237b1da9b65629a9b0fcf1f3ca75b4c84ef55fca1fc3eadf1681da7bbcb2e9cd"
+SRC_URI[go_linux_amd64.sha256sum] = "d0398903a16ba2232b389fb31032ddf57cac34efda306a0eebac34f0965a0742"
+SRC_URI[go_linux_arm64.sha256sum] = "f3d4548edf9b22f26bbd49720350bbfe59d75b7090a1a2bff1afad8214febaf3"
+SRC_URI[go_linux_ppc64le.sha256sum] = "e938ffc81d8ebe5efc179240960ba22da6a841ff05d5cab7ce2547112b14a47f"
 
 UPSTREAM_CHECK_URI = "https://golang.org/dl/"
 UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
diff --git a/meta/recipes-devtools/go/go-cross-canadian_1.20.14.bb b/meta/recipes-devtools/go/go-cross-canadian_1.21.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross-canadian_1.20.14.bb
rename to meta/recipes-devtools/go/go-cross-canadian_1.21.0.bb
diff --git a/meta/recipes-devtools/go/go-cross_1.20.14.bb b/meta/recipes-devtools/go/go-cross_1.21.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross_1.20.14.bb
rename to meta/recipes-devtools/go/go-cross_1.21.0.bb
diff --git a/meta/recipes-devtools/go/go-crosssdk_1.20.14.bb b/meta/recipes-devtools/go/go-crosssdk_1.21.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-crosssdk_1.20.14.bb
rename to meta/recipes-devtools/go/go-crosssdk_1.21.0.bb
diff --git a/meta/recipes-devtools/go/go-native_1.20.14.bb b/meta/recipes-devtools/go/go-native_1.21.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-native_1.20.14.bb
rename to meta/recipes-devtools/go/go-native_1.21.0.bb
diff --git a/meta/recipes-devtools/go/go-runtime_1.20.14.bb b/meta/recipes-devtools/go/go-runtime_1.21.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-runtime_1.20.14.bb
rename to meta/recipes-devtools/go/go-runtime_1.21.0.bb
diff --git a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
index 9a2551031a..3bd756449e 100644
--- a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
+++ b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
@@ -1,4 +1,4 @@
-From 10766ca6f4007b96e3f6bf4fb496e5df74397eb9 Mon Sep 17 00:00:00 2001
+From 9a6c5040cbcd88b10ceb8ceaebc8d6158c086670 Mon Sep 17 00:00:00 2001
 From: Khem Raj <raj.khem@gmail.com>
 Date: Mon, 28 Mar 2022 10:59:03 -0700
 Subject: [PATCH 1/9] cmd/go: make content-based hash generation less pedantic
@@ -25,16 +25,17 @@ Upstream-Status: Inappropriate [OE specific]
 Signed-off-by: Alex Kube <alexander.j.kube@gmail.com>
 Signed-off-by: Matt Madison <matt@madison.systems>
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/cmd/go/internal/envcmd/env.go |  2 +-
  src/cmd/go/internal/work/exec.go  | 44 ++++++++++++++++++++++++-------
  2 files changed, 36 insertions(+), 10 deletions(-)
 
 diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go
-index 66ef5ce..fb7448a 100644
+index c7c2e83..4a90d9d 100644
 --- a/src/cmd/go/internal/envcmd/env.go
 +++ b/src/cmd/go/internal/envcmd/env.go
-@@ -183,7 +183,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar {
+@@ -189,7 +189,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar {
  		}
  	}()
  
@@ -44,10 +45,10 @@ index 66ef5ce..fb7448a 100644
  		// Should not happen - b.CFlags was given an empty package.
  		fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err)
 diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
-index 67d1193..62e1774 100644
+index 13d2a78..e3dd486 100644
 --- a/src/cmd/go/internal/work/exec.go
 +++ b/src/cmd/go/internal/work/exec.go
-@@ -223,6 +223,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) {
+@@ -231,6 +231,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) {
  	writeActionGraph()
  }
  
@@ -56,7 +57,7 @@ index 67d1193..62e1774 100644
  // buildActionID computes the action ID for a build action.
  func (b *Builder) buildActionID(a *Action) cache.ActionID {
  	p := a.Package
-@@ -244,7 +246,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -252,7 +254,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  		if p.Module != nil {
  			fmt.Fprintf(h, "module %s@%s\n", p.Module.Path, p.Module.Version)
  		}
@@ -65,7 +66,7 @@ index 67d1193..62e1774 100644
  		// The Go compiler always hides the exact value of $GOROOT
  		// when building things in GOROOT.
  		//
-@@ -276,9 +278,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -284,9 +286,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  	}
  	if len(p.CgoFiles)+len(p.SwigFiles)+len(p.SwigCXXFiles) > 0 {
  		fmt.Fprintf(h, "cgo %q\n", b.toolID("cgo"))
@@ -77,7 +78,7 @@ index 67d1193..62e1774 100644
  		fmt.Fprintf(h, "CC=%q %q %q %q\n", ccExe, cppflags, cflags, ldflags)
  		// Include the C compiler tool ID so that if the C
  		// compiler changes we rebuild the package.
-@@ -286,14 +288,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -294,14 +296,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  			fmt.Fprintf(h, "CC ID=%q\n", ccID)
  		}
  		if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 {
@@ -94,16 +95,16 @@ index 67d1193..62e1774 100644
  			fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags)
  			if fcID, _, err := b.gccToolID(fcExe[0], "f95"); err == nil {
  				fmt.Fprintf(h, "FC ID=%q\n", fcID)
-@@ -310,7 +312,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -318,7 +320,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  		}
  	}
- 	if p.Internal.BuildInfo != "" {
--		fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo)
-+		//fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo)
+ 	if p.Internal.BuildInfo != nil {
+-		fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo.String())
++		//fmt.Fprintf(h, "modinfo %q\n", p.Internal.BuildInfo.String())
  	}
  
  	// Configuration specific to compiler toolchain.
-@@ -2989,8 +2991,25 @@ func envList(key, def string) []string {
+@@ -3137,8 +3139,25 @@ func envList(key, def string) []string {
  	return args
  }
  
@@ -130,7 +131,7 @@ index 67d1193..62e1774 100644
  	if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil {
  		return
  	}
-@@ -3006,6 +3025,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
+@@ -3154,6 +3173,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
  	if ldflags, err = buildFlags("LDFLAGS", defaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil {
  		return
  	}
@@ -144,7 +145,7 @@ index 67d1193..62e1774 100644
  
  	return
  }
-@@ -3021,7 +3047,7 @@ var cgoRe = lazyregexp.New(`[/\\:]`)
+@@ -3169,7 +3195,7 @@ var cgoRe = lazyregexp.New(`[/\\:]`)
  
  func (b *Builder) cgo(a *Action, cgoExe, objdir string, pcCFLAGS, pcLDFLAGS, cgofiles, gccfiles, gxxfiles, mfiles, ffiles []string) (outGo, outObj []string, err error) {
  	p := a.Package
@@ -153,7 +154,7 @@ index 67d1193..62e1774 100644
  	if err != nil {
  		return nil, nil, err
  	}
-@@ -3577,7 +3603,7 @@ func (b *Builder) swigIntSize(objdir string) (intsize string, err error) {
+@@ -3725,7 +3751,7 @@ func (b *Builder) swigIntSize(objdir string) (intsize string, err error) {
  
  // Run SWIG on one SWIG input file.
  func (b *Builder) swigOne(a *Action, p *load.Package, file, objdir string, pcCFLAGS []string, cxx bool, intgosize string) (outGo, outC string, err error) {
@@ -163,5 +164,5 @@ index 67d1193..62e1774 100644
  		return "", "", err
  	}
 -- 
-2.30.2
+2.43.0
 
diff --git a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
index 6abd424733..cf7ad02f86 100644
--- a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
+++ b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
@@ -1,4 +1,4 @@
-From 5cca2fa5997292a87302bdc7e7ed3231371e98bd Mon Sep 17 00:00:00 2001
+From e3f9a8a69d3a340c1a1d0bba566e71f20f635a43 Mon Sep 17 00:00:00 2001
 From: Alex Kube <alexander.j.kube@gmail.com>
 Date: Wed, 23 Oct 2019 21:15:37 +0430
 Subject: [PATCH 2/9] cmd/go: Allow GOTOOLDIR to be overridden in the
@@ -13,16 +13,17 @@ Matt Madison <matt@madison.systems>.
 Upstream-Status: Inappropriate [OE specific]
 
 Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/cmd/dist/build.go          | 4 +++-
  src/cmd/go/internal/cfg/cfg.go | 6 +++++-
  2 files changed, 8 insertions(+), 2 deletions(-)
 
 diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
-index c36a12e..5d31718 100644
+index 8973a87..adc9fd2 100644
 --- a/src/cmd/dist/build.go
 +++ b/src/cmd/dist/build.go
-@@ -264,7 +264,9 @@ func xinit() {
+@@ -259,7 +259,9 @@ func xinit() {
  	}
  	xatexit(rmworkdir)
  
@@ -30,14 +31,14 @@ index c36a12e..5d31718 100644
 +	if tooldir = os.Getenv("GOTOOLDIR"); tooldir == "" {
 +		tooldir = pathf("%s/pkg/tool/%s_%s", goroot, gohostos, gohostarch)
 +	}
- }
  
- // compilerEnv returns a map from "goos/goarch" to the
+ 	goversion := findgoversion()
+ 	isRelease = strings.HasPrefix(goversion, "release.") || strings.HasPrefix(goversion, "go")
 diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go
-index 3257140..bb46253 100644
+index 8a82e55..1141fc2 100644
 --- a/src/cmd/go/internal/cfg/cfg.go
 +++ b/src/cmd/go/internal/cfg/cfg.go
-@@ -229,7 +229,11 @@ func SetGOROOT(goroot string, isTestGo bool) {
+@@ -231,7 +231,11 @@ func SetGOROOT(goroot string, isTestGo bool) {
  			// This matches the initialization of ToolDir in go/build, except for
  			// using ctxt.GOROOT and the installed GOOS and GOARCH rather than the
  			// GOROOT, GOOS, and GOARCH reported by the runtime package.
@@ -51,5 +52,5 @@ index 3257140..bb46253 100644
  	}
  }
 -- 
-2.30.2
+2.43.0
 
diff --git a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
index 8f5ad04e5c..be4af096ce 100644
--- a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
+++ b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
@@ -1,4 +1,4 @@
-From c7536a820f713013ab1d4acef74a4c8bd970bf8f Mon Sep 17 00:00:00 2001
+From 7dde77b3ce8138314dd2736604b1b110dbcc0ac1 Mon Sep 17 00:00:00 2001
 From: Alex Kube <alexander.j.kube@gmail.com>
 Date: Wed, 23 Oct 2019 21:16:32 +0430
 Subject: [PATCH 3/9] ld: add soname to shareable objects
@@ -13,15 +13,16 @@ Matt Madison <matt@madison.systems>.
 Upstream-Status: Inappropriate [OE specific]
 
 Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/cmd/link/internal/ld/lib.go | 3 +++
  1 file changed, 3 insertions(+)
 
 diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
-index 6eae900..0462ee8 100644
+index 91e2d51..e98b912 100644
 --- a/src/cmd/link/internal/ld/lib.go
 +++ b/src/cmd/link/internal/ld/lib.go
-@@ -1508,6 +1508,7 @@ func (ctxt *Link) hostlink() {
+@@ -1554,6 +1554,7 @@ func (ctxt *Link) hostlink() {
  				argv = append(argv, "-Wl,-z,relro")
  			}
  			argv = append(argv, "-shared")
@@ -29,7 +30,7 @@ index 6eae900..0462ee8 100644
  			if ctxt.HeadType == objabi.Hwindows {
  				argv = addASLRargs(argv, *flagAslr)
  			} else {
-@@ -1523,6 +1524,7 @@ func (ctxt *Link) hostlink() {
+@@ -1569,6 +1570,7 @@ func (ctxt *Link) hostlink() {
  			argv = append(argv, "-Wl,-z,relro")
  		}
  		argv = append(argv, "-shared")
@@ -37,7 +38,7 @@ index 6eae900..0462ee8 100644
  	case BuildModePlugin:
  		if ctxt.HeadType == objabi.Hdarwin {
  			argv = append(argv, "-dynamiclib")
-@@ -1531,6 +1533,7 @@ func (ctxt *Link) hostlink() {
+@@ -1577,6 +1579,7 @@ func (ctxt *Link) hostlink() {
  				argv = append(argv, "-Wl,-z,relro")
  			}
  			argv = append(argv, "-shared")
diff --git a/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch b/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch
index 85e42f7660..5dd2621adc 100644
--- a/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch
+++ b/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch
@@ -1,4 +1,4 @@
-From 31ff609cc3d3bfcc2f2257fda1dbaafaec31eb0b Mon Sep 17 00:00:00 2001
+From 9f59e46991074d3e3c4d00f3971e62bfcd707167 Mon Sep 17 00:00:00 2001
 From: Alex Kube <alexander.j.kube@gmail.com>
 Date: Wed, 23 Oct 2019 21:17:16 +0430
 Subject: [PATCH 4/9] make.bash: override CC when building dist and
@@ -13,24 +13,25 @@ Matt Madison <matt@madison.systems>.
 Upstream-Status: Inappropriate [OE specific]
 
 Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/make.bash | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/make.bash b/src/make.bash
-index c07f39b..6ca7242 100755
+index 755b3b0..eddfc3c 100755
 --- a/src/make.bash
 +++ b/src/make.bash
-@@ -194,7 +194,7 @@ if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; then
+@@ -198,7 +198,7 @@ if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; then
  	exit 1
  fi
  rm -f cmd/dist/dist
--GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" GO111MODULE=off GOEXPERIMENT="" GOENV=off GOFLAGS="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
-+CC="${BUILD_CC:-${CC}}" GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" GO111MODULE=off GOEXPERIMENT="" GOENV=off GOFLAGS="" "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
+-GOROOT="$GOROOT_BOOTSTRAP" nogoenv "$GOROOT_BOOTSTRAP/bin/go" build -o cmd/dist/dist ./cmd/dist
++CC="${BUILD_CC:-${CC}}" GOROOT="$GOROOT_BOOTSTRAP" nogoenv "$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)
-@@ -219,7 +219,7 @@ fi
+@@ -223,7 +223,7 @@ fi
  # Run dist bootstrap to complete make.bash.
  # Bootstrap installs a proper cmd/dist, built with the new toolchain.
  # Throw ours, built with the bootstrap toolchain, away after bootstrap.
@@ -40,5 +41,5 @@ index c07f39b..6ca7242 100755
  
  # DO NOT ADD ANY NEW CODE HERE.
 -- 
-2.30.2
+2.43.0
 
diff --git a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
index aa2df58995..f8dca65ed4 100644
--- a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
+++ b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
@@ -1,4 +1,4 @@
-From 7a191e5191c8b813e929caedb3f3918bb08692a1 Mon Sep 17 00:00:00 2001
+From 6dda78d528e60993a4688cd9d49440a726378ac8 Mon Sep 17 00:00:00 2001
 From: Alex Kube <alexander.j.kube@gmail.com>
 Date: Wed, 23 Oct 2019 21:18:12 +0430
 Subject: [PATCH 5/9] cmd/dist: separate host and target builds
@@ -31,8 +31,8 @@ Adapted to Go 1.13 from patches originally submitted to
 the meta/recipes-devtools/go tree by
 Matt Madison <matt@madison.systems>.
 
-Rework the patch to avoid identation, it's more hard to read
-but easy to rebase.
+Rework the patch to avoid identation, it's more hard to read but
+easy to rebase.
 Jose Quaresma <jose.quaresma@foundries.io>
 
 Upstream-Status: Inappropriate [OE specific]
@@ -44,35 +44,35 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 75 insertions(+), 1 deletion(-)
 
 diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
-index 5d3171856a..d0ba54c072 100644
+index adc9fd2..5fff592 100644
 --- a/src/cmd/dist/build.go
 +++ b/src/cmd/dist/build.go
-@@ -44,6 +44,7 @@ var (
+@@ -46,6 +46,7 @@ var (
  	goexperiment     string
  	workdir          string
  	tooldir          string
 +	build_tooldir    string
  	oldgoos          string
  	oldgoarch        string
- 	exe              string
-@@ -55,6 +56,7 @@ var (
- 	rebuildall   bool
- 	defaultclang bool
- 	noOpt        bool
-+	crossBuild   bool
+ 	oldgocache       string
+@@ -58,6 +59,7 @@ var (
+ 	rebuildall bool
+ 	noOpt      bool
+ 	isRelease  bool
++	crossBuild bool
  
  	vflag int // verbosity
  )
-@@ -267,6 +269,8 @@ func xinit() {
- 	if tooldir = os.Getenv("GOTOOLDIR"); tooldir == "" {
- 		tooldir = pathf("%s/pkg/tool/%s_%s", goroot, gohostos, gohostarch)
- 	}
+@@ -265,6 +267,8 @@ func xinit() {
+ 
+ 	goversion := findgoversion()
+ 	isRelease = strings.HasPrefix(goversion, "release.") || strings.HasPrefix(goversion, "go")
 +
 +	build_tooldir = pathf("%s/pkg/tool/native_native", goroot)
  }
  
  // compilerEnv returns a map from "goos/goarch" to the
-@@ -468,8 +472,10 @@ func setup() {
+@@ -499,8 +503,10 @@ func setup() {
  	goosGoarch := pathf("%s/pkg/%s_%s", goroot, gohostos, gohostarch)
  	if rebuildall {
  		xremoveall(goosGoarch)
@@ -83,16 +83,18 @@ index 5d3171856a..d0ba54c072 100644
  	xatexit(func() {
  		if files := xreaddir(goosGoarch); len(files) == 0 {
  			xremove(goosGoarch)
-@@ -1276,17 +1282,35 @@ func cmdbootstrap() {
+@@ -1344,14 +1350,20 @@ func cmdbootstrap() {
+ 	defer timelog("end", "dist bootstrap")
  
- 	var noBanner, noClean bool
- 	var debug bool
+ 	var debug, distpack, force, noBanner, noClean bool
 +	var hostOnly bool
 +	var targetOnly bool
 +	var toBuild = []string{"std", "cmd"}
 +
  	flag.BoolVar(&rebuildall, "a", rebuildall, "rebuild all")
  	flag.BoolVar(&debug, "d", debug, "enable debugging of bootstrap process")
+ 	flag.BoolVar(&distpack, "distpack", distpack, "write distribution files to pkg/distpack")
+ 	flag.BoolVar(&force, "force", force, "build even if the port is marked as broken")
  	flag.BoolVar(&noBanner, "no-banner", noBanner, "do not print banner")
  	flag.BoolVar(&noClean, "no-clean", noClean, "print deprecation warning")
 +	flag.BoolVar(&hostOnly, "host-only", hostOnly, "build only host binaries, not target")
@@ -103,6 +105,8 @@ index 5d3171856a..d0ba54c072 100644
  
  	if noClean {
  		xprintf("warning: --no-clean is deprecated and has no effect; use 'go install std cmd' instead\n")
+@@ -1363,6 +1375,18 @@ func cmdbootstrap() {
+ 			"Use the -force flag to build anyway.\n", goos, goarch)
  	}
  
 +	if hostOnly && targetOnly {
@@ -120,7 +124,7 @@ index 5d3171856a..d0ba54c072 100644
  	// Set GOPATH to an internal directory. We shouldn't actually
  	// need to store files here, since the toolchain won't
  	// depend on modules outside of vendor directories, but if
-@@ -1354,9 +1378,14 @@ func cmdbootstrap() {
+@@ -1440,9 +1464,14 @@ func cmdbootstrap() {
  		xprintf("\n")
  	}
  
@@ -133,30 +137,30 @@ index 5d3171856a..d0ba54c072 100644
  	goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
 +}
  	goBootstrap := pathf("%s/go_bootstrap", tooldir)
- 	cmdGo := pathf("%s/go", gorootBin)
  	if debug {
-@@ -1385,7 +1414,11 @@ func cmdbootstrap() {
+ 		run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
+@@ -1470,7 +1499,11 @@ func cmdbootstrap() {
  		xprintf("\n")
  	}
  	xprintf("Building Go toolchain2 using go_bootstrap and Go toolchain1.\n")
 +	if !crossBuild {
- 	os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
+ 	os.Setenv("CC", compilerEnvLookup("CC", defaultcc, goos, goarch))
 +} else {
 +		os.Setenv("CC", defaultcc[""])
 +	}
  	// Now that cmd/go is in charge of the build process, enable GOEXPERIMENT.
  	os.Setenv("GOEXPERIMENT", goexperiment)
- 	goInstall(goBootstrap, toolchain...)
-@@ -1421,6 +1454,7 @@ func cmdbootstrap() {
- 		copyfile(pathf("%s/compile3", tooldir), pathf("%s/compile", tooldir), writeExec)
+ 	// No need to enable PGO for toolchain2.
+@@ -1523,6 +1556,7 @@ func cmdbootstrap() {
+ 		os.Setenv("GOCACHE", oldgocache)
  	}
  
 +	if !crossBuild {
  	if goos == oldgoos && goarch == oldgoarch {
  		// Common case - not setting up for cross-compilation.
  		timelog("build", "toolchain")
-@@ -1462,6 +1496,42 @@ func cmdbootstrap() {
- 		checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
+@@ -1566,6 +1600,42 @@ func cmdbootstrap() {
+ 		checkNotStale(toolenv(), goBootstrap, toolchain...)
  		copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
  	}
 +} else {
@@ -175,8 +179,8 @@ index 5d3171856a..d0ba54c072 100644
 +				xprintf("\n")
 +			}
 +			xprintf("Building %s for host, %s/%s.\n", strings.Join(toBuild, ","), goos, goarch)
-+			goInstall(goBootstrap, toBuild...)
-+			checkNotStale(goBootstrap, toBuild...)
++			goInstall(toolenv(), goBootstrap, toBuild...)
++			checkNotStale(toolenv(), goBootstrap, toBuild...)
 +			// Skip cmdGo staleness checks here, since we can't necessarily run the cmdGo binary
 +
 +			timelog("build", "target toolchain")
@@ -188,17 +192,17 @@ index 5d3171856a..d0ba54c072 100644
 +			goarch = oldgoarch
 +			os.Setenv("GOOS", goos)
 +			os.Setenv("GOARCH", goarch)
-+			os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
++			os.Setenv("CC", compilerEnvLookup("CC", defaultcc, goos, goarch))
 +			xprintf("Building %s for target, %s/%s.\n", strings.Join(toBuild, ","), goos, goarch)
-+			goInstall(goBootstrap, toBuild...)
-+			checkNotStale(goBootstrap, toBuild...)
++			goInstall(toolenv(), goBootstrap, toBuild...)
++			checkNotStale(toolenv(), goBootstrap, toBuild...)
 +			// Skip cmdGo staleness checks here, since we can't run the target's cmdGo binary
 +		}
 +	}
  
  	// Check that there are no new files in $GOROOT/bin other than
  	// go and gofmt and $GOOS_$GOARCH (target bin when cross-compiling).
-@@ -1477,8 +1547,12 @@ func cmdbootstrap() {
+@@ -1585,8 +1655,12 @@ func cmdbootstrap() {
  		}
  	}
  
@@ -206,7 +210,7 @@ index 5d3171856a..d0ba54c072 100644
 +	// keep it.
 +	if !crossBuild {
  	// Remove go_bootstrap now that we're done.
- 	xremove(pathf("%s/go_bootstrap", tooldir))
+ 	xremove(pathf("%s/go_bootstrap"+exe, tooldir))
 +}
  
  	if goos == "android" {
diff --git a/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch b/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch
index 520e41da86..d118e726c6 100644
--- a/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch
+++ b/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch
@@ -1,10 +1,8 @@
-From efab470498bb0a30ee2d00455a0c8c10459f6347 Mon Sep 17 00:00:00 2001
+From aff5a740d6286c04beb0593fc68b0aea5a95ad39 Mon Sep 17 00:00:00 2001
 From: Alex Kube <alexander.j.kube@gmail.com>
 Date: Wed, 23 Oct 2019 21:18:56 +0430
 Subject: [PATCH 6/9] cmd/go: make GOROOT precious by default
 
-Upstream-Status: Inappropriate [OE specific]
-
 The go build tool normally rebuilds whatever it detects is
 stale.  This can be a problem when GOROOT is intended to
 be read-only and the go runtime has been built as a shared
@@ -20,7 +18,10 @@ Adapted to Go 1.13 from patches originally submitted to
 the meta/recipes-devtools/go tree by
 Matt Madison <matt@madison.systems>.
 
+Upstream-Status: Inappropriate [OE specific]
+
 Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/cmd/go/internal/work/action.go |  3 +++
  src/cmd/go/internal/work/build.go  |  6 ++++++
@@ -28,10 +29,10 @@ Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com>
  3 files changed, 34 insertions(+)
 
 diff --git a/src/cmd/go/internal/work/action.go b/src/cmd/go/internal/work/action.go
-index 8beb134..68a8cfe 100644
+index d4d0a71..42149d2 100644
 --- a/src/cmd/go/internal/work/action.go
 +++ b/src/cmd/go/internal/work/action.go
-@@ -718,6 +718,9 @@ func (b *Builder) addTransitiveLinkDeps(a, a1 *Action, shlib string) {
+@@ -730,6 +730,9 @@ func (b *Builder) addTransitiveLinkDeps(a, a1 *Action, shlib string) {
  			if p1 == nil || p1.Shlib == "" || haveShlib[filepath.Base(p1.Shlib)] {
  				continue
  			}
@@ -42,10 +43,10 @@ index 8beb134..68a8cfe 100644
  			// TODO(rsc): The use of ModeInstall here is suspect, but if we only do ModeBuild,
  			// we'll end up building an overall library or executable that depends at runtime
 diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go
-index 2f2860a..8cc6166 100644
+index e2e0e07..1c84137 100644
 --- a/src/cmd/go/internal/work/build.go
 +++ b/src/cmd/go/internal/work/build.go
-@@ -217,6 +217,8 @@ See also: go install, go get, go clean.
+@@ -228,6 +228,8 @@ See also: go install, go get, go clean.
  
  const concurrentGCBackendCompilationEnabledByDefault = true
  
@@ -54,7 +55,7 @@ index 2f2860a..8cc6166 100644
  func init() {
  	// break init cycle
  	CmdBuild.Run = runBuild
-@@ -230,6 +232,10 @@ func init() {
+@@ -241,6 +243,10 @@ func init() {
  		AddCoverFlags(CmdBuild, nil)
  		AddCoverFlags(CmdInstall, nil)
  	}
@@ -66,11 +67,11 @@ index 2f2860a..8cc6166 100644
  
  // Note that flags consulted by other parts of the code
 diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
-index 62e1774..cde867b 100644
+index e3dd486..0ea5316 100644
 --- a/src/cmd/go/internal/work/exec.go
 +++ b/src/cmd/go/internal/work/exec.go
-@@ -546,6 +546,23 @@ func (b *Builder) build(ctx context.Context, a *Action) (err error) {
- 		return errors.New("cannot compile Go " + p.Module.GoVersion + " code")
+@@ -539,6 +539,23 @@ func (b *Builder) build(ctx context.Context, a *Action) (err error) {
+ 		return err
  	}
  
 +	if goRootPrecious && (a.Package.Standard || a.Package.Goroot) {
@@ -93,7 +94,7 @@ index 62e1774..cde867b 100644
  	if err := b.Mkdir(a.Objdir); err != nil {
  		return err
  	}
-@@ -1643,6 +1660,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
+@@ -1722,6 +1739,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
  		return err
  	}
  
@@ -109,5 +110,5 @@ index 62e1774..cde867b 100644
  		return err
  	}
 -- 
-2.30.2
+2.43.0
 
diff --git a/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch b/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
index 7d9869b536..3e0ba35d81 100644
--- a/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
+++ b/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
@@ -1,4 +1,4 @@
-From 0ba747e6a4b251a0d9eed0cfd8f8c491bb508040 Mon Sep 17 00:00:00 2001
+From 619991feab04f331d081a91243434ccd859f611d Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <alex.kanavin@gmail.com>
 Date: Mon, 23 Nov 2020 19:22:04 +0000
 Subject: [PATCH 7/9] exec.go: do not write linker flags into buildids
@@ -9,16 +9,18 @@ To make this acceptable to upstream, we probably need to trim the flags,
 removing those known to be buildhost-specific.
 
 Upstream-Status: Inappropriate [needs upstream discussion]
+
 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/cmd/go/internal/work/exec.go | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
-index cde867b..5cb1812 100644
+index 0ea5316..d7e2d51 100644
 --- a/src/cmd/go/internal/work/exec.go
 +++ b/src/cmd/go/internal/work/exec.go
-@@ -1331,7 +1331,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
+@@ -1357,7 +1357,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
  	}
  
  	// Toolchain-dependent configuration, shared with b.linkSharedActionID.
@@ -27,7 +29,7 @@ index cde867b..5cb1812 100644
  
  	// Input files.
  	for _, a1 := range a.Deps {
-@@ -1626,7 +1626,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID {
+@@ -1705,7 +1705,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID {
  	fmt.Fprintf(h, "goos %s goarch %s\n", cfg.Goos, cfg.Goarch)
  
  	// Toolchain-dependent configuration, shared with b.linkActionID.
@@ -37,5 +39,5 @@ index cde867b..5cb1812 100644
  	// Input files.
  	for _, a1 := range a.Deps {
 -- 
-2.30.2
+2.43.0
 
diff --git a/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch b/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
index fe830ce35c..58512207a8 100644
--- a/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
+++ b/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
@@ -1,4 +1,4 @@
-From 1cbb416538a9c7c3fbedcb23f4d90d5c48becca8 Mon Sep 17 00:00:00 2001
+From e0999902687e2e394499f7153db8d62440c4dab0 Mon Sep 17 00:00:00 2001
 From: Alexander Kanavin <alex.kanavin@gmail.com>
 Date: Tue, 10 Nov 2020 16:33:27 +0000
 Subject: [PATCH 8/9] src/cmd/dist/buildgo.go: do not hardcode host compilers
@@ -8,16 +8,18 @@ These come from $CC/$CXX on the build host and are not useful on targets;
 additionally as they contain host specific paths, this helps reproducibility.
 
 Upstream-Status: Inappropriate [needs upstream discussion]
+
 Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/cmd/dist/buildgo.go | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
 
 diff --git a/src/cmd/dist/buildgo.go b/src/cmd/dist/buildgo.go
-index 29b0167..63a49f0 100644
+index 884e9d7..2f52eda 100644
 --- a/src/cmd/dist/buildgo.go
 +++ b/src/cmd/dist/buildgo.go
-@@ -33,8 +33,8 @@ func mkzdefaultcc(dir, file string) {
+@@ -51,8 +51,8 @@ func mkzdefaultcc(dir, file string) {
  		fmt.Fprintf(&buf, "package cfg\n")
  		fmt.Fprintln(&buf)
  		fmt.Fprintf(&buf, "const DefaultPkgConfig = `%s`\n", defaultpkgconfig)
@@ -28,7 +30,7 @@ index 29b0167..63a49f0 100644
  		writefile(buf.String(), file, writeSkipSame)
  		return
  	}
-@@ -45,8 +45,8 @@ func mkzdefaultcc(dir, file string) {
+@@ -62,8 +62,8 @@ func mkzdefaultcc(dir, file string) {
  	fmt.Fprintf(&buf, "package main\n")
  	fmt.Fprintln(&buf)
  	fmt.Fprintf(&buf, "const defaultPkgConfig = `%s`\n", defaultpkgconfig)
@@ -40,5 +42,5 @@ index 29b0167..63a49f0 100644
  }
  
 -- 
-2.30.2
+2.43.0
 
diff --git a/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch b/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch
index 49da5f6297..597a4e2104 100644
--- a/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch
+++ b/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch
@@ -1,4 +1,4 @@
-From 18011f72125bbea273d07ee5d792ac0ce6059572 Mon Sep 17 00:00:00 2001
+From 6c2438f187ca912c54a71b4ac65ab98999a019d2 Mon Sep 17 00:00:00 2001
 From: Richard Purdie <richard.purdie@linuxfoundation.org>
 Date: Sat, 2 Jul 2022 23:08:13 +0100
 Subject: [PATCH 9/9] go: Filter build paths on staticly linked arches
@@ -11,17 +11,18 @@ on mips/ppc.
 Upstream-Status: Submitted [https://github.com/golang/go/pull/56410]
 
 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
+Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
 ---
  src/cmd/go/internal/load/pkg.go | 15 +++++++++++++--
  1 file changed, 13 insertions(+), 2 deletions(-)
 
 diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go
-index f427e29..6d6dc4e 100644
+index c0e6265..b199fee 100644
 --- a/src/cmd/go/internal/load/pkg.go
 +++ b/src/cmd/go/internal/load/pkg.go
-@@ -2270,6 +2270,17 @@ func (p *Package) collectDeps() {
- // to their VCS information (vcsStatusError).
- var vcsStatusCache par.Cache
+@@ -2269,6 +2269,17 @@ func appendBuildSetting(info *debug.BuildInfo, key, value string) {
+ 	info.Settings = append(info.Settings, debug.BuildSetting{Key: key, Value: value})
+ }
  
 +func filterCompilerFlags(flags string) string {
 +	var newflags []string
@@ -34,10 +35,10 @@ index f427e29..6d6dc4e 100644
 +	return strings.Join(newflags, " ")
 +}
 +
- // setBuildInfo gathers build information, formats it as a string to be
- // embedded in the binary, then sets p.Internal.BuildInfo to that string.
- // setBuildInfo should only be called on a main package with no errors.
-@@ -2376,7 +2387,7 @@ func (p *Package) setBuildInfo(autoVCS bool) {
+ // setBuildInfo gathers build information and sets it into
+ // p.Internal.BuildInfo, which will later be formatted as a string and embedded
+ // in the binary. setBuildInfo should only be called on a main package with no
+@@ -2376,7 +2387,7 @@ func (p *Package) setBuildInfo(ctx context.Context, autoVCS bool) {
  	if gcflags := BuildGcflags.String(); gcflags != "" && cfg.BuildContext.Compiler == "gc" {
  		appendSetting("-gcflags", gcflags)
  	}
@@ -46,7 +47,7 @@ index f427e29..6d6dc4e 100644
  		// https://go.dev/issue/52372: only include ldflags if -trimpath is not set,
  		// since it can include system paths through various linker flags (notably
  		// -extar, -extld, and -extldflags).
-@@ -2422,7 +2433,7 @@ func (p *Package) setBuildInfo(autoVCS bool) {
+@@ -2419,7 +2430,7 @@ func (p *Package) setBuildInfo(ctx context.Context, autoVCS bool) {
  	// subset of flags that are known not to be paths?
  	if cfg.BuildContext.CgoEnabled && !cfg.BuildTrimpath {
  		for _, name := range []string{"CGO_CFLAGS", "CGO_CPPFLAGS", "CGO_CXXFLAGS", "CGO_LDFLAGS"} {
@@ -56,5 +57,5 @@ index f427e29..6d6dc4e 100644
  	}
  	appendSetting("GOARCH", cfg.BuildContext.GOARCH)
 -- 
-2.30.2
+2.43.0
 
diff --git a/meta/recipes-devtools/go/go_1.20.14.bb b/meta/recipes-devtools/go/go_1.21.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go_1.20.14.bb
rename to meta/recipes-devtools/go/go_1.21.0.bb
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [RFC OE-core][PATCH v2 3/7] goarch: disable dynamic linking globally
  2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 2/7] go: bump 1.21.0 Jose Quaresma
@ 2024-02-28 18:30 ` Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 4/7] oeqa/gotoolchain: set GOPROXY Jose Quaresma
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-28 18:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

With go-1.21 dynamic linking cause a runtime panic:

| root@qemux86-64:~# go-helloworld
| panic: runtime error: index out of range [0] with length 0
|
| goroutine 1 [running]:
| flag.init()
|         /usr/lib/go/src/flag/flag.go:1199 +0xf9

In my opinion, this would be a good trade-off so that we can update and
leave the version 1.20 for the next LTS 5.0 since we are already quite
behind on the version available upstream which already has the 1.22 available.

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 meta/classes-recipe/goarch.bbclass | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/meta/classes-recipe/goarch.bbclass b/meta/classes-recipe/goarch.bbclass
index 1ebe03864f..6899ec28e4 100644
--- a/meta/classes-recipe/goarch.bbclass
+++ b/meta/classes-recipe/goarch.bbclass
@@ -38,13 +38,13 @@ BASE_GOARM:armv5 = '5'
 # Go supports dynamic linking on a limited set of architectures.
 # See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go
 GO_DYNLINK = ""
-GO_DYNLINK:arm ?= "1"
-GO_DYNLINK:aarch64 ?= "1"
-GO_DYNLINK:x86 ?= "1"
-GO_DYNLINK:x86-64 ?= "1"
-GO_DYNLINK:powerpc64 ?= "1"
-GO_DYNLINK:powerpc64le ?= "1"
-GO_DYNLINK:class-native ?= ""
+GO_DYNLINK:arm = ""
+GO_DYNLINK:aarch64 = ""
+GO_DYNLINK:x86 = ""
+GO_DYNLINK:x86-64 = ""
+GO_DYNLINK:powerpc64 = ""
+GO_DYNLINK:powerpc64le = ""
+GO_DYNLINK:class-native = ""
 GO_DYNLINK:class-nativesdk = ""
 
 # define here because everybody inherits this class
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [RFC OE-core][PATCH v2 4/7] oeqa/gotoolchain: set GOPROXY
  2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 2/7] go: bump 1.21.0 Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 3/7] goarch: disable dynamic linking globally Jose Quaresma
@ 2024-02-28 18:30 ` Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 5/7] go: upgrade 1.21.0 -> 1.21.5 Jose Quaresma
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-28 18:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

Since go-1.21 GOPROXY needs to be set explicitly, otherwise it fails with:
- GOPROXY list is not the empty string, but contains no entries

This fixes the selftest

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 meta/lib/oeqa/selftest/cases/gotoolchain.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/selftest/cases/gotoolchain.py b/meta/lib/oeqa/selftest/cases/gotoolchain.py
index 74c1c48117..ee2cf4b09a 100644
--- a/meta/lib/oeqa/selftest/cases/gotoolchain.py
+++ b/meta/lib/oeqa/selftest/cases/gotoolchain.py
@@ -54,6 +54,7 @@ class oeGoToolchainSelfTest(OESelftestTestCase):
         cmd = cmd + "export GOPATH=%s; " % self.go_path
         cmd = cmd + "export GOFLAGS=-modcacherw; "
         cmd = cmd + "export CGO_ENABLED=1; "
+        cmd = cmd + "export GOPROXY=https://proxy.golang.org,direct; "
         cmd = cmd + "${CROSS_COMPILE}go %s" % gocmd
         return runCmd(cmd).status
 
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [RFC OE-core][PATCH v2 5/7] go: upgrade 1.21.0 -> 1.21.5
  2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
                   ` (2 preceding siblings ...)
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 4/7] oeqa/gotoolchain: set GOPROXY Jose Quaresma
@ 2024-02-28 18:30 ` Jose Quaresma
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7 Jose Quaresma
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-28 18:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

Upgrade to latest 1.21.x release [1]:

$ git --no-pager log --oneline go1.21.0..go1.21.5
6018ad99a4 (tag: go1.21.5) [release-branch.go1.21] go1.21.5
ec8c526e4b [release-branch.go1.21] net/http: limit chunked data overhead
f7a79cb5fc [release-branch.go1.21] cmd/compile: fix findIndVar so it does not match disjointed loop headers
3684d19c20 [release-branch.go1.21] runtime: call enableMetadataHugePages and its callees on the systemstack
9e43850a32 [release-branch.go1.21] crypto/rand,runtime: switch RtlGenRandom for ProcessPrng
8caf4bb3e7 [release-branch.go1.21] path/filepath: consider \\?\c: as a volume on Windows
23c943e529 [release-branch.go1.21] cmd/go/internal/vcs: error out if the requested repo does not support a secure protocol
4952f41180 [release-branch.go1.21] cmd/go: allow 'go mod download' to switch toolchains if called with explicit arguments
f26fa05522 [release-branch.go1.21] os: report IO_REPARSE_TAG_DEDUP files as regular in Stat and Lstat
8ae493b5b8 [release-branch.go1.21] internal/poll: add SPLICE_F_NONBLOCK flag for splice to avoid inconsistency with O_NONBLOCK
b9f245b8d3 [release-branch.go1.21] cmd/compile: ensure pointer arithmetic happens after the nil check
caacf3a09a [release-branch.go1.21] cmd/compile: handle constant pointer offsets in dead store elimination
1e91861f67 [release-branch.go1.21] syscall: copy rlimit.go's build constraint to rlimit_test.go
ed817f1c40 (tag: go1.21.4) [release-branch.go1.21] go1.21.4
9e933c189c [release-branch.go1.21] path/filepath: fix various issues in parsing Windows paths
434af8537e [release-branch.go1.21] net/http: pull http2 underflow fix from x/net/http2
7b04d81cbc [release-branch.go1.21] runtime/cgo: avoid taking the address of crosscall2 in code
f9a31cda3c [release-branch.go1.21] cmd/compile/internal/typecheck: fix closure field naming
64b6c48107 [release-branch.go1.21] go/types, types2: don't use generics
ef6993f327 [release-branch.go1.21] runtime: don't eagerly collapse hugepages
bae01521f3 [release-branch.go1.21] go/types, types2: don't implicitly modify an argument function's type
236c07c049 [release-branch.go1.21] cmd/link: split text sections for arm 32-bit
9465990e0e [release-branch.go1.21] all: tidy dependency versioning after release
883f062fc0 (tag: go1.21.3) [release-branch.go1.21] go1.21.3
24ae2d9272 [release-branch.go1.21] net/http: regenerate h2_bundle.go
26b5783b72 (tag: go1.21.2) [release-branch.go1.21] go1.21.2
2ddfc04d12 [release-branch.go1.21] cmd/compile: use absolute file name in isCgo check
a15ef1bb0f [release-branch.go1.21] cmd/compile: absorb InvertFlags into Noov comparisons
41d71a5afa [release-branch.go1.21] cmd/compile: reset memcombine correctly between basic blocks
0b6b0a275a [release-branch.go1.21] runtime: always lock OS thread in debugcall
cd671a1180 [release-branch.go1.21] runtime: increase g0 stack size in non-cgo case
fc57cc31a0 [release-branch.go1.21] cmd/link: suppress -bind_at_load deprecation warning for ld-prime
9bec49cf52 [release-branch.go1.21] cmd/link: disable DWARF by default in c-shared mode on darwin
3ef4f939c3 [release-branch.go1.21] cmd/link: force old Apple linker in plugin mode
556e9c36ba [release-branch.go1.21] cmd/link: avoid deadcode of global map vars for programs using plugins
b64dc5f499 [release-branch.go1.21] cmd/go: in TestScript/gotoolchain_path, remove the user's PATH
cd66ca0636 [release-branch.go1.21] runtime/metrics: fix /gc/scan/* metrics
d7a0626806 [release-branch.go1.21] runtime: ignore SPWrite on innermost traceback frame
2c1e5b05fe (tag: go1.21.1) [release-branch.go1.21] go1.21.1
bbd043ff0d [release-branch.go1.21] html/template: properly handle special tags within the script context
b0e1d3ea26 [release-branch.go1.21] html/template: support HTML-like comments in script contexts
d25a935574 [release-branch.go1.21] cmd/go: reject toolchain directives containing path separators
e3ba569c78 [release-branch.go1.21] net/http: revert "support streaming POST content in wasm"
8dc6ad1c61 [release-branch.go1.21] runtime: restore caller's frame pointer when recovering from panic
06df3292a8 [release-branch.go1.21] runtime: avoid MADV_HUGEPAGE for heap memory
b120517ffd [release-branch.go1.21] go/types, types2: remove order dependency in inference involving channels
0a9582163c [release-branch.go1.21] cmd/go: retry ETXTBSY errors when running test binaries
91a4e74b98 [release-branch.go1.21] crypto/tls: QUIC: fix panics when processing post-handshake messages
6385a6fb18 [release-branch.go1.21] cmd/go: find GOROOT using os.Executable when installed to GOROOT/bin/GOOS_GOARCH
2d07bb86f0 [release-branch.go1.21] encoding/xml: overriding by empty namespace when no new name declaration
745b81b6e6 [release-branch.go1.21] encoding/gob: prevent panic from index out of range in Decoder.typeString
13339c75b8 [release-branch.go1.21] runtime: fix maps.Clone bug when cloning a map mid-grow
2977709875 [release-branch.go1.21] context: fix synchronization in ExampleAfterFunc_cond
2d4746f37b [release-branch.go1.21] go/types, types2: disable interface inference for versions before Go 1.21
2b8026f025 [release-branch.go1.21] cmd/compile: in expandCalls, move all arg marshalling into call block
7c97cc7d97 [release-branch.go1.21] Revert "os: use handle based APIs to read directories on windows"
cb6ea94996 [release-branch.go1.21] Revert "cmd/compile: omit redundant sign/unsign extension on arm64"
45b98bfb79 [release-branch.go1.21] path/filepath: don't drop .. elements when cleaning invalid Windows paths
bac083a584 [release-branch.go1.21] cmd/link: don't mangle string symbol names
70aa116c4a [release-branch.go1.21] runtime/internal/wasitest: skip racy TCP echo test
31c5a236bc [release-branch.go1.21] runtime: mark traceEnabled and traceShuttingDown as no:split
25ec110e51 [release-branch.go1.21] cmd/compile: ensure empty blocks in write barriers are marked unpreemptible
6634ce2f41 [release-branch.go1.21] runtime: profiling on Darwin cannot use blocking reads
25c6dce188 [release-branch.go1.21] cmd/compile: make backingArrayPtrLen to return typecheck-ed nodes
4e34f2e81d [release-branch.go1.21] go/types, types2: don't panic during interface completion
d91843ff67 [release-branch.go1.21] go/types, types2: use correct parameter list when checking argument passing
7437db1085 [release-branch.go1.21] go/types, types2: use exact unification when comparing interface methods
ed527ecfb2 [release-branch.go1.21] cmd/api: rename api.go to main_test.go
b78e8cc145 [release-branch.go1.21] crypto/tls: add GODEBUG to control max RSA key size
3475e6af4c [release-branch.go1.21] cmd/go: fix missing case checking for empty slice
179821c9e1 [release-branch.go1.21] net/http: permit requests with invalid Host headers
9398951479 [release-branch.go1.21] cmd/distpack: include directory entries in tar files
75d8be5fb4 [release-branch.go1.21] cmd/go/internal/web: release the net token when an HTTP request fails due to CheckRedirect
1755d14559 [release-branch.go1.21] cmd/compile: fix missing init nodes for len(string([]byte)) optimization

[1] https://github.com/golang/go/compare/go1.21.0...go1.21.5

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 meta/recipes-devtools/go/{go-1.21.0.inc => go-1.21.5.inc}   | 2 +-
 ...o-binary-native_1.21.0.bb => go-binary-native_1.21.5.bb} | 6 +++---
 ...cross-canadian_1.21.0.bb => go-cross-canadian_1.21.5.bb} | 0
 .../go/{go-cross_1.21.0.bb => go-cross_1.21.5.bb}           | 0
 .../go/{go-crosssdk_1.21.0.bb => go-crosssdk_1.21.5.bb}     | 0
 .../go/{go-native_1.21.0.bb => go-native_1.21.5.bb}         | 0
 .../go/{go-runtime_1.21.0.bb => go-runtime_1.21.5.bb}       | 0
 meta/recipes-devtools/go/{go_1.21.0.bb => go_1.21.5.bb}     | 0
 8 files changed, 4 insertions(+), 4 deletions(-)
 rename meta/recipes-devtools/go/{go-1.21.0.inc => go-1.21.5.inc} (89%)
 rename meta/recipes-devtools/go/{go-binary-native_1.21.0.bb => go-binary-native_1.21.5.bb} (78%)
 rename meta/recipes-devtools/go/{go-cross-canadian_1.21.0.bb => go-cross-canadian_1.21.5.bb} (100%)
 rename meta/recipes-devtools/go/{go-cross_1.21.0.bb => go-cross_1.21.5.bb} (100%)
 rename meta/recipes-devtools/go/{go-crosssdk_1.21.0.bb => go-crosssdk_1.21.5.bb} (100%)
 rename meta/recipes-devtools/go/{go-native_1.21.0.bb => go-native_1.21.5.bb} (100%)
 rename meta/recipes-devtools/go/{go-runtime_1.21.0.bb => go-runtime_1.21.5.bb} (100%)
 rename meta/recipes-devtools/go/{go_1.21.0.bb => go_1.21.5.bb} (100%)

diff --git a/meta/recipes-devtools/go/go-1.21.0.inc b/meta/recipes-devtools/go/go-1.21.5.inc
similarity index 89%
rename from meta/recipes-devtools/go/go-1.21.0.inc
rename to meta/recipes-devtools/go/go-1.21.5.inc
index 2933793b8b..f009ea77c7 100644
--- a/meta/recipes-devtools/go/go-1.21.0.inc
+++ b/meta/recipes-devtools/go/go-1.21.5.inc
@@ -15,4 +15,4 @@ SRC_URI += "\
     file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \
     file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \
 "
-SRC_URI[main.sha256sum] = "818d46ede85682dd551ad378ef37a4d247006f12ec59b5b755601d2ce114369a"
+SRC_URI[main.sha256sum] = "285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19"
diff --git a/meta/recipes-devtools/go/go-binary-native_1.21.0.bb b/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
similarity index 78%
rename from meta/recipes-devtools/go/go-binary-native_1.21.0.bb
rename to meta/recipes-devtools/go/go-binary-native_1.21.5.bb
index 5d0427f56f..cc79a277ff 100644
--- a/meta/recipes-devtools/go/go-binary-native_1.21.0.bb
+++ b/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
@@ -9,9 +9,9 @@ PROVIDES = "go-native"
 
 # Checksums available at https://go.dev/dl/
 SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
-SRC_URI[go_linux_amd64.sha256sum] = "d0398903a16ba2232b389fb31032ddf57cac34efda306a0eebac34f0965a0742"
-SRC_URI[go_linux_arm64.sha256sum] = "f3d4548edf9b22f26bbd49720350bbfe59d75b7090a1a2bff1afad8214febaf3"
-SRC_URI[go_linux_ppc64le.sha256sum] = "e938ffc81d8ebe5efc179240960ba22da6a841ff05d5cab7ce2547112b14a47f"
+SRC_URI[go_linux_amd64.sha256sum] = "e2bc0b3e4b64111ec117295c088bde5f00eeed1567999ff77bc859d7df70078e"
+SRC_URI[go_linux_arm64.sha256sum] = "841cced7ecda9b2014f139f5bab5ae31785f35399f236b8b3e75dff2a2978d96"
+SRC_URI[go_linux_ppc64le.sha256sum] = "1f6dd06aa34f292f33c2c70ea9b4456e3a9e5cbd1d99968f3f463a4805b40ece"
 
 UPSTREAM_CHECK_URI = "https://golang.org/dl/"
 UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
diff --git a/meta/recipes-devtools/go/go-cross-canadian_1.21.0.bb b/meta/recipes-devtools/go/go-cross-canadian_1.21.5.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross-canadian_1.21.0.bb
rename to meta/recipes-devtools/go/go-cross-canadian_1.21.5.bb
diff --git a/meta/recipes-devtools/go/go-cross_1.21.0.bb b/meta/recipes-devtools/go/go-cross_1.21.5.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross_1.21.0.bb
rename to meta/recipes-devtools/go/go-cross_1.21.5.bb
diff --git a/meta/recipes-devtools/go/go-crosssdk_1.21.0.bb b/meta/recipes-devtools/go/go-crosssdk_1.21.5.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-crosssdk_1.21.0.bb
rename to meta/recipes-devtools/go/go-crosssdk_1.21.5.bb
diff --git a/meta/recipes-devtools/go/go-native_1.21.0.bb b/meta/recipes-devtools/go/go-native_1.21.5.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-native_1.21.0.bb
rename to meta/recipes-devtools/go/go-native_1.21.5.bb
diff --git a/meta/recipes-devtools/go/go-runtime_1.21.0.bb b/meta/recipes-devtools/go/go-runtime_1.21.5.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-runtime_1.21.0.bb
rename to meta/recipes-devtools/go/go-runtime_1.21.5.bb
diff --git a/meta/recipes-devtools/go/go_1.21.0.bb b/meta/recipes-devtools/go/go_1.21.5.bb
similarity index 100%
rename from meta/recipes-devtools/go/go_1.21.0.bb
rename to meta/recipes-devtools/go/go_1.21.5.bb
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7
  2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
                   ` (3 preceding siblings ...)
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 5/7] go: upgrade 1.21.0 -> 1.21.5 Jose Quaresma
@ 2024-02-28 18:30 ` Jose Quaresma
  2024-03-01  9:53   ` [OE-core] " Richard Purdie
       [not found]   ` <17B89B4F303DC3DB.30419@lists.openembedded.org>
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 7/7] go: bump 1.22.0 Jose Quaresma
  2024-02-29  5:16 ` [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Khem Raj
  6 siblings, 2 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-28 18:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

Upgrade to latest 1.21.x release [1]:

$ git --no-pager log --oneline go1.21.5..go1.21.7
f29208030a (tag: go1.21.7) [release-branch.go1.21] go1.21.7
2fdad8af6d [release-branch.go1.21] cmd/internal/obj/arm64: fix frame pointer restore in epilogue
01c93ad049 [release-branch.go1.21] cmd/go/internal/generate: call modload.InitWorkFile
db74bfba18 [release-branch.go1.21] Revert "crypto/internal/boring: upgrade module to fips-20220613" +1
916e6cddf1 [release-branch.go1.21] runtime: fix Pinner.Pin documentation
6552f3d4ac [release-branch.go1.21] cmd/go/internal/toolchain: apply the -modcacherw flag when downloading a module to determine what toolchain it needs
3960318b87 [release-branch.go1.21] crypto/x509: properly gate test on macos version
00f974eb1f [release-branch.go1.21] go/types, types2: don't lose position info of interface embeddings
2f91c16e68 [release-branch.go1.21] runtime: properly model rwmutex in lock ranking
2540b1436f [release-branch.go1.21] slices: explicitly discard results of some functions
7e34c4308f [release-branch.go1.21] runtime: clear g0 stack bounds in dropm
491c1e7e95 [release-branch.go1.21] runtime: allow update of system stack bounds on callback from C thread
caafb50c0d [release-branch.go1.21] runtime: don't print "unexpected SPWRITE" when printing traceback
cc85462b3d (tag: go1.21.6) [release-branch.go1.21] go1.21.6
d2cb140194 [release-branch.go1.21] crypto/tls: align FIPS-only mode with BoringSSL policy
368e2a9461 [release-branch.go1.21] crypto/internal/boring: upgrade module to fips-20220613
8c6078adfb [release-branch.go1.21] runtime: add race annotations in IncNonDefault
f6b203c828 [release-branch.go1.21] maps: fix aliasing problems with Clone
43818206dc [release-branch.go1.21] runtime: put ReadMemStats debug assertions behind a double-check mode
cf65d74bc5 [release-branch.go1.21] runtime: add the disablethp GODEBUG setting
ad1ec60a5b [release-branch.go1.21] runtime/pprof: fix generics function names
bbab863ada [release-branch.go1.21] os/signal: skip nohup tests on darwin builders
7dc67e8f29 [release-branch.go1.21] os/signal: remove go t.Run from TestNohup
9f8b3ac8c4 [release-branch.go1.21] cmd/compile: fix escape analysis of string min/max
8c840b10d0 [release-branch.go1.21] cmd/compile: fix memcombine pass for big endian, > 1 byte elements

[1] https://github.com/golang/go/compare/go1.21.5...go1.21.7

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc} | 2 +-
 ...binary-native_1.21.5.bb => go-binary-native_1.21.7.bb} | 6 +++---
 ...oss-canadian_1.21.5.bb => go-cross-canadian_1.21.7.bb} | 0
 .../go/{go-cross_1.21.5.bb => go-cross_1.21.7.bb}         | 0
 .../go/{go-crosssdk_1.21.5.bb => go-crosssdk_1.21.7.bb}   | 0
 .../go/{go-native_1.21.5.bb => go-native_1.21.7.bb}       | 0
 .../go/{go-runtime_1.21.5.bb => go-runtime_1.21.7.bb}     | 0
 ...go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch | 2 +-
 .../go/go/0003-ld-add-soname-to-shareable-objects.patch   | 8 ++++----
 meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb}   | 0
 10 files changed, 9 insertions(+), 9 deletions(-)
 rename meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc} (89%)
 rename meta/recipes-devtools/go/{go-binary-native_1.21.5.bb => go-binary-native_1.21.7.bb} (78%)
 rename meta/recipes-devtools/go/{go-cross-canadian_1.21.5.bb => go-cross-canadian_1.21.7.bb} (100%)
 rename meta/recipes-devtools/go/{go-cross_1.21.5.bb => go-cross_1.21.7.bb} (100%)
 rename meta/recipes-devtools/go/{go-crosssdk_1.21.5.bb => go-crosssdk_1.21.7.bb} (100%)
 rename meta/recipes-devtools/go/{go-native_1.21.5.bb => go-native_1.21.7.bb} (100%)
 rename meta/recipes-devtools/go/{go-runtime_1.21.5.bb => go-runtime_1.21.7.bb} (100%)
 rename meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb} (100%)

diff --git a/meta/recipes-devtools/go/go-1.21.5.inc b/meta/recipes-devtools/go/go-1.21.7.inc
similarity index 89%
rename from meta/recipes-devtools/go/go-1.21.5.inc
rename to meta/recipes-devtools/go/go-1.21.7.inc
index f009ea77c7..6de24e1e22 100644
--- a/meta/recipes-devtools/go/go-1.21.5.inc
+++ b/meta/recipes-devtools/go/go-1.21.7.inc
@@ -15,4 +15,4 @@ SRC_URI += "\
     file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \
     file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \
 "
-SRC_URI[main.sha256sum] = "285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19"
+SRC_URI[main.sha256sum] = "00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6"
diff --git a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
similarity index 78%
rename from meta/recipes-devtools/go/go-binary-native_1.21.5.bb
rename to meta/recipes-devtools/go/go-binary-native_1.21.7.bb
index cc79a277ff..d8826e20f1 100644
--- a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
+++ b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
@@ -9,9 +9,9 @@ PROVIDES = "go-native"
 
 # Checksums available at https://go.dev/dl/
 SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
-SRC_URI[go_linux_amd64.sha256sum] = "e2bc0b3e4b64111ec117295c088bde5f00eeed1567999ff77bc859d7df70078e"
-SRC_URI[go_linux_arm64.sha256sum] = "841cced7ecda9b2014f139f5bab5ae31785f35399f236b8b3e75dff2a2978d96"
-SRC_URI[go_linux_ppc64le.sha256sum] = "1f6dd06aa34f292f33c2c70ea9b4456e3a9e5cbd1d99968f3f463a4805b40ece"
+SRC_URI[go_linux_amd64.sha256sum] = "13b76a9b2a26823e53062fa841b07087d48ae2ef2936445dc34c4ae03293702c"
+SRC_URI[go_linux_arm64.sha256sum] = "24744edcaeb827aafb76c67ebd406b5ae13291023b0ad9f061dd7a0e75b275ba"
+SRC_URI[go_linux_ppc64le.sha256sum] = "48a99ecce9b1e632870c29420088f61cf17a6f0c5bdb3cc821ff5c00e14b1a8a"
 
 UPSTREAM_CHECK_URI = "https://golang.org/dl/"
 UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
diff --git a/meta/recipes-devtools/go/go-cross-canadian_1.21.5.bb b/meta/recipes-devtools/go/go-cross-canadian_1.21.7.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross-canadian_1.21.5.bb
rename to meta/recipes-devtools/go/go-cross-canadian_1.21.7.bb
diff --git a/meta/recipes-devtools/go/go-cross_1.21.5.bb b/meta/recipes-devtools/go/go-cross_1.21.7.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross_1.21.5.bb
rename to meta/recipes-devtools/go/go-cross_1.21.7.bb
diff --git a/meta/recipes-devtools/go/go-crosssdk_1.21.5.bb b/meta/recipes-devtools/go/go-crosssdk_1.21.7.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-crosssdk_1.21.5.bb
rename to meta/recipes-devtools/go/go-crosssdk_1.21.7.bb
diff --git a/meta/recipes-devtools/go/go-native_1.21.5.bb b/meta/recipes-devtools/go/go-native_1.21.7.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-native_1.21.5.bb
rename to meta/recipes-devtools/go/go-native_1.21.7.bb
diff --git a/meta/recipes-devtools/go/go-runtime_1.21.5.bb b/meta/recipes-devtools/go/go-runtime_1.21.7.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-runtime_1.21.5.bb
rename to meta/recipes-devtools/go/go-runtime_1.21.7.bb
diff --git a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
index cf7ad02f86..6d1a02e6c0 100644
--- a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
+++ b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
@@ -35,7 +35,7 @@ index 8973a87..adc9fd2 100644
  	goversion := findgoversion()
  	isRelease = strings.HasPrefix(goversion, "release.") || strings.HasPrefix(goversion, "go")
 diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go
-index 8a82e55..1141fc2 100644
+index 8caa22a..0c322fb 100644
 --- a/src/cmd/go/internal/cfg/cfg.go
 +++ b/src/cmd/go/internal/cfg/cfg.go
 @@ -231,7 +231,11 @@ func SetGOROOT(goroot string, isTestGo bool) {
diff --git a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
index be4af096ce..d0cd8d244e 100644
--- a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
+++ b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
@@ -19,10 +19,10 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 3 insertions(+)
 
 diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
-index 91e2d51..e98b912 100644
+index 5e5d255..459e9dc 100644
 --- a/src/cmd/link/internal/ld/lib.go
 +++ b/src/cmd/link/internal/ld/lib.go
-@@ -1554,6 +1554,7 @@ func (ctxt *Link) hostlink() {
+@@ -1563,6 +1563,7 @@ func (ctxt *Link) hostlink() {
  				argv = append(argv, "-Wl,-z,relro")
  			}
  			argv = append(argv, "-shared")
@@ -30,7 +30,7 @@ index 91e2d51..e98b912 100644
  			if ctxt.HeadType == objabi.Hwindows {
  				argv = addASLRargs(argv, *flagAslr)
  			} else {
-@@ -1569,6 +1570,7 @@ func (ctxt *Link) hostlink() {
+@@ -1578,6 +1579,7 @@ func (ctxt *Link) hostlink() {
  			argv = append(argv, "-Wl,-z,relro")
  		}
  		argv = append(argv, "-shared")
@@ -38,7 +38,7 @@ index 91e2d51..e98b912 100644
  	case BuildModePlugin:
  		if ctxt.HeadType == objabi.Hdarwin {
  			argv = append(argv, "-dynamiclib")
-@@ -1577,6 +1579,7 @@ func (ctxt *Link) hostlink() {
+@@ -1586,6 +1588,7 @@ func (ctxt *Link) hostlink() {
  				argv = append(argv, "-Wl,-z,relro")
  			}
  			argv = append(argv, "-shared")
diff --git a/meta/recipes-devtools/go/go_1.21.5.bb b/meta/recipes-devtools/go/go_1.21.7.bb
similarity index 100%
rename from meta/recipes-devtools/go/go_1.21.5.bb
rename to meta/recipes-devtools/go/go_1.21.7.bb
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* [RFC OE-core][PATCH v2 7/7] go: bump 1.22.0
  2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
                   ` (4 preceding siblings ...)
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7 Jose Quaresma
@ 2024-02-28 18:30 ` Jose Quaresma
  2024-02-29  5:16 ` [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Khem Raj
  6 siblings, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-28 18:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

Go 1.22 Release Notes
https://go.dev/doc/go1.22

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
---
 meta/conf/distro/include/tcmode-default.inc   |  2 +-
 .../go/{go-1.21.7.inc => go-1.22.0.inc}       |  2 +-
 ...e_1.21.7.bb => go-binary-native_1.22.0.bb} |  6 ++--
 ..._1.21.7.bb => go-cross-canadian_1.22.0.bb} |  0
 ...{go-cross_1.21.7.bb => go-cross_1.22.0.bb} |  0
 ...osssdk_1.21.7.bb => go-crosssdk_1.22.0.bb} |  0
 ...o-native_1.21.7.bb => go-native_1.22.0.bb} |  0
 ...runtime_1.21.7.bb => go-runtime_1.22.0.bb} |  0
 ...ent-based-hash-generation-less-pedan.patch | 32 +++++++++----------
 ...OOLDIR-to-be-overridden-in-the-envir.patch |  8 ++---
 ...3-ld-add-soname-to-shareable-objects.patch | 10 +++---
 ...de-CC-when-building-dist-and-go_boot.patch |  6 ++--
 ...dist-separate-host-and-target-builds.patch | 18 +++++------
 ...d-go-make-GOROOT-precious-by-default.patch | 22 ++++++-------
 ...not-write-linker-flags-into-buildids.patch |  8 ++---
 ...ldgo.go-do-not-hardcode-host-compile.patch |  4 +--
 ...uild-paths-on-staticly-linked-arches.patch | 10 +++---
 .../go/{go_1.21.7.bb => go_1.22.0.bb}         |  0
 18 files changed, 64 insertions(+), 64 deletions(-)
 rename meta/recipes-devtools/go/{go-1.21.7.inc => go-1.22.0.inc} (89%)
 rename meta/recipes-devtools/go/{go-binary-native_1.21.7.bb => go-binary-native_1.22.0.bb} (78%)
 rename meta/recipes-devtools/go/{go-cross-canadian_1.21.7.bb => go-cross-canadian_1.22.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-cross_1.21.7.bb => go-cross_1.22.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-crosssdk_1.21.7.bb => go-crosssdk_1.22.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-native_1.21.7.bb => go-native_1.22.0.bb} (100%)
 rename meta/recipes-devtools/go/{go-runtime_1.21.7.bb => go-runtime_1.22.0.bb} (100%)
 rename meta/recipes-devtools/go/{go_1.21.7.bb => go_1.22.0.bb} (100%)

diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 87666e5837..4c6fcbc436 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -23,7 +23,7 @@ GDBVERSION ?= "14.%"
 GLIBCVERSION ?= "2.39%"
 LINUXLIBCVERSION ?= "6.6%"
 QEMUVERSION ?= "8.2%"
-GOVERSION ?= "1.21%"
+GOVERSION ?= "1.22%"
 RUSTVERSION ?= "1.74%"
 
 PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
diff --git a/meta/recipes-devtools/go/go-1.21.7.inc b/meta/recipes-devtools/go/go-1.22.0.inc
similarity index 89%
rename from meta/recipes-devtools/go/go-1.21.7.inc
rename to meta/recipes-devtools/go/go-1.22.0.inc
index 6de24e1e22..230ada5e4b 100644
--- a/meta/recipes-devtools/go/go-1.21.7.inc
+++ b/meta/recipes-devtools/go/go-1.22.0.inc
@@ -15,4 +15,4 @@ SRC_URI += "\
     file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \
     file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \
 "
-SRC_URI[main.sha256sum] = "00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6"
+SRC_URI[main.sha256sum] = "4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c"
diff --git a/meta/recipes-devtools/go/go-binary-native_1.21.7.bb b/meta/recipes-devtools/go/go-binary-native_1.22.0.bb
similarity index 78%
rename from meta/recipes-devtools/go/go-binary-native_1.21.7.bb
rename to meta/recipes-devtools/go/go-binary-native_1.22.0.bb
index d8826e20f1..da3a8f2237 100644
--- a/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
+++ b/meta/recipes-devtools/go/go-binary-native_1.22.0.bb
@@ -9,9 +9,9 @@ PROVIDES = "go-native"
 
 # Checksums available at https://go.dev/dl/
 SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
-SRC_URI[go_linux_amd64.sha256sum] = "13b76a9b2a26823e53062fa841b07087d48ae2ef2936445dc34c4ae03293702c"
-SRC_URI[go_linux_arm64.sha256sum] = "24744edcaeb827aafb76c67ebd406b5ae13291023b0ad9f061dd7a0e75b275ba"
-SRC_URI[go_linux_ppc64le.sha256sum] = "48a99ecce9b1e632870c29420088f61cf17a6f0c5bdb3cc821ff5c00e14b1a8a"
+SRC_URI[go_linux_amd64.sha256sum] = "f6c8a87aa03b92c4b0bf3d558e28ea03006eb29db78917daec5cfb6ec1046265"
+SRC_URI[go_linux_arm64.sha256sum] = "7ca20c077148b69bb99887e04983955e60bd7c70c55e00bf85f9f7194874a3b2"
+SRC_URI[go_linux_ppc64le.sha256sum] = "0e57f421df9449066f00155ce98a5be93744b3d81b00ee4c2c9b511be2a31d93"
 
 UPSTREAM_CHECK_URI = "https://golang.org/dl/"
 UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux"
diff --git a/meta/recipes-devtools/go/go-cross-canadian_1.21.7.bb b/meta/recipes-devtools/go/go-cross-canadian_1.22.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross-canadian_1.21.7.bb
rename to meta/recipes-devtools/go/go-cross-canadian_1.22.0.bb
diff --git a/meta/recipes-devtools/go/go-cross_1.21.7.bb b/meta/recipes-devtools/go/go-cross_1.22.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-cross_1.21.7.bb
rename to meta/recipes-devtools/go/go-cross_1.22.0.bb
diff --git a/meta/recipes-devtools/go/go-crosssdk_1.21.7.bb b/meta/recipes-devtools/go/go-crosssdk_1.22.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-crosssdk_1.21.7.bb
rename to meta/recipes-devtools/go/go-crosssdk_1.22.0.bb
diff --git a/meta/recipes-devtools/go/go-native_1.21.7.bb b/meta/recipes-devtools/go/go-native_1.22.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-native_1.21.7.bb
rename to meta/recipes-devtools/go/go-native_1.22.0.bb
diff --git a/meta/recipes-devtools/go/go-runtime_1.21.7.bb b/meta/recipes-devtools/go/go-runtime_1.22.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go-runtime_1.21.7.bb
rename to meta/recipes-devtools/go/go-runtime_1.22.0.bb
diff --git a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
index 3bd756449e..564837c7cd 100644
--- a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
+++ b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch
@@ -32,7 +32,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  2 files changed, 36 insertions(+), 10 deletions(-)
 
 diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go
-index c7c2e83..4a90d9d 100644
+index c7c2e83e0f..4a90d9da5c 100644
 --- a/src/cmd/go/internal/envcmd/env.go
 +++ b/src/cmd/go/internal/envcmd/env.go
 @@ -189,7 +189,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar {
@@ -45,10 +45,10 @@ index c7c2e83..4a90d9d 100644
  		// Should not happen - b.CFlags was given an empty package.
  		fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err)
 diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
-index 13d2a78..e3dd486 100644
+index e05471b06c..9724cd07d0 100644
 --- a/src/cmd/go/internal/work/exec.go
 +++ b/src/cmd/go/internal/work/exec.go
-@@ -231,6 +231,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) {
+@@ -232,6 +232,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) {
  	writeActionGraph()
  }
  
@@ -57,7 +57,7 @@ index 13d2a78..e3dd486 100644
  // buildActionID computes the action ID for a build action.
  func (b *Builder) buildActionID(a *Action) cache.ActionID {
  	p := a.Package
-@@ -252,7 +254,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -253,7 +255,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  		if p.Module != nil {
  			fmt.Fprintf(h, "module %s@%s\n", p.Module.Path, p.Module.Version)
  		}
@@ -66,7 +66,7 @@ index 13d2a78..e3dd486 100644
  		// The Go compiler always hides the exact value of $GOROOT
  		// when building things in GOROOT.
  		//
-@@ -284,9 +286,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -285,9 +287,9 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  	}
  	if len(p.CgoFiles)+len(p.SwigFiles)+len(p.SwigCXXFiles) > 0 {
  		fmt.Fprintf(h, "cgo %q\n", b.toolID("cgo"))
@@ -78,7 +78,7 @@ index 13d2a78..e3dd486 100644
  		fmt.Fprintf(h, "CC=%q %q %q %q\n", ccExe, cppflags, cflags, ldflags)
  		// Include the C compiler tool ID so that if the C
  		// compiler changes we rebuild the package.
-@@ -294,14 +296,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -295,14 +297,14 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  			fmt.Fprintf(h, "CC ID=%q\n", ccID)
  		}
  		if len(p.CXXFiles)+len(p.SwigCXXFiles) > 0 {
@@ -95,7 +95,7 @@ index 13d2a78..e3dd486 100644
  			fmt.Fprintf(h, "FC=%q %q\n", fcExe, fflags)
  			if fcID, _, err := b.gccToolID(fcExe[0], "f95"); err == nil {
  				fmt.Fprintf(h, "FC ID=%q\n", fcID)
-@@ -318,7 +320,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
+@@ -319,7 +321,7 @@ func (b *Builder) buildActionID(a *Action) cache.ActionID {
  		}
  	}
  	if p.Internal.BuildInfo != nil {
@@ -104,7 +104,7 @@ index 13d2a78..e3dd486 100644
  	}
  
  	// Configuration specific to compiler toolchain.
-@@ -3137,8 +3139,25 @@ func envList(key, def string) []string {
+@@ -2679,8 +2681,25 @@ func envList(key, def string) []string {
  	return args
  }
  
@@ -131,7 +131,7 @@ index 13d2a78..e3dd486 100644
  	if cppflags, err = buildFlags("CPPFLAGS", "", p.CgoCPPFLAGS, checkCompilerFlags); err != nil {
  		return
  	}
-@@ -3154,6 +3173,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
+@@ -2696,6 +2715,13 @@ func (b *Builder) CFlags(p *load.Package) (cppflags, cflags, cxxflags, fflags, l
  	if ldflags, err = buildFlags("LDFLAGS", defaultCFlags, p.CgoLDFLAGS, checkLinkerFlags); err != nil {
  		return
  	}
@@ -145,24 +145,24 @@ index 13d2a78..e3dd486 100644
  
  	return
  }
-@@ -3169,7 +3195,7 @@ var cgoRe = lazyregexp.New(`[/\\:]`)
- 
- func (b *Builder) cgo(a *Action, cgoExe, objdir string, pcCFLAGS, pcLDFLAGS, cgofiles, gccfiles, gxxfiles, mfiles, ffiles []string) (outGo, outObj []string, err error) {
+@@ -2713,7 +2739,7 @@ func (b *Builder) cgo(a *Action, cgoExe, objdir string, pcCFLAGS, pcLDFLAGS, cgo
  	p := a.Package
+ 	sh := b.Shell(a)
+ 
 -	cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, cgoFFLAGS, cgoLDFLAGS, err := b.CFlags(p)
 +	cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, cgoFFLAGS, cgoLDFLAGS, err := b.CFlags(p, false)
  	if err != nil {
  		return nil, nil, err
  	}
-@@ -3725,7 +3751,7 @@ func (b *Builder) swigIntSize(objdir string) (intsize string, err error) {
+@@ -3268,7 +3294,7 @@ func (b *Builder) swigOne(a *Action, file, objdir string, pcCFLAGS []string, cxx
+ 	p := a.Package
+ 	sh := b.Shell(a)
  
- // Run SWIG on one SWIG input file.
- func (b *Builder) swigOne(a *Action, p *load.Package, file, objdir string, pcCFLAGS []string, cxx bool, intgosize string) (outGo, outC string, err error) {
 -	cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, _, _, err := b.CFlags(p)
 +	cgoCPPFLAGS, cgoCFLAGS, cgoCXXFLAGS, _, _, err := b.CFlags(p, false)
  	if err != nil {
  		return "", "", err
  	}
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
index 6d1a02e6c0..001c94a4e7 100644
--- a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
+++ b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
@@ -20,7 +20,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  2 files changed, 8 insertions(+), 2 deletions(-)
 
 diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
-index 8973a87..adc9fd2 100644
+index 32e59b446a..06ee4de8a9 100644
 --- a/src/cmd/dist/build.go
 +++ b/src/cmd/dist/build.go
 @@ -259,7 +259,9 @@ func xinit() {
@@ -35,10 +35,10 @@ index 8973a87..adc9fd2 100644
  	goversion := findgoversion()
  	isRelease = strings.HasPrefix(goversion, "release.") || strings.HasPrefix(goversion, "go")
 diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go
-index 8caa22a..0c322fb 100644
+index a8daa2dfc3..393ada39c9 100644
 --- a/src/cmd/go/internal/cfg/cfg.go
 +++ b/src/cmd/go/internal/cfg/cfg.go
-@@ -231,7 +231,11 @@ func SetGOROOT(goroot string, isTestGo bool) {
+@@ -230,7 +230,11 @@ func SetGOROOT(goroot string, isTestGo bool) {
  			// This matches the initialization of ToolDir in go/build, except for
  			// using ctxt.GOROOT and the installed GOOS and GOARCH rather than the
  			// GOROOT, GOOS, and GOARCH reported by the runtime package.
@@ -52,5 +52,5 @@ index 8caa22a..0c322fb 100644
  	}
  }
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
index d0cd8d244e..9cab2969c8 100644
--- a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
+++ b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch
@@ -19,10 +19,10 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 3 insertions(+)
 
 diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
-index 5e5d255..459e9dc 100644
+index eab74dc328..ae9bbc9093 100644
 --- a/src/cmd/link/internal/ld/lib.go
 +++ b/src/cmd/link/internal/ld/lib.go
-@@ -1563,6 +1563,7 @@ func (ctxt *Link) hostlink() {
+@@ -1576,6 +1576,7 @@ func (ctxt *Link) hostlink() {
  				argv = append(argv, "-Wl,-z,relro")
  			}
  			argv = append(argv, "-shared")
@@ -30,7 +30,7 @@ index 5e5d255..459e9dc 100644
  			if ctxt.HeadType == objabi.Hwindows {
  				argv = addASLRargs(argv, *flagAslr)
  			} else {
-@@ -1578,6 +1579,7 @@ func (ctxt *Link) hostlink() {
+@@ -1591,6 +1592,7 @@ func (ctxt *Link) hostlink() {
  			argv = append(argv, "-Wl,-z,relro")
  		}
  		argv = append(argv, "-shared")
@@ -38,7 +38,7 @@ index 5e5d255..459e9dc 100644
  	case BuildModePlugin:
  		if ctxt.HeadType == objabi.Hdarwin {
  			argv = append(argv, "-dynamiclib")
-@@ -1586,6 +1588,7 @@ func (ctxt *Link) hostlink() {
+@@ -1599,6 +1601,7 @@ func (ctxt *Link) hostlink() {
  				argv = append(argv, "-Wl,-z,relro")
  			}
  			argv = append(argv, "-shared")
@@ -47,5 +47,5 @@ index 5e5d255..459e9dc 100644
  	}
  
 -- 
-2.30.2
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch b/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch
index 5dd2621adc..8889aef1cf 100644
--- a/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch
+++ b/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch
@@ -19,10 +19,10 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/make.bash b/src/make.bash
-index 755b3b0..eddfc3c 100755
+index 76ad51624a..074e129a24 100755
 --- a/src/make.bash
 +++ b/src/make.bash
-@@ -198,7 +198,7 @@ if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; then
+@@ -198,7 +198,7 @@ if [[ "$GOROOT_BOOTSTRAP" == "$GOROOT" ]]; then
  	exit 1
  fi
  rm -f cmd/dist/dist
@@ -41,5 +41,5 @@ index 755b3b0..eddfc3c 100755
  
  # DO NOT ADD ANY NEW CODE HERE.
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
index f8dca65ed4..02269be969 100644
--- a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
+++ b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
@@ -44,7 +44,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 75 insertions(+), 1 deletion(-)
 
 diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
-index adc9fd2..5fff592 100644
+index 06ee4de8a9..74b7c7098f 100644
 --- a/src/cmd/dist/build.go
 +++ b/src/cmd/dist/build.go
 @@ -46,6 +46,7 @@ var (
@@ -83,7 +83,7 @@ index adc9fd2..5fff592 100644
  	xatexit(func() {
  		if files := xreaddir(goosGoarch); len(files) == 0 {
  			xremove(goosGoarch)
-@@ -1344,14 +1350,20 @@ func cmdbootstrap() {
+@@ -1338,14 +1344,20 @@ func cmdbootstrap() {
  	defer timelog("end", "dist bootstrap")
  
  	var debug, distpack, force, noBanner, noClean bool
@@ -105,7 +105,7 @@ index adc9fd2..5fff592 100644
  
  	if noClean {
  		xprintf("warning: --no-clean is deprecated and has no effect; use 'go install std cmd' instead\n")
-@@ -1363,6 +1375,18 @@ func cmdbootstrap() {
+@@ -1357,6 +1369,18 @@ func cmdbootstrap() {
  			"Use the -force flag to build anyway.\n", goos, goarch)
  	}
  
@@ -124,7 +124,7 @@ index adc9fd2..5fff592 100644
  	// Set GOPATH to an internal directory. We shouldn't actually
  	// need to store files here, since the toolchain won't
  	// depend on modules outside of vendor directories, but if
-@@ -1440,9 +1464,14 @@ func cmdbootstrap() {
+@@ -1434,9 +1458,14 @@ func cmdbootstrap() {
  		xprintf("\n")
  	}
  
@@ -139,7 +139,7 @@ index adc9fd2..5fff592 100644
  	goBootstrap := pathf("%s/go_bootstrap", tooldir)
  	if debug {
  		run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
-@@ -1470,7 +1499,11 @@ func cmdbootstrap() {
+@@ -1464,7 +1493,11 @@ func cmdbootstrap() {
  		xprintf("\n")
  	}
  	xprintf("Building Go toolchain2 using go_bootstrap and Go toolchain1.\n")
@@ -151,7 +151,7 @@ index adc9fd2..5fff592 100644
  	// Now that cmd/go is in charge of the build process, enable GOEXPERIMENT.
  	os.Setenv("GOEXPERIMENT", goexperiment)
  	// No need to enable PGO for toolchain2.
-@@ -1523,6 +1556,7 @@ func cmdbootstrap() {
+@@ -1517,6 +1550,7 @@ func cmdbootstrap() {
  		os.Setenv("GOCACHE", oldgocache)
  	}
  
@@ -159,7 +159,7 @@ index adc9fd2..5fff592 100644
  	if goos == oldgoos && goarch == oldgoarch {
  		// Common case - not setting up for cross-compilation.
  		timelog("build", "toolchain")
-@@ -1566,6 +1600,42 @@ func cmdbootstrap() {
+@@ -1560,6 +1594,42 @@ func cmdbootstrap() {
  		checkNotStale(toolenv(), goBootstrap, toolchain...)
  		copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
  	}
@@ -202,7 +202,7 @@ index adc9fd2..5fff592 100644
  
  	// Check that there are no new files in $GOROOT/bin other than
  	// go and gofmt and $GOOS_$GOARCH (target bin when cross-compiling).
-@@ -1585,8 +1655,12 @@ func cmdbootstrap() {
+@@ -1582,8 +1652,12 @@ func cmdbootstrap() {
  		}
  	}
  
@@ -216,5 +216,5 @@ index adc9fd2..5fff592 100644
  	if goos == "android" {
  		// Make sure the exec wrapper will sync a fresh $GOROOT to the device.
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch b/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch
index d118e726c6..262f1e96b8 100644
--- a/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch
+++ b/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch
@@ -29,10 +29,10 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  3 files changed, 34 insertions(+)
 
 diff --git a/src/cmd/go/internal/work/action.go b/src/cmd/go/internal/work/action.go
-index d4d0a71..42149d2 100644
+index a59072e591..9e35ebde0c 100644
 --- a/src/cmd/go/internal/work/action.go
 +++ b/src/cmd/go/internal/work/action.go
-@@ -730,6 +730,9 @@ func (b *Builder) addTransitiveLinkDeps(a, a1 *Action, shlib string) {
+@@ -754,6 +754,9 @@ func (b *Builder) addTransitiveLinkDeps(a, a1 *Action, shlib string) {
  			if p1 == nil || p1.Shlib == "" || haveShlib[filepath.Base(p1.Shlib)] {
  				continue
  			}
@@ -43,10 +43,10 @@ index d4d0a71..42149d2 100644
  			// TODO(rsc): The use of ModeInstall here is suspect, but if we only do ModeBuild,
  			// we'll end up building an overall library or executable that depends at runtime
 diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go
-index e2e0e07..1c84137 100644
+index 408edb5119..3d60252127 100644
 --- a/src/cmd/go/internal/work/build.go
 +++ b/src/cmd/go/internal/work/build.go
-@@ -228,6 +228,8 @@ See also: go install, go get, go clean.
+@@ -233,6 +233,8 @@ See also: go install, go get, go clean.
  
  const concurrentGCBackendCompilationEnabledByDefault = true
  
@@ -55,7 +55,7 @@ index e2e0e07..1c84137 100644
  func init() {
  	// break init cycle
  	CmdBuild.Run = runBuild
-@@ -241,6 +243,10 @@ func init() {
+@@ -246,6 +248,10 @@ func init() {
  		AddCoverFlags(CmdBuild, nil)
  		AddCoverFlags(CmdInstall, nil)
  	}
@@ -67,10 +67,10 @@ index e2e0e07..1c84137 100644
  
  // Note that flags consulted by other parts of the code
 diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
-index e3dd486..0ea5316 100644
+index 9724cd07d0..544df461a2 100644
 --- a/src/cmd/go/internal/work/exec.go
 +++ b/src/cmd/go/internal/work/exec.go
-@@ -539,6 +539,23 @@ func (b *Builder) build(ctx context.Context, a *Action) (err error) {
+@@ -544,6 +544,23 @@ func (b *Builder) build(ctx context.Context, a *Action) (err error) {
  		return err
  	}
  
@@ -91,10 +91,10 @@ index e3dd486..0ea5316 100644
 +		}
 +	}
 +
- 	if err := b.Mkdir(a.Objdir); err != nil {
+ 	if err := sh.Mkdir(a.Objdir); err != nil {
  		return err
  	}
-@@ -1722,6 +1739,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
+@@ -1737,6 +1754,14 @@ func (b *Builder) linkShared(ctx context.Context, a *Action) (err error) {
  		return err
  	}
  
@@ -106,9 +106,9 @@ index e3dd486..0ea5316 100644
 +		}
 +	}
 +
- 	if err := b.Mkdir(a.Objdir); err != nil {
+ 	if err := b.Shell(a).Mkdir(a.Objdir); err != nil {
  		return err
  	}
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch b/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
index 3e0ba35d81..35f3a98d80 100644
--- a/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
+++ b/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
@@ -17,10 +17,10 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
-index 0ea5316..d7e2d51 100644
+index 544df461a2..75df5a4aa8 100644
 --- a/src/cmd/go/internal/work/exec.go
 +++ b/src/cmd/go/internal/work/exec.go
-@@ -1357,7 +1357,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
+@@ -1374,7 +1374,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
  	}
  
  	// Toolchain-dependent configuration, shared with b.linkSharedActionID.
@@ -29,7 +29,7 @@ index 0ea5316..d7e2d51 100644
  
  	// Input files.
  	for _, a1 := range a.Deps {
-@@ -1705,7 +1705,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID {
+@@ -1720,7 +1720,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID {
  	fmt.Fprintf(h, "goos %s goarch %s\n", cfg.Goos, cfg.Goarch)
  
  	// Toolchain-dependent configuration, shared with b.linkActionID.
@@ -39,5 +39,5 @@ index 0ea5316..d7e2d51 100644
  	// Input files.
  	for _, a1 := range a.Deps {
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch b/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
index 58512207a8..0662f66af5 100644
--- a/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
+++ b/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
@@ -16,7 +16,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 4 insertions(+), 4 deletions(-)
 
 diff --git a/src/cmd/dist/buildgo.go b/src/cmd/dist/buildgo.go
-index 884e9d7..2f52eda 100644
+index 884e9d729a..2f52edacfe 100644
 --- a/src/cmd/dist/buildgo.go
 +++ b/src/cmd/dist/buildgo.go
 @@ -51,8 +51,8 @@ func mkzdefaultcc(dir, file string) {
@@ -42,5 +42,5 @@ index 884e9d7..2f52eda 100644
  }
  
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch b/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch
index 597a4e2104..cc45496e9c 100644
--- a/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch
+++ b/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch
@@ -17,10 +17,10 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
  1 file changed, 13 insertions(+), 2 deletions(-)
 
 diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go
-index c0e6265..b199fee 100644
+index 1549800afb..f41fb2c4ef 100644
 --- a/src/cmd/go/internal/load/pkg.go
 +++ b/src/cmd/go/internal/load/pkg.go
-@@ -2269,6 +2269,17 @@ func appendBuildSetting(info *debug.BuildInfo, key, value string) {
+@@ -2277,6 +2277,17 @@ func appendBuildSetting(info *debug.BuildInfo, key, value string) {
  	info.Settings = append(info.Settings, debug.BuildSetting{Key: key, Value: value})
  }
  
@@ -38,7 +38,7 @@ index c0e6265..b199fee 100644
  // setBuildInfo gathers build information and sets it into
  // p.Internal.BuildInfo, which will later be formatted as a string and embedded
  // in the binary. setBuildInfo should only be called on a main package with no
-@@ -2376,7 +2387,7 @@ func (p *Package) setBuildInfo(ctx context.Context, autoVCS bool) {
+@@ -2384,7 +2395,7 @@ func (p *Package) setBuildInfo(ctx context.Context, autoVCS bool) {
  	if gcflags := BuildGcflags.String(); gcflags != "" && cfg.BuildContext.Compiler == "gc" {
  		appendSetting("-gcflags", gcflags)
  	}
@@ -47,7 +47,7 @@ index c0e6265..b199fee 100644
  		// https://go.dev/issue/52372: only include ldflags if -trimpath is not set,
  		// since it can include system paths through various linker flags (notably
  		// -extar, -extld, and -extldflags).
-@@ -2419,7 +2430,7 @@ func (p *Package) setBuildInfo(ctx context.Context, autoVCS bool) {
+@@ -2427,7 +2438,7 @@ func (p *Package) setBuildInfo(ctx context.Context, autoVCS bool) {
  	// subset of flags that are known not to be paths?
  	if cfg.BuildContext.CgoEnabled && !cfg.BuildTrimpath {
  		for _, name := range []string{"CGO_CFLAGS", "CGO_CPPFLAGS", "CGO_CXXFLAGS", "CGO_LDFLAGS"} {
@@ -57,5 +57,5 @@ index c0e6265..b199fee 100644
  	}
  	appendSetting("GOARCH", cfg.BuildContext.GOARCH)
 -- 
-2.43.0
+2.44.0
 
diff --git a/meta/recipes-devtools/go/go_1.21.7.bb b/meta/recipes-devtools/go/go_1.22.0.bb
similarity index 100%
rename from meta/recipes-devtools/go/go_1.21.7.bb
rename to meta/recipes-devtools/go/go_1.22.0.bb
-- 
2.44.0



^ permalink raw reply related	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
  2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
                   ` (5 preceding siblings ...)
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 7/7] go: bump 1.22.0 Jose Quaresma
@ 2024-02-29  5:16 ` Khem Raj
  2024-02-29  8:18   ` Richard Purdie
  6 siblings, 1 reply; 20+ messages in thread
From: Khem Raj @ 2024-02-29  5:16 UTC (permalink / raw)
  To: Jose Quaresma; +Cc: openembedded-core, Jose Quaresma

Fails to compile bunch of  recipes using go e.g. influxdb, crucible,
syzkaller in meta-oe see

https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio

On Wed, Feb 28, 2024 at 10:30 AM Jose Quaresma <quaresma.jose@gmail.com> wrote:
>
> It's more hard to read but easy to rebase, no functional changes
>
> Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
> ---
>  ...dist-separate-host-and-target-builds.patch | 136 +++++-------------
>  1 file changed, 35 insertions(+), 101 deletions(-)
>
> diff --git a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
> index 29598449da..aa2df58995 100644
> --- a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
> +++ b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch
> @@ -3,8 +3,6 @@ From: Alex Kube <alexander.j.kube@gmail.com>
>  Date: Wed, 23 Oct 2019 21:18:12 +0430
>  Subject: [PATCH 5/9] cmd/dist: separate host and target builds
>
> -Upstream-Status: Inappropriate [OE specific]
> -
>  Change the dist tool to allow for OE-style cross-
>  and cross-canadian builds:
>
> @@ -33,13 +31,20 @@ Adapted to Go 1.13 from patches originally submitted to
>  the meta/recipes-devtools/go tree by
>  Matt Madison <matt@madison.systems>.
>
> +Rework the patch to avoid identation, it's more hard to read
> +but easy to rebase.
> +Jose Quaresma <jose.quaresma@foundries.io>
> +
> +Upstream-Status: Inappropriate [OE specific]
> +
>  Signed-off-by: Alexander J Kube <alexander.j.kube@gmail.com>
> +Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
>  ---
> - src/cmd/dist/build.go | 152 +++++++++++++++++++++++++++++++-----------
> - 1 file changed, 113 insertions(+), 39 deletions(-)
> + src/cmd/dist/build.go | 76 ++++++++++++++++++++++++++++++++++++++++++-
> + 1 file changed, 75 insertions(+), 1 deletion(-)
>
>  diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go
> -index 5d31718..1c7f308 100644
> +index 5d3171856a..d0ba54c072 100644
>  --- a/src/cmd/dist/build.go
>  +++ b/src/cmd/dist/build.go
>  @@ -44,6 +44,7 @@ var (
> @@ -119,17 +124,14 @@ index 5d31718..1c7f308 100644
>                 xprintf("\n")
>         }
>
> --      gogcflags = os.Getenv("GO_GCFLAGS") // we were using $BOOT_GO_GCFLAGS until now
> --      setNoOpt()
> --      goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
>  +      // For split host/target cross/cross-canadian builds, we don't
>  +      // want to be setting these flags until after we have compiled
>  +      // the toolchain that runs on the build host.
>  +      if !crossBuild {
> -+              gogcflags = os.Getenv("GO_GCFLAGS") // we were using $BOOT_GO_GCFLAGS until now
> -+              setNoOpt()
> -+              goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
> -+      }
> +       gogcflags = os.Getenv("GO_GCFLAGS") // we were using $BOOT_GO_GCFLAGS until now
> +       setNoOpt()
> +       goldflags = os.Getenv("GO_LDFLAGS") // we were using $BOOT_GO_LDFLAGS until now
> ++}
>         goBootstrap := pathf("%s/go_bootstrap", tooldir)
>         cmdGo := pathf("%s/go", gorootBin)
>         if debug {
> @@ -137,25 +139,27 @@ index 5d31718..1c7f308 100644
>                 xprintf("\n")
>         }
>         xprintf("Building Go toolchain2 using go_bootstrap and Go toolchain1.\n")
> --      os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
> -+      if crossBuild {
> ++      if !crossBuild {
> +       os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
> ++} else {
>  +              os.Setenv("CC", defaultcc[""])
> -+      } else {
> -+              os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
>  +      }
>         // Now that cmd/go is in charge of the build process, enable GOEXPERIMENT.
>         os.Setenv("GOEXPERIMENT", goexperiment)
>         goInstall(goBootstrap, toolchain...)
> -@@ -1421,46 +1454,84 @@ func cmdbootstrap() {
> +@@ -1421,6 +1454,7 @@ func cmdbootstrap() {
>                 copyfile(pathf("%s/compile3", tooldir), pathf("%s/compile", tooldir), writeExec)
>         }
>
> --      if goos == oldgoos && goarch == oldgoarch {
> --              // Common case - not setting up for cross-compilation.
> --              timelog("build", "toolchain")
> --              if vflag > 0 {
> --                      xprintf("\n")
> -+      if crossBuild {
> ++      if !crossBuild {
> +       if goos == oldgoos && goarch == oldgoarch {
> +               // Common case - not setting up for cross-compilation.
> +               timelog("build", "toolchain")
> +@@ -1462,6 +1496,42 @@ func cmdbootstrap() {
> +               checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
> +               copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
> +       }
> ++} else {
>  +              gogcflags = os.Getenv("GO_GCFLAGS")
>  +              goldflags = os.Getenv("GO_LDFLAGS")
>  +              tool_files, _ := filepath.Glob(pathf("%s/*", tooldir))
> @@ -189,94 +193,24 @@ index 5d31718..1c7f308 100644
>  +                      goInstall(goBootstrap, toBuild...)
>  +                      checkNotStale(goBootstrap, toBuild...)
>  +                      // Skip cmdGo staleness checks here, since we can't run the target's cmdGo binary
> -               }
> --              xprintf("Building packages and commands for %s/%s.\n", goos, goarch)
> -       } else {
> --              // GOOS/GOARCH does not match GOHOSTOS/GOHOSTARCH.
> --              // Finish GOHOSTOS/GOHOSTARCH installation and then
> --              // run GOOS/GOARCH installation.
> --              timelog("build", "host toolchain")
> --              if vflag > 0 {
> --                      xprintf("\n")
> -+
> -+              if goos == oldgoos && goarch == oldgoarch {
> -+                      // Common case - not setting up for cross-compilation.
> -+                      timelog("build", "toolchain")
> -+                      if vflag > 0 {
> -+                              xprintf("\n")
> -+                      }
> -+                      xprintf("Building packages and commands for %s/%s.\n", goos, goarch)
> -+              } else {
> -+                      // GOOS/GOARCH does not match GOHOSTOS/GOHOSTARCH.
> -+                      // Finish GOHOSTOS/GOHOSTARCH installation and then
> -+                      // run GOOS/GOARCH installation.
> -+                      timelog("build", "host toolchain")
> -+                      if vflag > 0 {
> -+                              xprintf("\n")
> -+                      }
> -+                      xprintf("Building packages and commands for host, %s/%s.\n", goos, goarch)
> -+                      goInstall(goBootstrap, "std", "cmd")
> -+                      checkNotStale(goBootstrap, "std", "cmd")
> -+                      checkNotStale(cmdGo, "std", "cmd")
> -+
> -+                      timelog("build", "target toolchain")
> -+                      if vflag > 0 {
> -+                              xprintf("\n")
> -+                      }
> -+                      goos = oldgoos
> -+                      goarch = oldgoarch
> -+                      os.Setenv("GOOS", goos)
> -+                      os.Setenv("GOARCH", goarch)
> -+                      os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
> -+                      xprintf("Building packages and commands for target, %s/%s.\n", goos, goarch)
> -               }
> --              xprintf("Building packages and commands for host, %s/%s.\n", goos, goarch)
> -               goInstall(goBootstrap, "std", "cmd")
> -               checkNotStale(goBootstrap, "std", "cmd")
> -               checkNotStale(cmdGo, "std", "cmd")
> -
> --              timelog("build", "target toolchain")
> --              if vflag > 0 {
> --                      xprintf("\n")
> -+              if debug {
> -+                      run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
> -+                      run("", ShowOutput|CheckExit, pathf("%s/buildid", tooldir), pathf("%s/pkg/%s_%s/runtime/internal/sys.a", goroot, goos, goarch))
> -+                      checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
> -+                      copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
> -               }
> --              goos = oldgoos
> --              goarch = oldgoarch
> --              os.Setenv("GOOS", goos)
> --              os.Setenv("GOARCH", goarch)
> --              os.Setenv("CC", compilerEnvLookup(defaultcc, goos, goarch))
> --              xprintf("Building packages and commands for target, %s/%s.\n", goos, goarch)
> --      }
> --      targets := []string{"std", "cmd"}
> --      goInstall(goBootstrap, targets...)
> --      checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
> --      checkNotStale(goBootstrap, targets...)
> --      checkNotStale(cmdGo, targets...)
> --      if debug {
> --              run("", ShowOutput|CheckExit, pathf("%s/compile", tooldir), "-V=full")
> --              checkNotStale(goBootstrap, append(toolchain, "runtime/internal/sys")...)
> --              copyfile(pathf("%s/compile4", tooldir), pathf("%s/compile", tooldir), writeExec)
> -       }
> ++              }
> ++      }
>
>         // Check that there are no new files in $GOROOT/bin other than
> -@@ -1477,8 +1548,11 @@ func cmdbootstrap() {
> +       // go and gofmt and $GOOS_$GOARCH (target bin when cross-compiling).
> +@@ -1477,8 +1547,12 @@ func cmdbootstrap() {
>                 }
>         }
>
> --      // Remove go_bootstrap now that we're done.
> --      xremove(pathf("%s/go_bootstrap", tooldir))
>  +      // Except that for split host/target cross-builds, we need to
>  +      // keep it.
>  +      if !crossBuild {
> -+              xremove(pathf("%s/go_bootstrap", tooldir))
> -+      }
> +       // Remove go_bootstrap now that we're done.
> +       xremove(pathf("%s/go_bootstrap", tooldir))
> ++}
>
>         if goos == "android" {
>                 // Make sure the exec wrapper will sync a fresh $GOROOT to the device.
>  --
> -2.30.2
> +2.43.0
>
> --
> 2.44.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#196400): https://lists.openembedded.org/g/openembedded-core/message/196400
> Mute This Topic: https://lists.openembedded.org/mt/104628621/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
  2024-02-29  5:16 ` [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Khem Raj
@ 2024-02-29  8:18   ` Richard Purdie
  2024-02-29  9:35     ` Jose Quaresma
       [not found]     ` <17B84BB9B5B6E4EC.16400@lists.openembedded.org>
  0 siblings, 2 replies; 20+ messages in thread
From: Richard Purdie @ 2024-02-29  8:18 UTC (permalink / raw)
  To: Khem Raj, Jose Quaresma; +Cc: openembedded-core, Jose Quaresma

On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
> Fails to compile bunch of  recipes using go e.g. influxdb, crucible,
> syzkaller in meta-oe see
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio

Also fails for oe-selftest:

https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio

and on arm hosts:

https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio

Cheers,

Richard


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
  2024-02-29  8:18   ` Richard Purdie
@ 2024-02-29  9:35     ` Jose Quaresma
       [not found]     ` <17B84BB9B5B6E4EC.16400@lists.openembedded.org>
  1 sibling, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-29  9:35 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Khem Raj, openembedded-core, Jose Quaresma

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

Richard Purdie <richard.purdie@linuxfoundation.org> escreveu (quinta,
29/02/2024 à(s) 08:18):

> On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
> > Fails to compile bunch of  recipes using go e.g. influxdb, crucible,
> > syzkaller in meta-oe see
> >
> >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
>
> Also fails for oe-selftest:
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
>
> and on arm hosts:
>
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio



Thanks for testing, I will take a look on all of this today.

Jose


>
>
> Cheers,
>
> Richard
>


-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 1892 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
       [not found]     ` <17B84BB9B5B6E4EC.16400@lists.openembedded.org>
@ 2024-02-29 21:42       ` Jose Quaresma
  2024-02-29 22:19         ` Richard Purdie
       [not found]         ` <17B8756EC40C8FBB.30419@lists.openembedded.org>
  0 siblings, 2 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-02-29 21:42 UTC (permalink / raw)
  To: Jose Quaresma; +Cc: Richard Purdie, Khem Raj, OE-core, Jose Quaresma

[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]

A quinta, 29/02/2024, 09:35, Jose Quaresma via lists.openembedded.org
<quaresma.jose=gmail.com@lists.openembedded.org> escreveu:

>
>
> Richard Purdie <richard.purdie@linuxfoundation.org> escreveu (quinta,
> 29/02/2024 à(s) 08:18):
>
>> On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
>> > Fails to compile bunch of  recipes using go e.g. influxdb, crucible,
>> > syzkaller in meta-oe see
>> >
>> >
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
>>
>> Also fails for oe-selftest:
>>
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
>>
>> and on arm hosts:
>>
>>
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio
>
>
>
> Thanks for testing, I will take a look on all of this today.
>

I have no progress today and unfortunately I won't have time to work on
this in the next few days :( if anyone wants to continue with this effort,
feel free to do so.

my apologies.

Jose


> Jose
>
>
>>
>>
>> Cheers,
>>
>> Richard
>>
>
>
> --
> Best regards,
>
> José Quaresma
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#196423):
> https://lists.openembedded.org/g/openembedded-core/message/196423
> Mute This Topic: https://lists.openembedded.org/mt/104628621/5052612
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3997 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
  2024-02-29 21:42       ` Jose Quaresma
@ 2024-02-29 22:19         ` Richard Purdie
       [not found]         ` <17B8756EC40C8FBB.30419@lists.openembedded.org>
  1 sibling, 0 replies; 20+ messages in thread
From: Richard Purdie @ 2024-02-29 22:19 UTC (permalink / raw)
  To: Jose Quaresma; +Cc: Khem Raj, OE-core, Jose Quaresma

On Thu, 2024-02-29 at 21:42 +0000, Jose Quaresma wrote:
> 
> 
> A quinta, 29/02/2024, 09:35, Jose Quaresma via lists.openembedded.org
> <quaresma.jose=gmail.com@lists.openembedded.org> escreveu:
> > 
> > 
> > Richard Purdie <richard.purdie@linuxfoundation.org> escreveu
> > (quinta, 29/02/2024 à(s) 08:18):
> > > On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
> > > > Fails to compile bunch of  recipes using go e.g. influxdb,
> > > > crucible,
> > > > syzkaller in meta-oe see
> > > > 
> > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
> > > 
> > > Also fails for oe-selftest:
> > > 
> > > https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
> > > 
> > > and on arm hosts:
> > > 
> > > https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio
> > > 
> > 
> > 
> > 
> > Thanks for testing, I will take a look on all of this today.
> 
> I have no progress today and unfortunately I won't have time to work
> on this in the next few days :( if anyone wants to continue with this
> effort, feel free to do so.
> 
> my apologies.

FWIW https://github.com/golang/go/issues/65887 looked relevant to the
first issue.

We are really late in the schedule to pull in things like this so I'm
not sure we'll get this in at this point :/.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7
  2024-02-28 18:30 ` [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7 Jose Quaresma
@ 2024-03-01  9:53   ` Richard Purdie
       [not found]   ` <17B89B4F303DC3DB.30419@lists.openembedded.org>
  1 sibling, 0 replies; 20+ messages in thread
From: Richard Purdie @ 2024-03-01  9:53 UTC (permalink / raw)
  To: Jose Quaresma, openembedded-core; +Cc: Jose Quaresma

On Wed, 2024-02-28 at 18:30 +0000, Jose Quaresma wrote:
> Upgrade to latest 1.21.x release [1]:
> 
> $ git --no-pager log --oneline go1.21.5..go1.21.7
> f29208030a (tag: go1.21.7) [release-branch.go1.21] go1.21.7
> 2fdad8af6d [release-branch.go1.21] cmd/internal/obj/arm64: fix frame pointer restore in epilogue
> 01c93ad049 [release-branch.go1.21] cmd/go/internal/generate: call modload.InitWorkFile
> db74bfba18 [release-branch.go1.21] Revert "crypto/internal/boring: upgrade module to fips-20220613" +1
> 916e6cddf1 [release-branch.go1.21] runtime: fix Pinner.Pin documentation
> 6552f3d4ac [release-branch.go1.21] cmd/go/internal/toolchain: apply the -modcacherw flag when downloading a module to determine what toolchain it needs
> 3960318b87 [release-branch.go1.21] crypto/x509: properly gate test on macos version
> 00f974eb1f [release-branch.go1.21] go/types, types2: don't lose position info of interface embeddings
> 2f91c16e68 [release-branch.go1.21] runtime: properly model rwmutex in lock ranking
> 2540b1436f [release-branch.go1.21] slices: explicitly discard results of some functions
> 7e34c4308f [release-branch.go1.21] runtime: clear g0 stack bounds in dropm
> 491c1e7e95 [release-branch.go1.21] runtime: allow update of system stack bounds on callback from C thread
> caafb50c0d [release-branch.go1.21] runtime: don't print "unexpected SPWRITE" when printing traceback
> cc85462b3d (tag: go1.21.6) [release-branch.go1.21] go1.21.6
> d2cb140194 [release-branch.go1.21] crypto/tls: align FIPS-only mode with BoringSSL policy
> 368e2a9461 [release-branch.go1.21] crypto/internal/boring: upgrade module to fips-20220613
> 8c6078adfb [release-branch.go1.21] runtime: add race annotations in IncNonDefault
> f6b203c828 [release-branch.go1.21] maps: fix aliasing problems with Clone
> 43818206dc [release-branch.go1.21] runtime: put ReadMemStats debug assertions behind a double-check mode
> cf65d74bc5 [release-branch.go1.21] runtime: add the disablethp GODEBUG setting
> ad1ec60a5b [release-branch.go1.21] runtime/pprof: fix generics function names
> bbab863ada [release-branch.go1.21] os/signal: skip nohup tests on darwin builders
> 7dc67e8f29 [release-branch.go1.21] os/signal: remove go t.Run from TestNohup
> 9f8b3ac8c4 [release-branch.go1.21] cmd/compile: fix escape analysis of string min/max
> 8c840b10d0 [release-branch.go1.21] cmd/compile: fix memcombine pass for big endian, > 1 byte elements
> 
> [1] https://github.com/golang/go/compare/go1.21.5...go1.21.7
> 
> Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
> ---
>  meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc} | 2 +-
>  ...binary-native_1.21.5.bb => go-binary-native_1.21.7.bb} | 6 +++---
>  ...oss-canadian_1.21.5.bb => go-cross-canadian_1.21.7.bb} | 0
>  .../go/{go-cross_1.21.5.bb => go-cross_1.21.7.bb}         | 0
>  .../go/{go-crosssdk_1.21.5.bb => go-crosssdk_1.21.7.bb}   | 0
>  .../go/{go-native_1.21.5.bb => go-native_1.21.7.bb}       | 0
>  .../go/{go-runtime_1.21.5.bb => go-runtime_1.21.7.bb}     | 0
>  ...go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch | 2 +-
>  .../go/go/0003-ld-add-soname-to-shareable-objects.patch   | 8 ++++----
>  meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb}   | 0
>  10 files changed, 9 insertions(+), 9 deletions(-)
>  rename meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc} (89%)
>  rename meta/recipes-devtools/go/{go-binary-native_1.21.5.bb => go-binary-native_1.21.7.bb} (78%)
>  rename meta/recipes-devtools/go/{go-cross-canadian_1.21.5.bb => go-cross-canadian_1.21.7.bb} (100%)
>  rename meta/recipes-devtools/go/{go-cross_1.21.5.bb => go-cross_1.21.7.bb} (100%)
>  rename meta/recipes-devtools/go/{go-crosssdk_1.21.5.bb => go-crosssdk_1.21.7.bb} (100%)
>  rename meta/recipes-devtools/go/{go-native_1.21.5.bb => go-native_1.21.7.bb} (100%)
>  rename meta/recipes-devtools/go/{go-runtime_1.21.5.bb => go-runtime_1.21.7.bb} (100%)
>  rename meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb} (100%)
> 
> diff --git a/meta/recipes-devtools/go/go-1.21.5.inc b/meta/recipes-devtools/go/go-1.21.7.inc
> similarity index 89%
> rename from meta/recipes-devtools/go/go-1.21.5.inc
> rename to meta/recipes-devtools/go/go-1.21.7.inc
> index f009ea77c7..6de24e1e22 100644
> --- a/meta/recipes-devtools/go/go-1.21.5.inc
> +++ b/meta/recipes-devtools/go/go-1.21.7.inc
> @@ -15,4 +15,4 @@ SRC_URI += "\
>      file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \
>      file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \
>  "
> -SRC_URI[main.sha256sum] = "285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19"
> +SRC_URI[main.sha256sum] = "00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6"
> diff --git a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> similarity index 78%
> rename from meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> rename to meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> index cc79a277ff..d8826e20f1 100644
> --- a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> +++ b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> @@ -9,9 +9,9 @@ PROVIDES = "go-native"
>  
>  # Checksums available at https://go.dev/dl/
>  SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}"
> -SRC_URI[go_linux_amd64.sha256sum] = "e2bc0b3e4b64111ec117295c088bde5f00eeed1567999ff77bc859d7df70078e"
> -SRC_URI[go_linux_arm64.sha256sum] = "841cced7ecda9b2014f139f5bab5ae31785f35399f236b8b3e75dff2a2978d96"
> -SRC_URI[go_linux_ppc64le.sha256sum] = "1f6dd06aa34f292f33c2c70ea9b4456e3a9e5cbd1d99968f3f463a4805b40ece"
> +SRC_URI[go_linux_amd64.sha256sum] = "13b76a9b2a26823e53062fa841b07087d48ae2ef2936445dc34c4ae03293702c"
> +SRC_URI[go_linux_arm64.sha256sum] = "24744edcaeb827aafb76c67ebd406b5ae13291023b0ad9f061dd7a0e75b275ba"
> +SRC_URI[go_linux_ppc64le.sha256sum] = "48a99ecce9b1e632870c29420088f61cf17a6f0c5bdb3cc821ff5c00e14b1a8a"
>  

I checked and for some reason, some of these checksums aren't correct
in this or the previous patch. I'll try fixing them up locally.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7
       [not found]   ` <17B89B4F303DC3DB.30419@lists.openembedded.org>
@ 2024-03-03 16:31     ` Richard Purdie
  2024-03-05 14:56       ` Jose Quaresma
  0 siblings, 1 reply; 20+ messages in thread
From: Richard Purdie @ 2024-03-03 16:31 UTC (permalink / raw)
  To: Jose Quaresma, openembedded-core; +Cc: Jose Quaresma

On Fri, 2024-03-01 at 09:53 +0000, Richard Purdie via
lists.openembedded.org wrote:
> On Wed, 2024-02-28 at 18:30 +0000, Jose Quaresma wrote:
> > Upgrade to latest 1.21.x release [1]:
> > 
> > $ git --no-pager log --oneline go1.21.5..go1.21.7
> > f29208030a (tag: go1.21.7) [release-branch.go1.21] go1.21.7
> > 2fdad8af6d [release-branch.go1.21] cmd/internal/obj/arm64: fix
> > frame pointer restore in epilogue
> > 01c93ad049 [release-branch.go1.21] cmd/go/internal/generate: call
> > modload.InitWorkFile
> > db74bfba18 [release-branch.go1.21] Revert "crypto/internal/boring:
> > upgrade module to fips-20220613" +1
> > 916e6cddf1 [release-branch.go1.21] runtime: fix Pinner.Pin
> > documentation
> > 6552f3d4ac [release-branch.go1.21] cmd/go/internal/toolchain: apply
> > the -modcacherw flag when downloading a module to determine what
> > toolchain it needs
> > 3960318b87 [release-branch.go1.21] crypto/x509: properly gate test
> > on macos version
> > 00f974eb1f [release-branch.go1.21] go/types, types2: don't lose
> > position info of interface embeddings
> > 2f91c16e68 [release-branch.go1.21] runtime: properly model rwmutex
> > in lock ranking
> > 2540b1436f [release-branch.go1.21] slices: explicitly discard
> > results of some functions
> > 7e34c4308f [release-branch.go1.21] runtime: clear g0 stack bounds
> > in dropm
> > 491c1e7e95 [release-branch.go1.21] runtime: allow update of system
> > stack bounds on callback from C thread
> > caafb50c0d [release-branch.go1.21] runtime: don't print "unexpected
> > SPWRITE" when printing traceback
> > cc85462b3d (tag: go1.21.6) [release-branch.go1.21] go1.21.6
> > d2cb140194 [release-branch.go1.21] crypto/tls: align FIPS-only mode
> > with BoringSSL policy
> > 368e2a9461 [release-branch.go1.21] crypto/internal/boring: upgrade
> > module to fips-20220613
> > 8c6078adfb [release-branch.go1.21] runtime: add race annotations in
> > IncNonDefault
> > f6b203c828 [release-branch.go1.21] maps: fix aliasing problems with
> > Clone
> > 43818206dc [release-branch.go1.21] runtime: put ReadMemStats debug
> > assertions behind a double-check mode
> > cf65d74bc5 [release-branch.go1.21] runtime: add the disablethp
> > GODEBUG setting
> > ad1ec60a5b [release-branch.go1.21] runtime/pprof: fix generics
> > function names
> > bbab863ada [release-branch.go1.21] os/signal: skip nohup tests on
> > darwin builders
> > 7dc67e8f29 [release-branch.go1.21] os/signal: remove go t.Run from
> > TestNohup
> > 9f8b3ac8c4 [release-branch.go1.21] cmd/compile: fix escape analysis
> > of string min/max
> > 8c840b10d0 [release-branch.go1.21] cmd/compile: fix memcombine pass
> > for big endian, > 1 byte elements
> > 
> > [1] https://github.com/golang/go/compare/go1.21.5...go1.21.7
> > 
> > Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
> > ---
> >  meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc} | 2 +-
> >  ...binary-native_1.21.5.bb => go-binary-native_1.21.7.bb} | 6 +++-
> > --
> >  ...oss-canadian_1.21.5.bb => go-cross-canadian_1.21.7.bb} | 0
> >  .../go/{go-cross_1.21.5.bb => go-cross_1.21.7.bb}         | 0
> >  .../go/{go-crosssdk_1.21.5.bb => go-crosssdk_1.21.7.bb}   | 0
> >  .../go/{go-native_1.21.5.bb => go-native_1.21.7.bb}       | 0
> >  .../go/{go-runtime_1.21.5.bb => go-runtime_1.21.7.bb}     | 0
> >  ...go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch | 2 +-
> >  .../go/go/0003-ld-add-soname-to-shareable-objects.patch   | 8
> > ++++----
> >  meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb}   | 0
> >  10 files changed, 9 insertions(+), 9 deletions(-)
> >  rename meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc}
> > (89%)
> >  rename meta/recipes-devtools/go/{go-binary-native_1.21.5.bb => go-
> > binary-native_1.21.7.bb} (78%)
> >  rename meta/recipes-devtools/go/{go-cross-canadian_1.21.5.bb =>
> > go-cross-canadian_1.21.7.bb} (100%)
> >  rename meta/recipes-devtools/go/{go-cross_1.21.5.bb => go-
> > cross_1.21.7.bb} (100%)
> >  rename meta/recipes-devtools/go/{go-crosssdk_1.21.5.bb => go-
> > crosssdk_1.21.7.bb} (100%)
> >  rename meta/recipes-devtools/go/{go-native_1.21.5.bb => go-
> > native_1.21.7.bb} (100%)
> >  rename meta/recipes-devtools/go/{go-runtime_1.21.5.bb => go-
> > runtime_1.21.7.bb} (100%)
> >  rename meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb}
> > (100%)
> > 
> > diff --git a/meta/recipes-devtools/go/go-1.21.5.inc b/meta/recipes-
> > devtools/go/go-1.21.7.inc
> > similarity index 89%
> > rename from meta/recipes-devtools/go/go-1.21.5.inc
> > rename to meta/recipes-devtools/go/go-1.21.7.inc
> > index f009ea77c7..6de24e1e22 100644
> > --- a/meta/recipes-devtools/go/go-1.21.5.inc
> > +++ b/meta/recipes-devtools/go/go-1.21.7.inc
> > @@ -15,4 +15,4 @@ SRC_URI += "\
> >     
> > file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
> >  \
> >     
> > file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \
> >  "
> > -SRC_URI[main.sha256sum] =
> > "285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19"
> > +SRC_URI[main.sha256sum] =
> > "00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6"
> > diff --git a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> > b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> > similarity index 78%
> > rename from meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> > rename to meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> > index cc79a277ff..d8826e20f1 100644
> > --- a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> > +++ b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> > @@ -9,9 +9,9 @@ PROVIDES = "go-native"
> >  
> >  # Checksums available at https://go.dev/dl/
> >  SRC_URI =
> > "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar
> > .gz;name=go_${BUILD_GOTUPLE}"
> > -SRC_URI[go_linux_amd64.sha256sum] =
> > "e2bc0b3e4b64111ec117295c088bde5f00eeed1567999ff77bc859d7df70078e"
> > -SRC_URI[go_linux_arm64.sha256sum] =
> > "841cced7ecda9b2014f139f5bab5ae31785f35399f236b8b3e75dff2a2978d96"
> > -SRC_URI[go_linux_ppc64le.sha256sum] =
> > "1f6dd06aa34f292f33c2c70ea9b4456e3a9e5cbd1d99968f3f463a4805b40ece"
> > +SRC_URI[go_linux_amd64.sha256sum] =
> > "13b76a9b2a26823e53062fa841b07087d48ae2ef2936445dc34c4ae03293702c"
> > +SRC_URI[go_linux_arm64.sha256sum] =
> > "24744edcaeb827aafb76c67ebd406b5ae13291023b0ad9f061dd7a0e75b275ba"
> > +SRC_URI[go_linux_ppc64le.sha256sum] =
> > "48a99ecce9b1e632870c29420088f61cf17a6f0c5bdb3cc821ff5c00e14b1a8a"
> >  
> 
> I checked and for some reason, some of these checksums aren't correct
> in this or the previous patch. I'll try fixing them up locally.

With the checksums fixed, 1.21 seemed to pass enough to merge. There
were some meta-oe recipes which failed.

1.22 still has further issues blocking it.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
       [not found]         ` <17B8756EC40C8FBB.30419@lists.openembedded.org>
@ 2024-03-03 23:03           ` Richard Purdie
  2024-03-05 14:55             ` Jose Quaresma
       [not found]             ` <17B9E61D9B388488.13906@lists.openembedded.org>
  0 siblings, 2 replies; 20+ messages in thread
From: Richard Purdie @ 2024-03-03 23:03 UTC (permalink / raw)
  To: Jose Quaresma; +Cc: Khem Raj, OE-core, Jose Quaresma

On Thu, 2024-02-29 at 22:19 +0000, Richard Purdie via
lists.openembedded.org wrote:
> On Thu, 2024-02-29 at 21:42 +0000, Jose Quaresma wrote:
> > 
> > 
> > A quinta, 29/02/2024, 09:35, Jose Quaresma via
> > lists.openembedded.org
> > <quaresma.jose=gmail.com@lists.openembedded.org> escreveu:
> > > 
> > > 
> > > Richard Purdie <richard.purdie@linuxfoundation.org> escreveu
> > > (quinta, 29/02/2024 à(s) 08:18):
> > > > On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
> > > > > Fails to compile bunch of  recipes using go e.g. influxdb,
> > > > > crucible,
> > > > > syzkaller in meta-oe see
> > > > > 
> > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
> > > > 
> > > > Also fails for oe-selftest:
> > > > 
> > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
> > > > 
> > > > and on arm hosts:
> > > > 
> > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio
> > > > 
> > > 
> > > 
> > > 
> > > Thanks for testing, I will take a look on all of this today.
> > 
> > I have no progress today and unfortunately I won't have time to
> > work
> > on this in the next few days :( if anyone wants to continue with
> > this
> > effort, feel free to do so.
> > 
> > my apologies.
> 
> FWIW https://github.com/golang/go/issues/65887 looked relevant to the
> first issue.
> 
> We are really late in the schedule to pull in things like this so I'm
> not sure we'll get this in at this point :/.
> 

I've some tweaks in master-next I'm testing to see if it does sort
1.22...


Cheers,

Richard



^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
  2024-03-03 23:03           ` Richard Purdie
@ 2024-03-05 14:55             ` Jose Quaresma
       [not found]             ` <17B9E61D9B388488.13906@lists.openembedded.org>
  1 sibling, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-03-05 14:55 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Khem Raj, OE-core, Jose Quaresma

[-- Attachment #1: Type: text/plain, Size: 2183 bytes --]

Richard Purdie <richard.purdie@linuxfoundation.org> escreveu (domingo,
3/03/2024 à(s) 23:03):

> On Thu, 2024-02-29 at 22:19 +0000, Richard Purdie via
> lists.openembedded.org wrote:
> > On Thu, 2024-02-29 at 21:42 +0000, Jose Quaresma wrote:
> > >
> > >
> > > A quinta, 29/02/2024, 09:35, Jose Quaresma via
> > > lists.openembedded.org
> > > <quaresma.jose=gmail.com@lists.openembedded.org> escreveu:
> > > >
> > > >
> > > > Richard Purdie <richard.purdie@linuxfoundation.org> escreveu
> > > > (quinta, 29/02/2024 à(s) 08:18):
> > > > > On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
> > > > > > Fails to compile bunch of  recipes using go e.g. influxdb,
> > > > > > crucible,
> > > > > > syzkaller in meta-oe see
> > > > > >
> > > > > >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
> > > > >
> > > > > Also fails for oe-selftest:
> > > > >
> > > > >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
> > > > >
> > > > > and on arm hosts:
> > > > >
> > > > >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio
> > > > >
> > > >
> > > >
> > > >
> > > > Thanks for testing, I will take a look on all of this today.
> > >
> > > I have no progress today and unfortunately I won't have time to
> > > work
> > > on this in the next few days :( if anyone wants to continue with
> > > this
> > > effort, feel free to do so.
> > >
> > > my apologies.
> >
> > FWIW https://github.com/golang/go/issues/65887 looked relevant to the
> > first issue.
> >
> > We are really late in the schedule to pull in things like this so I'm
> > not sure we'll get this in at this point :/.
> >


Having the 1.21 bump was already a significant benefit for the project in
my opinion.
so if you drop the 1.22 the impact is much reduced.


>
> I've some tweaks in master-next I'm testing to see if it does sort
> 1.22...
>

I also will do some tests with your changes in main-next to see if I found
any runtime issue.

Jose


>
>
> Cheers,
>
> Richard
>
>

-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 4338 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7
  2024-03-03 16:31     ` Richard Purdie
@ 2024-03-05 14:56       ` Jose Quaresma
  0 siblings, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-03-05 14:56 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core, Jose Quaresma

[-- Attachment #1: Type: text/plain, Size: 7543 bytes --]

Richard Purdie <richard.purdie@linuxfoundation.org> escreveu (domingo,
3/03/2024 à(s) 16:31):

> On Fri, 2024-03-01 at 09:53 +0000, Richard Purdie via
> lists.openembedded.org wrote:
> > On Wed, 2024-02-28 at 18:30 +0000, Jose Quaresma wrote:
> > > Upgrade to latest 1.21.x release [1]:
> > >
> > > $ git --no-pager log --oneline go1.21.5..go1.21.7
> > > f29208030a (tag: go1.21.7) [release-branch.go1.21] go1.21.7
> > > 2fdad8af6d [release-branch.go1.21] cmd/internal/obj/arm64: fix
> > > frame pointer restore in epilogue
> > > 01c93ad049 [release-branch.go1.21] cmd/go/internal/generate: call
> > > modload.InitWorkFile
> > > db74bfba18 [release-branch.go1.21] Revert "crypto/internal/boring:
> > > upgrade module to fips-20220613" +1
> > > 916e6cddf1 [release-branch.go1.21] runtime: fix Pinner.Pin
> > > documentation
> > > 6552f3d4ac [release-branch.go1.21] cmd/go/internal/toolchain: apply
> > > the -modcacherw flag when downloading a module to determine what
> > > toolchain it needs
> > > 3960318b87 [release-branch.go1.21] crypto/x509: properly gate test
> > > on macos version
> > > 00f974eb1f [release-branch.go1.21] go/types, types2: don't lose
> > > position info of interface embeddings
> > > 2f91c16e68 [release-branch.go1.21] runtime: properly model rwmutex
> > > in lock ranking
> > > 2540b1436f [release-branch.go1.21] slices: explicitly discard
> > > results of some functions
> > > 7e34c4308f [release-branch.go1.21] runtime: clear g0 stack bounds
> > > in dropm
> > > 491c1e7e95 [release-branch.go1.21] runtime: allow update of system
> > > stack bounds on callback from C thread
> > > caafb50c0d [release-branch.go1.21] runtime: don't print "unexpected
> > > SPWRITE" when printing traceback
> > > cc85462b3d (tag: go1.21.6) [release-branch.go1.21] go1.21.6
> > > d2cb140194 [release-branch.go1.21] crypto/tls: align FIPS-only mode
> > > with BoringSSL policy
> > > 368e2a9461 [release-branch.go1.21] crypto/internal/boring: upgrade
> > > module to fips-20220613
> > > 8c6078adfb [release-branch.go1.21] runtime: add race annotations in
> > > IncNonDefault
> > > f6b203c828 [release-branch.go1.21] maps: fix aliasing problems with
> > > Clone
> > > 43818206dc [release-branch.go1.21] runtime: put ReadMemStats debug
> > > assertions behind a double-check mode
> > > cf65d74bc5 [release-branch.go1.21] runtime: add the disablethp
> > > GODEBUG setting
> > > ad1ec60a5b [release-branch.go1.21] runtime/pprof: fix generics
> > > function names
> > > bbab863ada [release-branch.go1.21] os/signal: skip nohup tests on
> > > darwin builders
> > > 7dc67e8f29 [release-branch.go1.21] os/signal: remove go t.Run from
> > > TestNohup
> > > 9f8b3ac8c4 [release-branch.go1.21] cmd/compile: fix escape analysis
> > > of string min/max
> > > 8c840b10d0 [release-branch.go1.21] cmd/compile: fix memcombine pass
> > > for big endian, > 1 byte elements
> > >
> > > [1] https://github.com/golang/go/compare/go1.21.5...go1.21.7
> > >
> > > Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
> > > ---
> > >  meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc} | 2 +-
> > >  ...binary-native_1.21.5.bb => go-binary-native_1.21.7.bb} | 6 +++-
> > > --
> > >  ...oss-canadian_1.21.5.bb => go-cross-canadian_1.21.7.bb} | 0
> > >  .../go/{go-cross_1.21.5.bb => go-cross_1.21.7.bb}         | 0
> > >  .../go/{go-crosssdk_1.21.5.bb => go-crosssdk_1.21.7.bb}   | 0
> > >  .../go/{go-native_1.21.5.bb => go-native_1.21.7.bb}       | 0
> > >  .../go/{go-runtime_1.21.5.bb => go-runtime_1.21.7.bb}     | 0
> > >  ...go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch | 2 +-
> > >  .../go/go/0003-ld-add-soname-to-shareable-objects.patch   | 8
> > > ++++----
> > >  meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb}   | 0
> > >  10 files changed, 9 insertions(+), 9 deletions(-)
> > >  rename meta/recipes-devtools/go/{go-1.21.5.inc => go-1.21.7.inc}
> > > (89%)
> > >  rename meta/recipes-devtools/go/{go-binary-native_1.21.5.bb => go-
> > > binary-native_1.21.7.bb} (78%)
> > >  rename meta/recipes-devtools/go/{go-cross-canadian_1.21.5.bb =>
> > > go-cross-canadian_1.21.7.bb} (100%)
> > >  rename meta/recipes-devtools/go/{go-cross_1.21.5.bb => go-
> > > cross_1.21.7.bb} (100%)
> > >  rename meta/recipes-devtools/go/{go-crosssdk_1.21.5.bb => go-
> > > crosssdk_1.21.7.bb} (100%)
> > >  rename meta/recipes-devtools/go/{go-native_1.21.5.bb => go-
> > > native_1.21.7.bb} (100%)
> > >  rename meta/recipes-devtools/go/{go-runtime_1.21.5.bb => go-
> > > runtime_1.21.7.bb} (100%)
> > >  rename meta/recipes-devtools/go/{go_1.21.5.bb => go_1.21.7.bb}
> > > (100%)
> > >
> > > diff --git a/meta/recipes-devtools/go/go-1.21.5.inc b/meta/recipes-
> > > devtools/go/go-1.21.7.inc
> > > similarity index 89%
> > > rename from meta/recipes-devtools/go/go-1.21.5.inc
> > > rename to meta/recipes-devtools/go/go-1.21.7.inc
> > > index f009ea77c7..6de24e1e22 100644
> > > --- a/meta/recipes-devtools/go/go-1.21.5.inc
> > > +++ b/meta/recipes-devtools/go/go-1.21.7.inc
> > > @@ -15,4 +15,4 @@ SRC_URI += "\
> > >
> > > file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch
> > >  \
> > >
> > > file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \
> > >  "
> > > -SRC_URI[main.sha256sum] =
> > > "285cbbdf4b6e6e62ed58f370f3f6d8c30825d6e56c5853c66d3c23bcdb09db19"
> > > +SRC_URI[main.sha256sum] =
> > > "00197ab20f33813832bff62fd93cca1c42a08cc689a32a6672ca49591959bff6"
> > > diff --git a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> > > b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> > > similarity index 78%
> > > rename from meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> > > rename to meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> > > index cc79a277ff..d8826e20f1 100644
> > > --- a/meta/recipes-devtools/go/go-binary-native_1.21.5.bb
> > > +++ b/meta/recipes-devtools/go/go-binary-native_1.21.7.bb
> > > @@ -9,9 +9,9 @@ PROVIDES = "go-native"
> > >
> > >  # Checksums available at https://go.dev/dl/
> > >  SRC_URI =
> > > "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar
> > > .gz;name=go_${BUILD_GOTUPLE}"
> > > -SRC_URI[go_linux_amd64.sha256sum] =
> > > "e2bc0b3e4b64111ec117295c088bde5f00eeed1567999ff77bc859d7df70078e"
> > > -SRC_URI[go_linux_arm64.sha256sum] =
> > > "841cced7ecda9b2014f139f5bab5ae31785f35399f236b8b3e75dff2a2978d96"
> > > -SRC_URI[go_linux_ppc64le.sha256sum] =
> > > "1f6dd06aa34f292f33c2c70ea9b4456e3a9e5cbd1d99968f3f463a4805b40ece"
> > > +SRC_URI[go_linux_amd64.sha256sum] =
> > > "13b76a9b2a26823e53062fa841b07087d48ae2ef2936445dc34c4ae03293702c"
> > > +SRC_URI[go_linux_arm64.sha256sum] =
> > > "24744edcaeb827aafb76c67ebd406b5ae13291023b0ad9f061dd7a0e75b275ba"
> > > +SRC_URI[go_linux_ppc64le.sha256sum] =
> > > "48a99ecce9b1e632870c29420088f61cf17a6f0c5bdb3cc821ff5c00e14b1a8a"
> > >
> >
> > I checked and for some reason, some of these checksums aren't correct
> > in this or the previous patch. I'll try fixing them up locally.
>
> With the checksums fixed, 1.21 seemed to pass enough to merge. There
> were some meta-oe recipes which failed.
>

I did this minor bump a bit in a hurry and let it go.
My tests were all carried out using an amd64 host and that's why I didn't
see the others.

Sorry for this and thanks for fixing.

Jose


>
> 1.22 still has further issues blocking it.
>
> Cheers,
>
> Richard
>


-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 12632 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
       [not found]             ` <17B9E61D9B388488.13906@lists.openembedded.org>
@ 2024-03-06 10:21               ` Jose Quaresma
  2024-03-06 10:58                 ` Richard Purdie
  0 siblings, 1 reply; 20+ messages in thread
From: Jose Quaresma @ 2024-03-06 10:21 UTC (permalink / raw)
  To: quaresma.jose; +Cc: Richard Purdie, Khem Raj, OE-core, Jose Quaresma

[-- Attachment #1: Type: text/plain, Size: 3141 bytes --]

Jose Quaresma via lists.openembedded.org <quaresma.jose=
gmail.com@lists.openembedded.org> escreveu (terça, 5/03/2024 à(s) 14:55):

>
>
> Richard Purdie <richard.purdie@linuxfoundation.org> escreveu (domingo,
> 3/03/2024 à(s) 23:03):
>
>> On Thu, 2024-02-29 at 22:19 +0000, Richard Purdie via
>> lists.openembedded.org wrote:
>> > On Thu, 2024-02-29 at 21:42 +0000, Jose Quaresma wrote:
>> > >
>> > >
>> > > A quinta, 29/02/2024, 09:35, Jose Quaresma via
>> > > lists.openembedded.org
>> > > <quaresma.jose=gmail.com@lists.openembedded.org> escreveu:
>> > > >
>> > > >
>> > > > Richard Purdie <richard.purdie@linuxfoundation.org> escreveu
>> > > > (quinta, 29/02/2024 à(s) 08:18):
>> > > > > On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
>> > > > > > Fails to compile bunch of  recipes using go e.g. influxdb,
>> > > > > > crucible,
>> > > > > > syzkaller in meta-oe see
>> > > > > >
>> > > > > >
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
>> > > > >
>> > > > > Also fails for oe-selftest:
>> > > > >
>> > > > >
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
>> > > > >
>> > > > > and on arm hosts:
>> > > > >
>> > > > >
>> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > Thanks for testing, I will take a look on all of this today.
>> > >
>> > > I have no progress today and unfortunately I won't have time to
>> > > work
>> > > on this in the next few days :( if anyone wants to continue with
>> > > this
>> > > effort, feel free to do so.
>> > >
>> > > my apologies.
>> >
>> > FWIW https://github.com/golang/go/issues/65887 looked relevant to the
>> > first issue.
>> >
>> > We are really late in the schedule to pull in things like this so I'm
>> > not sure we'll get this in at this point :/.
>> >
>
>
> Having the 1.21 bump was already a significant benefit for the project in
> my opinion.
> so if you drop the 1.22 the impact is much reduced.
>
>
>>
>> I've some tweaks in master-next I'm testing to see if it does sort
>> 1.22...
>>
>
> I also will do some tests with your changes in main-next to see if I found
> any runtime issue.
>

The stack I have tested may be considered a bit limited but I didn't find
anything relevant that prevents integration.
If this bump to 1.22 can be tested with meta-virt the results would be a
wider range.

Jose


>
> Jose
>
>
>>
>>
>> Cheers,
>>
>> Richard
>>
>>
>
> --
> Best regards,
>
> José Quaresma
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#196634):
> https://lists.openembedded.org/g/openembedded-core/message/196634
> Mute This Topic: https://lists.openembedded.org/mt/104628621/5052612
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 6444 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
  2024-03-06 10:21               ` Jose Quaresma
@ 2024-03-06 10:58                 ` Richard Purdie
  2024-03-06 11:04                   ` Jose Quaresma
  0 siblings, 1 reply; 20+ messages in thread
From: Richard Purdie @ 2024-03-06 10:58 UTC (permalink / raw)
  To: Jose Quaresma; +Cc: Khem Raj, OE-core, Jose Quaresma

On Wed, 2024-03-06 at 02:22 -0800, Jose Quaresma wrote:
> 
> 
> Jose Quaresma via lists.openembedded.org
> <quaresma.jose=gmail.com@lists.openembedded.org> escreveu (terça,
> 5/03/2024 à(s) 14:55):
> > 
> > 
> > Richard Purdie <richard.purdie@linuxfoundation.org> escreveu
> > (domingo, 3/03/2024 à(s) 23:03):
> > > On Thu, 2024-02-29 at 22:19 +0000, Richard Purdie via
> > > lists.openembedded.org wrote:
> > > > On Thu, 2024-02-29 at 21:42 +0000, Jose Quaresma wrote:
> > > > > 
> > > > > 
> > > > > A quinta, 29/02/2024, 09:35, Jose Quaresma via
> > > > > lists.openembedded.org
> > > > > <quaresma.jose=gmail.com@lists.openembedded.org> escreveu:
> > > > > > 
> > > > > > 
> > > > > > Richard Purdie <richard.purdie@linuxfoundation.org>
> > > > > > escreveu
> > > > > > (quinta, 29/02/2024 à(s) 08:18):
> > > > > > > On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
> > > > > > > > Fails to compile bunch of  recipes using go e.g.
> > > > > > > > influxdb,
> > > > > > > > crucible,
> > > > > > > > syzkaller in meta-oe see
> > > > > > > > 
> > > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
> > > > > > > 
> > > > > > > Also fails for oe-selftest:
> > > > > > > 
> > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
> > > > > > > 
> > > > > > > and on arm hosts:
> > > > > > > 
> > > > > > > https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Thanks for testing, I will take a look on all of this
> > > > > > today.
> > > > > 
> > > > > I have no progress today and unfortunately I won't have time
> > > > > to
> > > > > work
> > > > > on this in the next few days :( if anyone wants to continue
> > > > > with
> > > > > this
> > > > > effort, feel free to do so.
> > > > > 
> > > > > my apologies.
> > > > 
> > > > FWIW https://github.com/golang/go/issues/65887 looked relevant
> > > > to the
> > > > first issue.
> > > > 
> > > > We are really late in the schedule to pull in things like this
> > > > so I'm
> > > > not sure we'll get this in at this point :/.
> > > > 
> > > 
> > 
> > 
> > Having the 1.21 bump was already a significant benefit for the
> > project in my opinion.
> > so if you drop the 1.22 the impact is much reduced.
> > 
> > >  
> > > 
> > > I've some tweaks in master-next I'm testing to see if it does
> > > sort
> > > 1.22...
> > > 
> > 
> > 
> > I also will do some tests with your changes in main-next to see if
> > I found any runtime issue.
> > 
> 
> 
> The stack I have tested may be considered a bit limited but I didn't
> find anything relevant that prevents integration.
> If this bump to 1.22 can be tested with meta-virt the results would
> be a wider range.

I believe Khem tested meta-oe and Bruce agreed he was ok with merging
this so I will probably merge the 1.22 patches in -next.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 20+ messages in thread

* Re: [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation
  2024-03-06 10:58                 ` Richard Purdie
@ 2024-03-06 11:04                   ` Jose Quaresma
  0 siblings, 0 replies; 20+ messages in thread
From: Jose Quaresma @ 2024-03-06 11:04 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Khem Raj, OE-core, Jose Quaresma

[-- Attachment #1: Type: text/plain, Size: 3948 bytes --]

Richard Purdie <richard.purdie@linuxfoundation.org> escreveu (quarta,
6/03/2024 à(s) 10:58):

> On Wed, 2024-03-06 at 02:22 -0800, Jose Quaresma wrote:
> >
> >
> > Jose Quaresma via lists.openembedded.org
> > <quaresma.jose=gmail.com@lists.openembedded.org> escreveu (terça,
> > 5/03/2024 à(s) 14:55):
> > >
> > >
> > > Richard Purdie <richard.purdie@linuxfoundation.org> escreveu
> > > (domingo, 3/03/2024 à(s) 23:03):
> > > > On Thu, 2024-02-29 at 22:19 +0000, Richard Purdie via
> > > > lists.openembedded.org wrote:
> > > > > On Thu, 2024-02-29 at 21:42 +0000, Jose Quaresma wrote:
> > > > > >
> > > > > >
> > > > > > A quinta, 29/02/2024, 09:35, Jose Quaresma via
> > > > > > lists.openembedded.org
> > > > > > <quaresma.jose=gmail.com@lists.openembedded.org> escreveu:
> > > > > > >
> > > > > > >
> > > > > > > Richard Purdie <richard.purdie@linuxfoundation.org>
> > > > > > > escreveu
> > > > > > > (quinta, 29/02/2024 à(s) 08:18):
> > > > > > > > On Wed, 2024-02-28 at 21:16 -0800, Khem Raj wrote:
> > > > > > > > > Fails to compile bunch of  recipes using go e.g.
> > > > > > > > > influxdb,
> > > > > > > > > crucible,
> > > > > > > > > syzkaller in meta-oe see
> > > > > > > > >
> > > > > > > > >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3667/steps/15/logs/stdio
> > > > > > > >
> > > > > > > > Also fails for oe-selftest:
> > > > > > > >
> > > > > > > >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6415/steps/14/logs/stdio
> > > > > > > >
> > > > > > > > and on arm hosts:
> > > > > > > >
> > > > > > > >
> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7999/steps/13/logs/stdio
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Thanks for testing, I will take a look on all of this
> > > > > > > today.
> > > > > >
> > > > > > I have no progress today and unfortunately I won't have time
> > > > > > to
> > > > > > work
> > > > > > on this in the next few days :( if anyone wants to continue
> > > > > > with
> > > > > > this
> > > > > > effort, feel free to do so.
> > > > > >
> > > > > > my apologies.
> > > > >
> > > > > FWIW https://github.com/golang/go/issues/65887 looked relevant
> > > > > to the
> > > > > first issue.
> > > > >
> > > > > We are really late in the schedule to pull in things like this
> > > > > so I'm
> > > > > not sure we'll get this in at this point :/.
> > > > >
> > > >
> > >
> > >
> > > Having the 1.21 bump was already a significant benefit for the
> > > project in my opinion.
> > > so if you drop the 1.22 the impact is much reduced.
> > >
> > > >
> > > >
> > > > I've some tweaks in master-next I'm testing to see if it does
> > > > sort
> > > > 1.22...
> > > >
> > >
> > >
> > > I also will do some tests with your changes in main-next to see if
> > > I found any runtime issue.
> > >
> >
> >
> > The stack I have tested may be considered a bit limited but I didn't
> > find anything relevant that prevents integration.
> > If this bump to 1.22 can be tested with meta-virt the results would
> > be a wider range.
>
> I believe Khem tested meta-oe and Bruce agreed he was ok with merging
> this so I will probably merge the 1.22 patches in -next.
>

Great news!
and thank you for helping to solve this big problem that I had been trying
to fix for a good few months.

Jose


> Cheers,
>
> Richard
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#196663):
> https://lists.openembedded.org/g/openembedded-core/message/196663
> Mute This Topic: https://lists.openembedded.org/mt/104628621/5052612
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 7434 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2024-03-06 11:04 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 18:30 [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Jose Quaresma
2024-02-28 18:30 ` [RFC OE-core][PATCH v2 2/7] go: bump 1.21.0 Jose Quaresma
2024-02-28 18:30 ` [RFC OE-core][PATCH v2 3/7] goarch: disable dynamic linking globally Jose Quaresma
2024-02-28 18:30 ` [RFC OE-core][PATCH v2 4/7] oeqa/gotoolchain: set GOPROXY Jose Quaresma
2024-02-28 18:30 ` [RFC OE-core][PATCH v2 5/7] go: upgrade 1.21.0 -> 1.21.5 Jose Quaresma
2024-02-28 18:30 ` [RFC OE-core][PATCH v2 6/7] go: upgrade 1.21.5 -> 1.21.7 Jose Quaresma
2024-03-01  9:53   ` [OE-core] " Richard Purdie
     [not found]   ` <17B89B4F303DC3DB.30419@lists.openembedded.org>
2024-03-03 16:31     ` Richard Purdie
2024-03-05 14:56       ` Jose Quaresma
2024-02-28 18:30 ` [RFC OE-core][PATCH v2 7/7] go: bump 1.22.0 Jose Quaresma
2024-02-29  5:16 ` [OE-core] [RFC OE-core][PATCH v2 1/7] go: rework patch to avoid identation Khem Raj
2024-02-29  8:18   ` Richard Purdie
2024-02-29  9:35     ` Jose Quaresma
     [not found]     ` <17B84BB9B5B6E4EC.16400@lists.openembedded.org>
2024-02-29 21:42       ` Jose Quaresma
2024-02-29 22:19         ` Richard Purdie
     [not found]         ` <17B8756EC40C8FBB.30419@lists.openembedded.org>
2024-03-03 23:03           ` Richard Purdie
2024-03-05 14:55             ` Jose Quaresma
     [not found]             ` <17B9E61D9B388488.13906@lists.openembedded.org>
2024-03-06 10:21               ` Jose Quaresma
2024-03-06 10:58                 ` Richard Purdie
2024-03-06 11:04                   ` Jose Quaresma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.