summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go
AgeCommit message (Collapse)Author
5 daysgo: Drop the linkmode completelyJose Quaresma
This will make possible to restore the default dynamic linking globally which is what we had before the 1.20.X release. (From OE-Core rev: 6ad90fc2fc49c4199a59dfb1c1d81a7ba184a522) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04go: upgrade 1.22.1 -> 1.22.2Jose Quaresma
Include fixes for CVE-2023-45288 Upgrade to latest 1.22.x release [1]: $ git --no-pager log --oneline go1.22.1..go1.22.2 dddf0ae40f (tag: go1.22.2) [release-branch.go1.22] go1.22.2 e55d7cf843 [release-branch.go1.22] net/http: update bundled golang.org/x/net/http2 4edf4bb2c6 [release-branch.go1.22] all: update golang.org/x/net 2c6d106541 [release-branch.go1.22] cmd/compile: don't assume args are always zero-extended 46587483e3 [release-branch.go1.22] cmd/compile: fix sign/zero-extension removal 0a5b33a883 [release-branch.go1.22] encoding/gob: make x509.Certificate marshalable again 0c53f93faa [release-branch.go1.22] cmd/go/internal/modfetch: pass "-c" arguments to git before subcommands abfd578156 [release-branch.go1.22] runtime: fix EvFrequency event value on Windows in the new tracer 7fb7acb82d [release-branch.go1.22] cmd/link/internal/riscv64: generate local text symbols for R_RISCV_CALL e23707b59c [release-branch.go1.22] go/types, types2: handle Alias types in substitution 3826650c99 [release-branch.go1.22] cmd/compile: fix early deadcode with label statement e71b0b1fee [release-branch.go1.22] cmd/compile: fix copying SSA-able variables optimization 9508eae5d1 [release-branch.go1.22] cmd/internal/obj/ppc64: don't modify runtime.elf_* symbols 35b1a146d9 [release-branch.go1.22] cmd/go: respect -coverpkg for unselected no-test packages [1] https://github.com/golang/go/compare/go1.22.1...go1.22.2 (From OE-Core rev: 348e676046159b00a6f06f68336aa5443919c139) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-04-04go: keep the patches in orderJose Quaresma
drop the old version no more used 0007-exec.go-do-not-write-linker-flags-into-buildids.patch that was replaced by the 0001-exec.go-filter-out-build-specific-paths-from-linker-.patch renamed now to 0007-exec.go-filter-out-build-specific-paths-from-linker-.patch (From OE-Core rev: 81b35091e4561b96212a1eedf0e579a8c3aa2b7d) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-18go: Upgrade 1.22.0 -> 1.22.1Soumya Sambu
Upgrade to latest 1.22.x release [1]: $git log --oneline go1.22.0..go1.22.1 db6097f8cb (tag: go1.22.1, origin/release-branch.go1.22) [release-branch.go1.22] go1.22.1 041a47712e [release-branch.go1.22] net/textproto, mime/multipart: avoid unbounded read in MIME header 3a855208e3 [release-branch.go1.22] net/http, net/http/cookiejar: avoid subdomain matches on IPv6 zones 337b8e9cbf [release-branch.go1.22] crypto/x509: make sure pub key is non-nil before interface conversion 16830ab48a [release-branch.go1.22] net/http: add missing call to decConnsPerHost 056b0edcb8 [release-branch.go1.22] html/template: escape additional tokens in MarshalJSON errors f73eba76a0 [release-branch.go1.22] net: work around runtime scheduler starvation on js and wasip1 5330cd225b [release-branch.go1.22] net/mail: properly handle special characters in phrase and obs-phrase d8c4239f08 [release-branch.go1.22] cmd/go/internal/modcmd: correctly filter out main modules in verify c33adf44ff [release-branch.go1.22] cmd/trace/v2,internal/trace: use correct frame for identifying goroutines 3b71998078 [release-branch.go1.22] go/types, types2: ensure that Alias.actual is set in NewAlias 8fe2ad6494 [release-branch.go1.22] runtime/internal/atomic: correct GOARM=7 guard at a DMB instruction 686662f3a4 [release-branch.go1.22] cmd/compile: make jump table symbol static 6cbe522fe1 [release-branch.go1.22] cmd/compile: fail noder.LookupFunc gracefully if function generic fb86598cd3 [release-branch.go1.22] cmd/compile: accept -lang=go1 as -lang=go1.0 6fbd01a711 [release-branch.go1.22] runtime: don't call traceReadCPU on the system stack d6a271939f [release-branch.go1.22] cmd/cgo/internal/testsanitizers: disable location checking for clang 20107e05a6 [release-branch.go1.22] internal/testenv: support the LUCI mobile builders in tests 53d1b73dff [release-branch.go1.22] internal/testenv: allow "-noopt" anywhere in builder name in test dd31ad7e9f [release-branch.go1.22] spec: fix typo in year (it's 2024 now) [1] https://github.com/golang/go/compare/go1.22.0...go1.22.1 (From OE-Core rev: 423f875e10707b583f34dde625301c702c49e9d9) Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-07go: filter out build specific path from the linker flagsChangqing Li
patch 0007-exec.go-do-not-write-linker-flags-into-buildids.patch removes linker flags from buildids for not breaking reproducibility, but it seems that this will make go not rebuild when linker flag changes, Refer [1]. So remove this oe-specific patch, and change to filter out build specific path from the linker flags [1] https://github.com/golang/go/issues/63760 (From OE-Core rev: 6873c6cb000b24c1badd0fb8b5cd2d0a31a63096) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06go: Drop linkmode with nativesdk/cross-canadianRichard Purdie
In 1.22 this appears to cause failures and no longer appears to be needed. (From OE-Core rev: 6fe1a4336adbee546085fa76ed9448f82736a590) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06go: Further tweak indentation in patchRichard Purdie
The current patch formatting is a mix of two styles which is hard to read. Tweak it further to make changes easier to identify since we're already breaking formatting rules. (From OE-Core rev: ab443dc1238e6c5a542d29ce9d2ba121b81ef365) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-06go: bump 1.22.0Jose Quaresma
Go 1.22 Release Notes https://go.dev/doc/go1.22 (From OE-Core rev: 170d7bc91537d723790dbe07c5b875b5e3ce57ee) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03go: upgrade 1.21.5 -> 1.21.7Jose 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 (From OE-Core rev: 163db4537b5844ff792e9dd462406c2d178939e0) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03go: upgrade 1.21.0 -> 1.21.5Jose 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 (From OE-Core rev: 0e0a939b0fa124618b963e9af7a11cea3748ef82) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03go: bump 1.21.0Jose Quaresma
Go 1.21 Release Notes https://go.dev/doc/go1.21 (From OE-Core rev: 51a3cb046de4cfd66ecef36031fa96be29ef0a2a) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-03-03go: rework patch to avoid identationJose Quaresma
It's more hard to read but easy to rebase, no functional changes (From OE-Core rev: 5065025a66f96140ca895a140067fbde82879941) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-24go: update 1.20.13 -> 1.20.14Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.13..go1.20.14 90a870f1dc (tag: go1.20.14, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.14 a2f4a5a6e7 [release-branch.go1.20] Revert "crypto/internal/boring: upgrade module to fips-20220613" +1 746a072791 [release-branch.go1.20] crypto/x509: properly gate test on macos version d7df7f4fa0 [release-branch.go1.20] runtime: properly model rwmutex in lock ranking $ git log --oneline go1.20.13..go1.20.14 [1] https://github.com/golang/go/compare/go1.20.13...go1.20.14 (From OE-Core rev: 44f81b6239f0f08877ccd6507c2a81f3650f193b) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2024-02-02go: update 1.20.12 -> 1.20.13Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.12..go1.20.13 a95136a88c (tag: go1.20.13) [release-branch.go1.20] go1.20.13 5c38c04957 [release-branch.go1.20] crypto/tls: align FIPS-only mode with BoringSSL policy 9e4abed39b [release-branch.go1.20] crypto/internal/boring: upgrade module to fips-20220613 95afc744a7 [release-branch.go1.20] runtime: put ReadMemStats debug assertions behind a double-check mode 8cb86b5f85 [release-branch.go1.20] os/signal: skip nohup tests on darwin builders 59ffd3b90d [release-branch.go1.20] os/signal: remove go t.Run from TestNohup [1] https://github.com/golang/go/compare/go1.20.12...go1.20.13 (From OE-Core rev: 9c67951634c2effd4fbe229338715ccb49378341) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-13go: set vendor in CVE_PRODUCTRoss Burton
It's not uncommon for specific third party modules to use "go" as the product[1]. However, the canonical CPE for the official Go language/runtime is always golang:go[2], so use that explicitly. [1] e.g. https://nvd.nist.gov/vuln/detail/CVE-2023-49292 [2] e.g. https://nvd.nist.gov/vuln/detail/CVE-2023-39320 (From OE-Core rev: fc3e9cce9e1a5aa5dc9a5ad4abdd4eb61f868d37) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08go: update 1.20.11 -> 1.20.12Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.11..go1.20.12 97c8ff8d53 (tag: go1.20.12, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.12 6446af942e [release-branch.go1.20] net/http: limit chunked data overhead 77397ffcb2 [release-branch.go1.20] crypto/rand,runtime: revert "switch RtlGenRandom for ProcessPrng" d77307f855 [release-branch.go1.20] cmd/compile: fix findIndVar so it does not match disjointed loop headers 1bd76576fe [release-branch.go1.20] crypto/rand,runtime: switch RtlGenRandom for ProcessPrng 1b59b017db [release-branch.go1.20] path/filepath: consider \\?\c: as a volume on Windows 46bc33819a [release-branch.go1.20] cmd/go/internal/vcs: error out if the requested repo does not support a secure protocol e1dc209be8 [release-branch.go1.20] cmd/go/internal/modfetch/codehost: set core.longpaths in Git repos on Windows [1] https://github.com/golang/go/compare/go1.20.11...go1.20.12 (From OE-Core rev: 8515842b5c503b9a8840675d9cbcfe147d25c1d4) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-12-08go: update 1.20.10 -> 1.20.11Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.10..go1.20.11 1d0d4b149c (tag: go1.20.11) [release-branch.go1.20] go1.20.11 46fb781685 [release-branch.go1.20] path/filepath: fix various issues in parsing Windows paths 998fdce3ae [release-branch.go1.20] net/http: pull http2 underflow fix from x/net/http2 d48639094b [release-branch.go1.20] cmd/link: split text sections for arm 32-bit c8fdffb790 [release-branch.go1.20] all: tidy dependency versioning after release [1] https://github.com/golang/go/compare/go1.20.10...go1.20.11 (From OE-Core rev: 09fb378fb9c60c383f0ac068bbe3692f047aa617) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-11-20go-cross-canadian.inc: drop PE, PR from /usr/src/debug pathsMartin Jansa
(From OE-Core rev: 0ad662f443dfc1850d818d96f9e223086ff99ef4) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-12go: update 1.20.9 -> 1.20.10Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.9..go1.20.10 8042fd87f3 (tag: go1.20.10) [release-branch.go1.20] go1.20.10 e175f27f58 [release-branch.go1.20] net/http: regenerate h2_bundle.go [1] https://github.com/golang/go/compare/go1.20.9...go1.20.10 Fixes CVE-2023-39325 (From OE-Core rev: 262d5386c6293dbd6b9c677fbb7ed7431651db5e) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-12go: update 1.20.8 -> 1.20.9Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.8..go1.20.9 68f9a6e2ad (tag: go1.20.9) [release-branch.go1.20] go1.20.9 31d5b604ac [release-branch.go1.20] cmd/compile: use absolute file name in isCgo check 83dce45959 [release-branch.go1.20] cmd/link: suppress -bind_at_load deprecation warning for ld-prime 08c544db98 [release-branch.go1.20] cmd/link: disable DWARF by default in c-shared mode on darwin 071f03a8e5 [release-branch.go1.20] cmd/link: force old Apple linker in plugin mode [1] https://github.com/golang/go/compare/go1.20.8...go1.20.9 (From OE-Core rev: 7962b93a53f928cd618016fa600ccefb2d57c28d) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-10-12go: update 1.20.7 -> 1.20.8Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.7..go1.20.8 d5b8518043 (tag: go1.20.8) [release-branch.go1.20] go1.20.8 2070531d2f [release-branch.go1.20] html/template: properly handle special tags within the script context 023b542edf [release-branch.go1.20] html/template: support HTML-like comments in script contexts 612da32fb5 [release-branch.go1.20] cmd/compile: in expandCalls, move all arg marshalling into call block f0b8768dbc [release-branch.go1.20] path/filepath: don't drop .. elements when cleaning invalid Windows paths b463668275 [release-branch.go1.20] runtime: profiling on Darwin cannot use blocking reads 974a3c9af7 [release-branch.go1.20] go/types, types2: don't panic during interface completion 14e3c7338d [release-branch.go1.20] cmd/api: rename api.go to main_test.go 095cfba86b [release-branch.go1.20] crypto/tls: add GODEBUG to control max RSA key size 1a91bb94b0 [release-branch.go1.20] cmd/go: do not index std as a module in modcache ede3e278ae [release-branch.go1.20] net/http: permit requests with invalid Host headers 201f8b40dc [release-branch.go1.20] cmd/go: refuse to build Go 1.22 code [1] https://github.com/golang/go/compare/go1.20.7...go1.20.8 (From OE-Core rev: 25d0870ae045a6f7845ebc905f2d6602a2ce854d) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-08-10go: upgrade 1.20.6 -> 1.20.7Sakib Sajal
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.6..go1.20.7 origin/release-branch.go1.20 adb775e309 (tag: go1.20.7, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.7 659f2a2207 [release-branch.go1.20] crypto/tls: restrict RSA keys in certificates to <= 8192 bits 10d85fa0f6 [release-branch.go1.20] cmd/asm, cmd/internal/obj: generate proper atomic ops for riscv64 bd3a1f24e7 [release-branch.go1.20] net: tolerate permission errors in interface tests 6211a024b4 [release-branch.go1.20] cmd/compile: on PPC64, fix sign/zero extension when masking [1] https://github.com/golang/go/compare/go1.20.6...go1.20.7 (From OE-Core rev: 039324d917ed124228a14ac1effdd66b27d9e82b) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-07-19go: update 1.20.5 -> 1.20.6Jose Quaresma
Upgrade to latest 1.20.x release [1]: $ git log --oneline go1.20.5..go1.20.6 origin/release-branch.go1.20 2c358ffe97 (tag: go1.20.6, origin/release-branch.go1.20) [release-branch.go1.20] go1.20.6 312920c00a [release-branch.go1.20] net/http: validate Host header before sending 4db13d762b [release-branch.go1.20] runtime: set raceignore to zero when starting a new goroutine 08a58dd8b6 [release-branch.go1.20] runtime: allow for 5 more threads in TestWindowsStackMemory* 65092835c5 [release-branch.go1.20] cmd/go: skip TestScript/gccgo_link_ldflags on aix/ppc64 bca817594c [release-branch.go1.20] crypto/x509: tolerate multiple matching chains in testVerify b8e67d1ddd [release-branch.go1.20] cmd/go/internal/test: don't wait for previous test actions when interrupted 3db4f8146c [release-branch.go1.20] runtime: resolve checkdead panic by refining `startm` lock handling in caller context 6b45fb7b73 [release-branch.go1.20] runtime: fallback to TEB arbitrary pointer when TLS slots are full be30960e58 [release-branch.go1.20] runtime: use 1-byte load for address checking in racecallatomic b59efe6c34 [release-branch.go1.20] net/mail: permit more characters in mail headers c32f1afb41 [release-branch.go1.20] all: make safe for new vet analyzer c7b145655b [release-branch.go1.20] cmd/go: fix tests for new builder environment 03063101a2 [release-branch.go1.20] text/template: set variables correctly in range assignment d51e322a3f [release-branch.go1.20] go/printer: error out of Fprint when it would write a '//line' directive with a multiline file path 49594244d3 [release-branch.go1.20] cmd/cover: error out if a requested source file contains a newline 4719048211 [release-branch.go1.20] cmd/cgo: error out if the source path used in line directives would contain a newline 6c606fc191 [release-branch.go1.20] cmd/go: fix TestScript/build_cwd_newline with CGO_ENABLED=0 63ad2b5811 [release-branch.go1.20] cmd/compile: do not report division by error during typecheck 95f377daad [release-branch.go1.20] cmd/go: retain extra roots to disambiguate imports in 'go mod tidy' a7a48fad7e [release-branch.go1.20] crypto/ecdsa: properly truncate P-521 hashes f5172dcd38 [release-branch.go1.20] go/build: check for invalid import paths again 8b3acefcbe [release-branch.go1.20] cmd/go: omit checksums for go.mod files needed for go version lines more often in pre-1.21 modules 1008486a9f [release-branch.go1.20] cmd/cgo: correct _cgo_flags output [1] https://github.com/golang/go/compare/go1.20.5...go1.20.6 (From OE-Core rev: 8d8216d8c4d37cc0d9508eb644653f94fff8989c) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-06-09go: Upgrade 1.20.4 -> 1.20.5Sakib Sajal
Upgrade to latest 1.20.x release: go.git$ git log --oneline go1.20.4..go1.20.5 e827d41c0a (tag: go1.20.5) [release-branch.go1.20] go1.20.5 c0ed873cd8 [release-branch.go1.20] cmd/go: disallow package directories containing newlines 356a419e2f [release-branch.go1.20] cmd/go: enforce flags with non-optional arguments fa60c381ed [release-branch.go1.20] cmd/go,cmd/cgo: in _cgo_flags use one line per flag 36144ba429 [release-branch.go1.20] runtime: implement SUID/SGID protections 5036ba77eb [release-branch.go1.20] net: skip TestFileFdBlocks if the "unix" network is not supported b249ec5655 [release-branch.go1.20] cmd/go/internal: update documentation of go test and go generate 4b95fc1e6c [release-branch.go1.20] cmd/go: save checksums for go.mod files needed for go version lines 31a1e19a59 [release-branch.go1.20] net, os: net.Conn.File.Fd should return a blocking descriptor 450c8021a5 [release-branch.go1.20] runtime: change fcntl to return two values 22741120ee [release-branch.go1.20] runtime: consistently define fcntl 9270e3be8f [release-branch.go1.20] os: if descriptor is non-blocking, retain that in Fd method 600636e931 [release-branch.go1.20] crypto/rsa: use BoringCrypto for 4096 bit keys afbe101950 [release-branch.go1.20] cmd/compile: fix bswap/load rewrite rules (From OE-Core rev: 3ea1e9e9d7385c78bdd513e44cea5c36444529b2) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-25go: Use -no-pie to build target cgoKhem Raj
Fixes go: ELF binary /usr/lib/go/pkg/tool/linux_arm64/pprof has relocations in .text go: ELF binary /usr/lib/go/bin/go has relocations in .text [textrel] (From OE-Core rev: a27d39aebd5966ffffb57c20518381cb06ba8373) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-25go: Upgrade 1.20.1 -> 1.20.4Khem Raj
- Remove already upstreamed patches - Brings a list of changes [1] [2] [3] [1] https://github.com/golang/go/issues?q=milestone%3AGo1.20.2+label%3ACherryPickApproved [2] https://github.com/golang/go/issues?q=milestone%3AGo1.20.3+label%3ACherryPickApproved [3] https://github.com/golang/go/issues?q=milestone%3AGo1.20.4+label%3ACherryPickApproved (From OE-Core rev: e043bfb42156c59c93c6a4816528a63cfdaccc3e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-02gcc/go: Drop crosssdk suffix from virtual provides to improve dependency ↵Richard Purdie
handling There is little point in having "crosssdk" suffex added to the virtual provider within gcc/go since the TARGET_PREFIX or SDK_PREFIX already encapsulates this. Remove it allowing some of the special case overriding to be removed. This also allows removal of some of the MLPREFIX usage since again, the triplet also covers this. (From OE-Core rev: fe0206ba482d209b24e636d578aa68ba5e67ba1b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-05-02binutils: Drop crosssdk suffix from virtual provides to improve dependency ↵Richard Purdie
handling There is little point in having "crosssdk" suffex added to the virtual provider within binutils since the TARGET_PREFIX or SDK_PREFIX already encapsulates this. Remove it allowing some of the special case overriding to be removed. (From OE-Core rev: 6856fc5c848cc2564bebe03a007ef109f46d0adb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-04-22go: backport fix for CVE-2023-24537Ross Burton
(From OE-Core rev: 9d059c11a60d1aca8ffefe42c7b49fa3e4180eb3) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-28go: fix CVE-2023-2453Ross Burton
Backport a security fix, can be removed once we have 1.20.2 onwards. (From OE-Core rev: 06df8350c3bc6f56013a0bff20b64cfdbb81cfca) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-23go: fix some linkshared regression introduced in go 1.20Jose Quaresma
Since go 1.20 some packages fails to link [1][2] and only build staticaly with GO_LINKSHARED = "" [1] https://lists.yoctoproject.org/g/meta-virtualization/topic/97182310 [2] https://github.com/golang/go/issues/58966 (From OE-Core rev: eb40d6c2ef72814336365208722e2dc96322e07d) Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-03-14go: use go as CVE product for all golang recipe veriantsPeter Marko
All golang vulnerabilities are reported under product 'go'. By default there is no vulnerability reported for images with golang components because none of used golang packages have correct CVE product set: * go-binary-native * go-runtime * go-cross-* (From OE-Core rev: 09f3a27a809bbec9b08c4e4a2b846b68f386c35c) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-20go: update 1.20 -> 1.20.1Alexander Kanavin
(From OE-Core rev: 257d508268719bd90ed81b61a04b756ba78ec1bd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-15go-cross-canadian: use gcc-crosssdk, not gcc-nativeAlexander Kanavin
The recipe was building native go against build host headers and libraries, and then installing it as a nativesdk item, which is entirely incorrect. This has been working by coincidence (go generally uses C and C libraries lightly) but with go 1.20 this turned into hard breakage. Also nativesdk sysroot was being passed in incorrectly. (From OE-Core rev: 9212704a0e6ba79c3a3c4d85fc132e0ab6de1747) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-15go: update 1.19.4 -> 1.20Alexander Kanavin
No longer package go-runtime-staticdev into sdk packagegroup, as go-runtime 1.20 doesn't build the static bits anymore (possibly can be enabled via build config, if proven necessary). (From OE-Core rev: e8ab9d303a6fca3806097f1fd360efe8f8ae0c1d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-02-02meta: remove True option to getVar and getVarFlag calls (again)Martin Jansa
* True is default since 2016 and most layers were already updated not to pass this parameter where not necessary, e.g. oe-core was updated couple times, first in: https://git.openembedded.org/openembedded-core/commit/?id=7c552996597faaee2fbee185b250c0ee30ea3b5f Updated with the same regexp as later oe-core update: https://git.openembedded.org/openembedded-core/commit/?id=9f551d588693328e4d99d33be94f26684eafcaba with small modification to replace not only d.getVar, but also data.getVar as in e.g.: e.data.getVar('ERR_REPORT_USERNAME', True) and for getVarFlag: sed -e 's|\(d\.getVarFlag \?\)( \?\([^,()]*, \?[^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVarFlag ?\( ?([^,()]*), ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) (From OE-Core rev: 26c74fd10614582e177437608908eb43688ab510) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-12-31go: update 1.19.3 -> 1.19.4Alexander Kanavin
(From OE-Core rev: 67301425ac2696ccc07d6f47856336d6336382fb) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-12-13go-crosssdk: avoid host contamination by GOCACHERobert Andersson
By default GOCACHE is set to $HOME/.cache. Same issue for all other go recipes had been fixed by commit 9a6d208b: [ go: avoid host contamination by GOCACHE ] but that commit missed go-crosssdk recipe. (From OE-Core rev: e5fd10c647ac4baad65f9efa964c3380aad7dd10) Signed-off-by: Robert Andersson <robert.m.andersson@atlascopco.com> Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-12-05go: Update reproducibility patch to fix panic errorsRyan Eatmon
Based on a discussion on the mailing list [1], there are panic errors that occur on a few platforms caused by the patch. We cannot simply remove the original patch due to the reproducibility issues that it addresses, so this patch on the original patch fixes the cause of the panic errors. The previous version of this patch was a little too aggressive in cleaning up the environment. Some of the variables impacted by the filerCompilerFlags() function require at least one value to remain in the array. In this case, the values for ccExe, cxxExe, and fcExe require a value or later code that access them result in a panic related to accessing a value out of range. This updated patch adds a flag that requires keeping the first value so that at least one thing remains and the assignments for the Exes set that flag to true. The first item in the array should be the executable name, so leaving it should be safe. I have run the oe-selftest and everything passed in my setup. There is a bug report [2] filed for the issue that this patch addresses. [YOCTO #14976] [1] https://lists.openembedded.org/g/openembedded-core/topic/94022663 [2] https://bugzilla.yoctoproject.org/show_bug.cgi?id=14976 (From OE-Core rev: 9eaa3a813555dd016a65be63a258f9c0b548a115) Signed-off-by: Ryan Eatmon <reatmon@ti.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-11-03go: update 1.19.2 -> 1.19.3Sakib Sajal
(From OE-Core rev: fd33d169a5febb37eac03312c4014e35d29d06df) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-11-01go: update 1.19 -> 1.19.2Alexander Kanavin
Drop stack-protector.patch as issue fixed upstream. (From OE-Core rev: 1b79d63a0703deb341f7693bd7b7c080a553b876) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-11-01go: submit patch upstreamAlexander Kanavin
(From OE-Core rev: 40d24b0b5c7a405bf9fd7ec7fa57ec61a6af3d01) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-10-28go: add support to build on ppc64leAndrew Geissler
Verified by building on a ppc64le based system (From OE-Core rev: 6f9bb7094b34d9cbafa8618ada46a94a06332545) Signed-off-by: Andrew Geissler <geissonator@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-09-30go: Fix reproducibility failuresRichard Purdie
We're seeing "cmd" static libs being sometimes present and sometimes not. The issue depends whether BUILD == TARGET so they're present for qemux86-64 on x86-64 hosts but not for qemux86-64 on an aarch64 system. Add an extra deletion to make the files consistent between the different hosts. (From OE-Core rev: 6e652835814c389a826ad2d262ee26c14dfb48b5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-09-13go-native: switch from SRC_URI:append to SRC_URI +=Mikko Rapeli
The :append can not be removed if needed in other layers. (From OE-Core rev: e129d2f7e3ba312ab5383397eeabf7273d23a529) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-08-10go: update 1.18.4 -> 1.19Alexander Kanavin
Rebase patches. (From OE-Core rev: 85064fd76c9f19b522f540f26e0fc68bfb0d7f43) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-23go: update 1.18.3 -> 1.18.4Alexander Kanavin
(From OE-Core rev: be03de98221754b8fb0c89d76b31101d097b48ae) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-07-04go: Filter build paths on staticly linked archesRichard Purdie
(From OE-Core rev: acd376324765e432f7c3895470ca46d2ce29287e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-06-22go: update 1.18.2 -> 1.18.3Alexander Kanavin
(From OE-Core rev: 667264b82156219f9ac50dbb013683ac4fbe0fad) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-05-20go: upgrade 1.18.1 -> 1.18.2Alexander Kanavin
(From OE-Core rev: 65bbbfc609c553b7ba54b63b5aab18b827c632f8) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>