From patchwork Wed May 13 17:08:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 88061 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52BFECD4F3D for ; Wed, 13 May 2026 17:10:26 +0000 (UTC) Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2433.1778692218205967163 for ; Wed, 13 May 2026 10:10:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=mK6I6xn8; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.227, mailfrom: fm-256628-2026051317101696fd5e73000002078f-9dl4uq@rts-flowmailer.siemens.com) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 2026051317101696fd5e73000002078f for ; Wed, 13 May 2026 19:10:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=6GKNTaf48yKHIu4i5ZMjJaPnkHkPEZ04VxuULHWz7Vo=; b=mK6I6xn8+SS9awUjftnICSM95fbADY0h/Wakv4hmE7cFR6l4PXvqdWiSUWrMQRGgsVHU1I 5r7c8PNzm/eo3U3EHIa1rpx56HRcZ8h98YCLfJoifA/rroGuTU7/0M8ub0Trc3NIunBimxvg Fjs23sF1uS8Y8Bl8cYZrAEGdyGYiAWmVfjOqxWWBVjUZkZY1TdqZIpiA9ee6HikOKRxq69yr lWF/tXNnA2T59zL54605RaUwlr/yOBBucia7YmNdAJQ0aL2FaRZUaRLVuy6QDgkO9E9CR6oD UzZ0HLRPAEgjWBmJ8BmCaNEUTpzpv6XH0VDxWrN+4H4ebkztYzdAEWPA==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][PATCH 1/7] go-helloworld: upgrade to latest revision Date: Wed, 13 May 2026 19:08:55 +0200 Message-ID: <20260513170902.2468061-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 17:10:26 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3983 From: Alexander Kanavin Signed-off-by: Alexander Kanavin Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (From OE-Core rev: 7f05d217867b2af52b0a28c6d1c91df97e1b5b39) Signed-off-by: Peter Marko --- recipes-extended/go-examples/go-helloworld_0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-extended/go-examples/go-helloworld_0.1.bb b/recipes-extended/go-examples/go-helloworld_0.1.bb index 3ffe64b..c8401c9 100644 --- a/recipes-extended/go-examples/go-helloworld_0.1.bb +++ b/recipes-extended/go-examples/go-helloworld_0.1.bb @@ -6,7 +6,7 @@ LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://src/${GO_IMPORT}/LICENSE;md5=7998cb338f82d15c0eff93b7004d272a" SRC_URI = "git://go.googlesource.com/example;branch=master;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX}" -SRCREV = "8b405629c4a5215871be932097e099c05ec5cb2e" +SRCREV = "7f05d217867b2af52b0a28c6d1c91df97e1b5b39" UPSTREAM_CHECK_COMMITS = "1" # drop the 'destsuffix' so we make the oe-core backports easier without conflits From patchwork Wed May 13 17:08:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 88060 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5EF4CCD4F3E for ; Wed, 13 May 2026 17:10:26 +0000 (UTC) Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2446.1778692224850853352 for ; Wed, 13 May 2026 10:10:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=V3V0wZ7k; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-256628-20260513171022eecde3ce09000207f7-ur7sm8@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20260513171022eecde3ce09000207f7 for ; Wed, 13 May 2026 19:10:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=LoP/mi3EnJp6JEcPGONBcJfEpT/NFngqbRxjUhxihpE=; b=V3V0wZ7kkNx+bqXX7k1SOM724ZRocsZ5YQUGQ+pQ5LKrkCpo74Q6jwprvoKMfjpZbCVE8w X/uBP4r9v08APfiVXM3dYwRyC6P99AygAEbsbMhE3xTFWnSOaZnzuQB2/4andKj6WI4jI4g2 MWOeB4WSZGHUN3l68UQAk9cgCRXFQsRBSkg0s6SXK8Ru6GWd1J0+uXW8pwLnX1nUSUOO4rFN Q792QBjwtPtq1XLzWh/vuLWExCHYhvjoykA3z4jtwK5mISuPkjoN/kpppJ9nxYKcI0E02Dfp q8OYQCyGUL9Uc2QsIktwjKe4XK2ayZPCh2OHBamdNlO9NrT2EXXl6YEw==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][PATCH 2/7] go: set status for CVE-2024-24786 Date: Wed, 13 May 2026 19:08:56 +0200 Message-ID: <20260513170902.2468061-2-peter.marko@siemens.com> In-Reply-To: <20260513170902.2468061-1-peter.marko@siemens.com> References: <20260513170902.2468061-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 17:10:26 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3984 From: Peter Marko cvelistV5 has wrong CPE: * "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*" The CVE is actually for golang-google-protobuf as links in the CVE report prove: * https://pkg.go.dev/vuln/GO-2024-2611 Signed-off-by: Peter Marko Signed-off-by: Richard Purdie (From OE-Core rev: be622a8da624b8cf04e4bfbbf6d751825ec37f9a) Signed-off-by: Peter Marko --- recipes-devtools/go/go-binary-native_1.26.2.bb | 1 + recipes-devtools/go/go-common.inc | 1 + 2 files changed, 2 insertions(+) diff --git a/recipes-devtools/go/go-binary-native_1.26.2.bb b/recipes-devtools/go/go-binary-native_1.26.2.bb index 3c76a67..f36606b 100644 --- a/recipes-devtools/go/go-binary-native_1.26.2.bb +++ b/recipes-devtools/go/go-binary-native_1.26.2.bb @@ -18,6 +18,7 @@ UPSTREAM_CHECK_REGEX = "go(?P\d+(\.\d+)+)\.linux" CVE_PRODUCT = "golang:go" CVE_STATUS[CVE-2024-3566] = "not-applicable-platform: Issue only applies on Windows" +CVE_STATUS[CVE-2024-24786] = "cpe-incorrect: this CVE is for golang-google-protobuf" S = "${WORKDIR}/go" diff --git a/recipes-devtools/go/go-common.inc b/recipes-devtools/go/go-common.inc index a79c90f..2d617bd 100644 --- a/recipes-devtools/go/go-common.inc +++ b/recipes-devtools/go/go-common.inc @@ -22,6 +22,7 @@ UPSTREAM_CHECK_REGEX = "(?P\d+(\.\d+)+)\.src\.tar" # all recipe variants are created from the same product CVE_PRODUCT = "golang:go" CVE_STATUS[CVE-2024-3566] = "not-applicable-platform: Issue only applies on Windows" +CVE_STATUS[CVE-2024-24786] = "cpe-incorrect: this CVE is for golang-google-protobuf" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" SSTATE_SCAN_CMD = "true" From patchwork Wed May 13 17:08:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 88062 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2FD19CD4F3D for ; Wed, 13 May 2026 17:10:36 +0000 (UTC) Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2441.1778692234180544069 for ; Wed, 13 May 2026 10:10:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=ZENhecJS; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.226, mailfrom: fm-256628-202605131710327733b4e826000207e2-hvm7ki@rts-flowmailer.siemens.com) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202605131710327733b4e826000207e2 for ; Wed, 13 May 2026 19:10:32 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=BuXFSww+M9RkJAOQto9+zLwMawiPKmKiNWggxDnv1cU=; b=ZENhecJSu+RFNeB8lI42EjLgOxuwimqJ6HCs/9EjYrZa35mNySeZ2irVTKP04q+dTEFikc Uaejlp4IT1MDqHCc2U9/ksA1hux3bTIs8OQBA6uH/OmuCNgHRuEMQYQfmKGgq6mfKNLBMdl7 W2TpYndzjD468NDw2gNhOUea3B2QufrnZ/wQUAn/lICKGyeedhyd/kYIaxGpXFjVLe+Ub9DF 27+YRVSQssipGwBGhv50g/tThnn/R5lDQqTywjzCnfDDBmGAkVgexivwhGLsrkTbssYqS3g0 7kadlotAzv7SYoy5lv2zQndgqRwkmLFpiv0yBUgK9hz1pXJQThlixngg==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][PATCH 3/7] go: add ptest support Date: Wed, 13 May 2026 19:08:57 +0200 Message-ID: <20260513170902.2468061-3-peter.marko@siemens.com> In-Reply-To: <20260513170902.2468061-1-peter.marko@siemens.com> References: <20260513170902.2468061-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 17:10:36 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3985 From: Pratik Farkase Add ptest infrastructure to test the Go standard library. - Run 'go test -short std' via run-ptest script - Install source tree and pkg/include headers - Create VERSION file for architecture detection - Exclude multi-arch binary testdata to avoid QA errors Signed-off-by: Pratik Farkase Signed-off-by: Mathieu Dubois-Briand (From OE-Core rev: 9ca41405e6bca276468a3b6f67eaa328b8016485) Signed-off-by: Peter Marko --- conf/layer.conf | 2 ++ recipes-core/images/core-image-ptest.bbappend | 6 ++++ recipes-devtools/go/go-1.26.2.inc | 1 + recipes-devtools/go/go/run-ptest | 32 +++++++++++++++++++ recipes-devtools/go/go_1.26.2.bb | 27 +++++++++++++++- 5 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 recipes-core/images/core-image-ptest.bbappend create mode 100755 recipes-devtools/go/go/run-ptest diff --git a/conf/layer.conf b/conf/layer.conf index 6dd3c62..f621052 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -15,3 +15,5 @@ LAYERDEPENDS_lts-go-mixin = " \ " GOVERSION = "1.26%" + +PTESTS_SLOW:append = " go" diff --git a/recipes-core/images/core-image-ptest.bbappend b/recipes-core/images/core-image-ptest.bbappend new file mode 100644 index 0000000..835487c --- /dev/null +++ b/recipes-core/images/core-image-ptest.bbappend @@ -0,0 +1,6 @@ +PTEST_RUNNER_TIMEOUT:virtclass-mcextend-go = "4800" + +# golang go-ptest requires extra space +IMAGE_ROOTFS_EXTRA_SPACE:virtclass-mcextend-go = "1524288" + +QB_MEM:virtclass-mcextend-go = "-m 4096" diff --git a/recipes-devtools/go/go-1.26.2.inc b/recipes-devtools/go/go-1.26.2.inc index 8bb10bc..c53e828 100644 --- a/recipes-devtools/go/go-1.26.2.inc +++ b/recipes-devtools/go/go-1.26.2.inc @@ -16,5 +16,6 @@ SRC_URI += "\ file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \ file://0010-cmd-go-clear-GOROOT-for-func-ldShared-when-trimpath-.patch \ file://0011-cmd-link-stop-forcing-binutils-gold-dependency-on-aa.patch \ + file://run-ptest \ " SRC_URI[main.sha256sum] = "2e91ebb6947a96e9436fb2b3926a8802efe63a6d375dffec4f82aa9dbd6fd43b" diff --git a/recipes-devtools/go/go/run-ptest b/recipes-devtools/go/go/run-ptest new file mode 100755 index 0000000..ac020de --- /dev/null +++ b/recipes-devtools/go/go/run-ptest @@ -0,0 +1,32 @@ +#!/bin/sh + +PTEST_DIR=/usr/lib/go/ptest +GOROOT=/usr/lib/go + +export GOROOT +export PATH=$GOROOT/bin:$PATH +export ZONEINFO=/usr/share/zoneinfo + +ln -sf $PTEST_DIR/src $GOROOT/src +mkdir -p $GOROOT/pkg/include +cp $PTEST_DIR/pkg/include/* $GOROOT/pkg/include/ +cp $PTEST_DIR/VERSION $GOROOT/VERSION + +cd $GOROOT + +SKIP_PKGS="debug/dwarf debug/elf debug/pe debug/plan9obj go/types internal/xcoff net/http runtime testing time" + +SKIP_REGEX=$(echo "$SKIP_PKGS" | sed 's/ /|/g') + +for pkg in $(go list std); do + if echo "$pkg" | grep -qE "^($SKIP_REGEX)$"; then + echo "SKIP: $pkg" + continue + fi + + if go test -short "$pkg" >/dev/null 2>&1; then + echo "PASS: $pkg" + else + echo "FAIL: $pkg" + fi +done diff --git a/recipes-devtools/go/go_1.26.2.bb b/recipes-devtools/go/go_1.26.2.bb index 46f5fbc..35a14b8 100644 --- a/recipes-devtools/go/go_1.26.2.bb +++ b/recipes-devtools/go/go_1.26.2.bb @@ -1,7 +1,7 @@ require go-${PV}.inc require go-target.inc -inherit linuxloader +inherit linuxloader ptest CGO_LDFLAGS:append = " -no-pie" @@ -16,3 +16,28 @@ python() { d.appendVar('INSANE_SKIP:%s' % d.getVar('PN'), " textrel") } +do_install_ptest() { + install -d ${D}${PTEST_PATH}/src + install -d ${D}${PTEST_PATH}/pkg/include + + cp ${S}/pkg/include/* ${D}${PTEST_PATH}/pkg/include/ + echo "go${PV}" > ${D}${PTEST_PATH}/VERSION + + cd ${S}/src + find . -type d -exec install -d ${D}${PTEST_PATH}/src/{} \; + find . -type f \ + ! -path "*/testdata/*.elf*" \ + ! -path "*/testdata/*-x86-64*" \ + ! -path "*/testdata/*.obj" \ + ! -path "*/testdata/*.syso" \ + ! -path "*/testdata/*.so" \ + ! -path "*/testdata/*.so_" \ + ! -path "*/testdata/*-exec" \ + ! -path "*/testdata/test32*" \ + ! -path "*/testdata/test64*" \ + ! -path "*/race/*.syso" \ + ! -path "*/boring/syso/*.syso" \ + -exec install -m 0644 {} ${D}${PTEST_PATH}/src/{} \; +} + +RDEPENDS:${PN}-ptest += "bash tzdata git packagegroup-core-buildessential" From patchwork Wed May 13 17:08:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 88063 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E4EFCD4F3D for ; Wed, 13 May 2026 17:10:46 +0000 (UTC) Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2455.1778692242232683247 for ; Wed, 13 May 2026 10:10:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=C4CdhPfL; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.225, mailfrom: fm-256628-20260513171040fabe4cb25900020739-tl2ihx@rts-flowmailer.siemens.com) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 20260513171040fabe4cb25900020739 for ; Wed, 13 May 2026 19:10:40 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=/VW1PmQf6jiNeB0WHmBs/3wWQt3oQ/k6Rh68+gdrhXk=; b=C4CdhPfLivRs5f1w/Sc0u/XkDLQw+kr2FtfJ/uewblGbVccU/GI5/HJZTYHdICEM/kS4+H FrWy6t3ORaY5RWqoTNpfFsiofb94d2pAP7xGPp5bvjKZD1seAwfZ2ZRCLII0U2Gkb0Q9YZYO zUAX/aW1r2IH8+dkYhCBlItHZw5xbehPYSGEluSHWcWDjqCITfpXK58InpLkcZpOlRWOWplR W7QVB3SP2utJQS2MTQKraRgifxIWec9HY8SCS3gO6xA9dd2qZm+SKAOcCWhojs+BPd+wzWWE D+yENGBvwu9IGUVjkh3X6DapY/fmvl5S6+A2TrF6VIFkvpMXX07nUQEg==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][PATCH 4/7] go: ptest: improvements and multiple fixes in golang ptest Date: Wed, 13 May 2026 19:08:58 +0200 Message-ID: <20260513170902.2468061-4-peter.marko@siemens.com> In-Reply-To: <20260513170902.2468061-1-peter.marko@siemens.com> References: <20260513170902.2468061-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 17:10:46 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3986 From: Pratik Farkase Summary of Changelog: - run-ptest permanently modified the installed GOROOT by symlinking src/ and copying files without cleanup, corrupting the Go installation - Sub-package skip regex used exact match (^pkg$) so subpackages like net/http/httptest and runtime/debug were not skipped and would fail - Test output was completely suppressed (>/dev/null 2>&1), making failures impossible to diagnose - go was missing from RDEPENDS, allowing ptest to be installed without the toolchain it needs - bash was in RDEPENDS despite the script using #!/bin/sh with no bash-isms - file://run-ptest was in the shared .inc, affecting go-cross and go-native which don't inherit ptest - cp pkg/include/* would fail if the directory was empty Fix by saving/restoring GOROOT/src, using (/|$) in the skip regex, printing output on failure, correcting RDEPENDS, moving run-ptest to the target .bb, and guarding the glob. Tested on qemux86-64: all tests pass, 0 failures (~63 min). Signed-off-by: Pratik Farkase Signed-off-by: Richard Purdie (From OE-Core rev: a359aed2a8b94ad395a259a2009347e97185cbbc) Signed-off-by: Peter Marko --- recipes-devtools/go/go-1.26.2.inc | 1 - recipes-devtools/go/go/run-ptest | 47 +++++++++++++++++++++++++------ recipes-devtools/go/go_1.26.2.bb | 8 ++++-- 3 files changed, 45 insertions(+), 11 deletions(-) diff --git a/recipes-devtools/go/go-1.26.2.inc b/recipes-devtools/go/go-1.26.2.inc index c53e828..8bb10bc 100644 --- a/recipes-devtools/go/go-1.26.2.inc +++ b/recipes-devtools/go/go-1.26.2.inc @@ -16,6 +16,5 @@ SRC_URI += "\ file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \ file://0010-cmd-go-clear-GOROOT-for-func-ldShared-when-trimpath-.patch \ file://0011-cmd-link-stop-forcing-binutils-gold-dependency-on-aa.patch \ - file://run-ptest \ " SRC_URI[main.sha256sum] = "2e91ebb6947a96e9436fb2b3926a8802efe63a6d375dffec4f82aa9dbd6fd43b" diff --git a/recipes-devtools/go/go/run-ptest b/recipes-devtools/go/go/run-ptest index ac020de..b8a0805 100755 --- a/recipes-devtools/go/go/run-ptest +++ b/recipes-devtools/go/go/run-ptest @@ -1,32 +1,63 @@ #!/bin/sh +# SPDX-License-Identifier: MIT -PTEST_DIR=/usr/lib/go/ptest +PTEST_DIR=$(cd "$(dirname "$0")" && pwd) GOROOT=/usr/lib/go export GOROOT export PATH=$GOROOT/bin:$PATH +export GOCACHE=$(mktemp -d) export ZONEINFO=/usr/share/zoneinfo -ln -sf $PTEST_DIR/src $GOROOT/src -mkdir -p $GOROOT/pkg/include -cp $PTEST_DIR/pkg/include/* $GOROOT/pkg/include/ -cp $PTEST_DIR/VERSION $GOROOT/VERSION +# Link ptest source tree into GOROOT for testing. +# Save and restore any existing src directory. +if [ -d "$GOROOT/src" ] && [ ! -L "$GOROOT/src" ]; then + mv "$GOROOT/src" "$GOROOT/src.orig" +fi +ln -sf "$PTEST_DIR/src" "$GOROOT/src" -cd $GOROOT +if [ -f "$PTEST_DIR/VERSION" ]; then + cp "$PTEST_DIR/VERSION" "$GOROOT/VERSION" +fi +if ls "$PTEST_DIR/pkg/include/"* >/dev/null 2>&1; then + mkdir -p "$GOROOT/pkg/include" + cp "$PTEST_DIR/pkg/include/"* "$GOROOT/pkg/include/" +fi +cd "$GOROOT" || exit 1 + +# Packages skipped due to known issues in the ptest environment: +# debug/dwarf, debug/elf, debug/pe, debug/plan9obj, internal/xcoff: +# require binary testdata files excluded to avoid QA errors +# go/types: extremely slow, exceeds ptest timeout +# net/http: requires network access unavailable in qemu +# runtime: requires cgo rebuild and race detector setup +# testing: circular dependency when testing the test framework +# time: requires writable GOROOT for timezone data SKIP_PKGS="debug/dwarf debug/elf debug/pe debug/plan9obj go/types internal/xcoff net/http runtime testing time" SKIP_REGEX=$(echo "$SKIP_PKGS" | sed 's/ /|/g') for pkg in $(go list std); do - if echo "$pkg" | grep -qE "^($SKIP_REGEX)$"; then + # Skip package and all its subpackages + if echo "$pkg" | grep -qE "^($SKIP_REGEX)(/|$)"; then echo "SKIP: $pkg" continue fi - if go test -short "$pkg" >/dev/null 2>&1; then + output=$(go test -short "$pkg" 2>&1) + ret=$? + if [ $ret -eq 0 ]; then echo "PASS: $pkg" else echo "FAIL: $pkg" + echo "$output" fi done + +# Cleanup: restore original src directory +rm -f "$GOROOT/src" +if [ -d "$GOROOT/src.orig" ]; then + mv "$GOROOT/src.orig" "$GOROOT/src" +fi +rm -rf "$GOCACHE" diff --git a/recipes-devtools/go/go_1.26.2.bb b/recipes-devtools/go/go_1.26.2.bb index 35a14b8..2e18ce0 100644 --- a/recipes-devtools/go/go_1.26.2.bb +++ b/recipes-devtools/go/go_1.26.2.bb @@ -3,6 +3,8 @@ require go-target.inc inherit linuxloader ptest +SRC_URI += "file://run-ptest" + CGO_LDFLAGS:append = " -no-pie" export GO_LDSO = "${@get_linuxloader(d)}" @@ -20,7 +22,9 @@ do_install_ptest() { install -d ${D}${PTEST_PATH}/src install -d ${D}${PTEST_PATH}/pkg/include - cp ${S}/pkg/include/* ${D}${PTEST_PATH}/pkg/include/ + if ls ${S}/pkg/include/* >/dev/null 2>&1; then + cp ${S}/pkg/include/* ${D}${PTEST_PATH}/pkg/include/ + fi echo "go${PV}" > ${D}${PTEST_PATH}/VERSION cd ${S}/src @@ -40,4 +44,4 @@ do_install_ptest() { -exec install -m 0644 {} ${D}${PTEST_PATH}/src/{} \; } -RDEPENDS:${PN}-ptest += "bash tzdata git packagegroup-core-buildessential" +RDEPENDS:${PN}-ptest += "go tzdata git packagegroup-core-buildessential" From patchwork Wed May 13 17:08:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 88065 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AC96CD4F3E for ; Wed, 13 May 2026 17:10:56 +0000 (UTC) Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2447.1778692248772860109 for ; Wed, 13 May 2026 10:10:49 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=kXaUsovo; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.225, mailfrom: fm-256628-2026051317104646def2c74800020747-_xvo6_@rts-flowmailer.siemens.com) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 2026051317104646def2c74800020747 for ; Wed, 13 May 2026 19:10:47 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=0fbKSvMNHTyC6kzTJ9xbbZbrX3EsXBEf9Eq0W3XrgqQ=; b=kXaUsovoRe6SLY8UGtSSi9S3va7YsEAqEBYNR5/3kYfi0agTOC61Z21jkD5qlFx7mI1RON jBUX/NvX/X7HG7iKrqVPenAxoRbIisOt93kpAwBNb3vVETQB5L7rUGP5pcaopWvRnQmSU+q6 IPSY2ddtcvX0E/F5WyaxrEJglban92TP3UIB5q6i3BWG/dEgBDda6mWUNtcee4RMpwIOcM+C f7VpohlEx5VmsVNoT6jb24R9GX8LNIu29qDF/fY6QKal0giJ7tTMcL4hEOqnksC4QsnwWrbo 04PS/BY7uhyob29bZNR/7B/+guQz6h0o++gkpFXXZAqq8M38YpHIJRtg==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][PATCH 5/7] go: ptest: fix GOROOT detection and improve cleanup/exit handling Date: Wed, 13 May 2026 19:08:59 +0200 Message-ID: <20260513170902.2468061-5-peter.marko@siemens.com> In-Reply-To: <20260513170902.2468061-1-peter.marko@siemens.com> References: <20260513170902.2468061-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 17:10:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3987 From: Pratik Farkase Changes: - Derive GOROOT dynamically from PTEST_DIR instead of hardcoding /usr/lib/go, which breaks on distros using lib64. - Track and clean up VERSION and pkg/include files that were copied into GOROOT, preventing stale artifacts after ptest runs. - Track failures with RC variable and exit non-zero when tests fail, consistent with other ptest scripts. Signed-off-by: Pratik Farkase Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (From OE-Core rev: a912153baed08d8d1d563341e29a2d596546bdb4) Signed-off-by: Peter Marko --- recipes-devtools/go/go/run-ptest | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/recipes-devtools/go/go/run-ptest b/recipes-devtools/go/go/run-ptest index b8a0805..5fc9367 100755 --- a/recipes-devtools/go/go/run-ptest +++ b/recipes-devtools/go/go/run-ptest @@ -2,7 +2,7 @@ # SPDX-License-Identifier: MIT PTEST_DIR=$(cd "$(dirname "$0")" && pwd) -GOROOT=/usr/lib/go +GOROOT=$(dirname "$PTEST_DIR") export GOROOT export PATH=$GOROOT/bin:$PATH @@ -16,11 +16,18 @@ if [ -d "$GOROOT/src" ] && [ ! -L "$GOROOT/src" ]; then fi ln -sf "$PTEST_DIR/src" "$GOROOT/src" -if [ -f "$PTEST_DIR/VERSION" ]; then +CLEANUP_VERSION=0 +if [ -f "$PTEST_DIR/VERSION" ] && [ ! -f "$GOROOT/VERSION" ]; then cp "$PTEST_DIR/VERSION" "$GOROOT/VERSION" + CLEANUP_VERSION=1 fi + +CLEANUP_INCLUDE=0 if ls "$PTEST_DIR/pkg/include/"* >/dev/null 2>&1; then - mkdir -p "$GOROOT/pkg/include" + if [ ! -d "$GOROOT/pkg/include" ]; then + mkdir -p "$GOROOT/pkg/include" + CLEANUP_INCLUDE=1 + fi cp "$PTEST_DIR/pkg/include/"* "$GOROOT/pkg/include/" fi @@ -38,6 +45,7 @@ SKIP_PKGS="debug/dwarf debug/elf debug/pe debug/plan9obj go/types internal/xcoff SKIP_REGEX=$(echo "$SKIP_PKGS" | sed 's/ /|/g') +RC=0 for pkg in $(go list std); do # Skip package and all its subpackages if echo "$pkg" | grep -qE "^($SKIP_REGEX)(/|$)"; then @@ -52,6 +60,7 @@ for pkg in $(go list std); do else echo "FAIL: $pkg" echo "$output" + RC=1 fi done @@ -60,4 +69,12 @@ rm -f "$GOROOT/src" if [ -d "$GOROOT/src.orig" ]; then mv "$GOROOT/src.orig" "$GOROOT/src" fi +if [ $CLEANUP_VERSION -eq 1 ]; then + rm -f "$GOROOT/VERSION" +fi +if [ $CLEANUP_INCLUDE -eq 1 ]; then + rm -rf "$GOROOT/pkg/include" +fi rm -rf "$GOCACHE" + +exit $RC From patchwork Wed May 13 17:09:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 88064 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37B8FCD4F3D for ; Wed, 13 May 2026 17:10:56 +0000 (UTC) Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net [185.136.64.226]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2460.1778692254955543783 for ; Wed, 13 May 2026 10:10:55 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=h0ZD2b2E; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.226, mailfrom: fm-256628-202605131710536bc91fc57d00020784-gspajj@rts-flowmailer.siemens.com) Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 202605131710536bc91fc57d00020784 for ; Wed, 13 May 2026 19:10:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=bmGzDhTkTnbxDCPR7k7k5AE0nPlxA4KlZ10+SvwP44s=; b=h0ZD2b2E3i8n/et1kpGKvkRKz44iWf0jwjjJGvxZBMV0n03p5L+7myPFDxF7ABRxMXw0eO EQoRgS0na+zNGC/eDicFYwOSTScR0evBaNYvDv+AQptVWerpGQDutpZraWf+HwnJF7AmgJJX mvaglehZuPVtMKE3UBQh5TEyr8Vds2dYrvxaDuCIR4IInxQxJ3Fs0DrBkDFPcY8D/w26KolQ 3Oti5xHlemiix34y5qmw32NS93ERM6LbQ1bIBwEYlvOs2PiYq3QIPI6j+7NxBZewPu37u2Fb GFSRz0z518XoCumXJFQvkwlem9iggA7fpi165bhoY4M8eHNvDHlmow7g==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][PATCH 6/7] readme: add go-ptest to testing Date: Wed, 13 May 2026 19:09:00 +0200 Message-ID: <20260513170902.2468061-6-peter.marko@siemens.com> In-Reply-To: <20260513170902.2468061-1-peter.marko@siemens.com> References: <20260513170902.2468061-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 17:10:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3988 From: Peter Marko Ptest support was added for go recipe, so add it to acceptance tests. Switch to core-image-ptest-go, which automatically installs go-ptest. It installs openssh, so dropbear would conflict with it. TEST_SUITES are alreary se there, so just append go, not overwrite. QB_MEM is set there already to 4096, so drop our setting which would cause a decrease and thus break it. Signed-off-by: Peter Marko --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 080cbfe..28d43f0 100644 --- a/README.md +++ b/README.md @@ -54,14 +54,13 @@ Automated tests to verify go toolchain functionality are being executed with fol * OEQA runtime ``` - IMAGE_INSTALL:append = " packagegroup-core-ssh-dropbear go-helloworld packagegroup-go-sdk-target" + IMAGE_INSTALL:append = " go-helloworld packagegroup-go-sdk-target" IMAGE_CLASSES += "testimage" - TEST_SUITES = "ping ssh go" - QB_MEM = "-m 2048" + TEST_SUITES:append = " go" ``` ``` - bitbake core-image-minimal && bitbake core-image-minimal:do_testimage + bitbake core-image-ptest-go && bitbake core-image-ptest-go:do_testimage ``` * OEQA SDK From patchwork Wed May 13 17:09:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Marko X-Patchwork-Id: 88066 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36663CD4F21 for ; Wed, 13 May 2026 17:11:06 +0000 (UTC) Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net [185.136.65.225]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2453.1778692263913429678 for ; Wed, 13 May 2026 10:11:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.marko@siemens.com header.s=fm1 header.b=NBB3J5hL; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.225, mailfrom: fm-256628-20260513171102c94fee912f00020761-_r2gci@rts-flowmailer.siemens.com) Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20260513171102c94fee912f00020761 for ; Wed, 13 May 2026 19:11:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.marko@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=2xyEPSRvpbkQtTRNbn65NwFLKRZ4mCUYClmlgYgBwMY=; b=NBB3J5hLlTUnDMs+37/VuZpvgfUk2iEwAC0YRwBS0c8c4sLXE9CRLHiumh6R8AkOrGLqIC G+jZhnsTMLqdOSx6wmuLOsBO2wmV5tS5syAhmRUEV6MZe8ocQhHOKprWC6wu602pgK0Xhw7P 6/fyg/AexXyRH4A1MYDY6RvjZpGOEzl8Fq5gE7GHFMDh++tLMNsa8yd++qoyNz8FiEuWm3+J EghkwwRRUx5z4asdha6YOXeS2iDxSViy0irsNVk6fv2GkqutP7vTNZ2fTPzWB8ZXtiDJL0+g ujQaSKuoZgtiMtSgQbcgi8PK/OhQJ2H69ULbaC2pi/ycy30VDKyoW3gg==; From: Peter Marko To: yocto-patches@lists.yoctoproject.org Cc: peter.marko@siemens.com, jose.quaresma@foundries.io Subject: [meta-lts-mixins][scarthgap/go][PATCH 7/7] go: upgrade 1.26.2 -> 1.26.3 Date: Wed, 13 May 2026 19:09:01 +0200 Message-ID: <20260513170902.2468061-7-peter.marko@siemens.com> In-Reply-To: <20260513170902.2468061-1-peter.marko@siemens.com> References: <20260513170902.2468061-1-peter.marko@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-256628:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 13 May 2026 17:11:06 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/3989 From: Peter Marko Upgrade to latest 1.26.x release [1]: $ git --no-pager log --oneline go1.26.2..go1.26.3 2dc996f71b (tag: go1.26.3) [release-branch.go1.26] go1.26.3 8282c628a0 [release-branch.go1.26] cmd/go: reject sumdb response lacking module hash 3baf3eec3b [release-branch.go1.26] all: avoid unsafe StringToUTF16Ptr on Windows 0bec63330d [release-branch.go1.26] net/mail: fix quadratic consumePhrase behavior 7136366ebf [release-branch.go1.26] cmd/go: invalidate test cache when -coverpkg dependencies change 722b68ceca [release-branch.go1.26] cmd/compile: keep blank nodes alive in b.loop 3ae315a8cd [release-branch.go1.26] os: avoid panic when RemoveAll fails to remove a symlink c9f97f50c4 [release-branch.go1.26] html/template: fix escaping of URLs in meta content attributes 40fa774fff [release-branch.go1.26] cmd/pack: refuse to extract files with directory components d9389d318b [release-branch.go1.26] net/mail: fix quadratic complexity in consumeComment dd29b59a2b [release-branch.go1.26] cmd/compile: fix loopvar version detection with line directives 18fa391f45 [release-branch.go1.26] crypto/fips140: add package docs e0f5c054cb [release-branch.go1.26] net: avoid double-free of cgo pointer when handling large DNS response 2992086cf8 [release-branch.go1.26] lib/fips140: add certified pointing to v1.0.0-c2097c7c f43caf8712 [release-branch.go1.26] lib/fips140: update inprocess to v1.26.0 19d2ce3401 [release-branch.go1.26] runtime: fix timespec definition on 32bits systems e9df527f06 [release-branch.go1.26] crypto/tls: wrap ML-KEM hybrids in fips140.WithoutEnforcement 73f417a37c [release-branch.go1.26] go/types, types2: handle unconstrained type parameters correctly in a few places 50856a181c [release-branch.go1.26] cmd/go: use MkdirTemp to create temp directory for "go bug" e137885d68 [release-branch.go1.26] cmd/compile/internal/devirtualize: use pointer identity for type comparison c9712872cc [release-branch.go1.26] crypto/internal/fips140/drbg: build tag out entropy generation on Wasm cb994d85ff [release-branch.go1.26] cmd/fix: change -diff to exit 1 if diffs exist 95470667eb [release-branch.go1.26] net/http/httputil: reencode queries with many parameters in proxy 9b01c04815 [release-branch.go1.26] html/template: fix escaper bypass by treating empty script type as JavaScript be12fe151c [release-branch.go1.26] runtime: use uname version check for 64-bit time on 32-bit arch codepaths ec5ebece41 [release-branch.go1.26] all: update x/net to 705de46f 710f29a758 [release-branch.go1.26] runtime: add sysUnreserve to undo sysReserve efdc0fb354 [release-branch.go1.26] cmd/compile: handle min integer step in loop ba4554f03b [release-branch.go1.26] cmd/go: specify full path to go command when running go tool covdata f4e425d342 [release-branch.go1.26] fix incorrect loop trip counts 0b4d5f85e6 [release-branch.go1.26] cmd/link: use bfd ld 2.36+ on linux/arm64 instead of gold Fixes CVE-2026-42501, CVE-2026-39825, CVE-2026-39836, CVE-2026-42499, CVE-2026-39820, CVE-2026-39819, CVE-2026-39817, CVE-2026-33814, CVE-2026-39826, CVE-2026-33811 and CVE-2026-39823. Drop patch handling gold linker as upstream implemented gold linker availability autodetection with [3]. Release information: [2] [1] https://github.com/golang/go/compare/go1.26.2...go1.26.3 [2] https://groups.google.com/g/golang-announce/c/qcCIEXso47M [3] https://github.com/golang/go/commit/0b4d5f85e68ea79b61de9989f9f37a984eb11289 Signed-off-by: Peter Marko Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie (From OE-Core rev: 3d8258a8d3d96dc1225172c2ff9e889fd12cf6bc) Signed-off-by: Peter Marko --- .../go/{go-1.26.2.inc => go-1.26.3.inc} | 3 +- ...e_1.26.2.bb => go-binary-native_1.26.3.bb} | 6 +- ..._1.26.2.bb => go-cross-canadian_1.26.3.bb} | 0 ...{go-cross_1.26.2.bb => go-cross_1.26.3.bb} | 0 ...osssdk_1.26.2.bb => go-crosssdk_1.26.3.bb} | 0 ...runtime_1.26.2.bb => go-runtime_1.26.3.bb} | 0 ...rcing-binutils-gold-dependency-on-aa.patch | 55 ------------------- .../go/{go_1.26.2.bb => go_1.26.3.bb} | 0 8 files changed, 4 insertions(+), 60 deletions(-) rename recipes-devtools/go/{go-1.26.2.inc => go-1.26.3.inc} (83%) rename recipes-devtools/go/{go-binary-native_1.26.2.bb => go-binary-native_1.26.3.bb} (80%) rename recipes-devtools/go/{go-cross-canadian_1.26.2.bb => go-cross-canadian_1.26.3.bb} (100%) rename recipes-devtools/go/{go-cross_1.26.2.bb => go-cross_1.26.3.bb} (100%) rename recipes-devtools/go/{go-crosssdk_1.26.2.bb => go-crosssdk_1.26.3.bb} (100%) rename recipes-devtools/go/{go-runtime_1.26.2.bb => go-runtime_1.26.3.bb} (100%) delete mode 100644 recipes-devtools/go/go/0011-cmd-link-stop-forcing-binutils-gold-dependency-on-aa.patch rename recipes-devtools/go/{go_1.26.2.bb => go_1.26.3.bb} (100%) diff --git a/recipes-devtools/go/go-1.26.2.inc b/recipes-devtools/go/go-1.26.3.inc similarity index 83% rename from recipes-devtools/go/go-1.26.2.inc rename to recipes-devtools/go/go-1.26.3.inc index 8bb10bc..db7b18e 100644 --- a/recipes-devtools/go/go-1.26.2.inc +++ b/recipes-devtools/go/go-1.26.3.inc @@ -15,6 +15,5 @@ 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 \ file://0010-cmd-go-clear-GOROOT-for-func-ldShared-when-trimpath-.patch \ - file://0011-cmd-link-stop-forcing-binutils-gold-dependency-on-aa.patch \ " -SRC_URI[main.sha256sum] = "2e91ebb6947a96e9436fb2b3926a8802efe63a6d375dffec4f82aa9dbd6fd43b" +SRC_URI[main.sha256sum] = "1c646875d0aa8799133184ed57cf79ff24bdefe8c8820470602a9d3d6d9192b8" diff --git a/recipes-devtools/go/go-binary-native_1.26.2.bb b/recipes-devtools/go/go-binary-native_1.26.3.bb similarity index 80% rename from recipes-devtools/go/go-binary-native_1.26.2.bb rename to recipes-devtools/go/go-binary-native_1.26.3.bb index f36606b..8c51339 100644 --- a/recipes-devtools/go/go-binary-native_1.26.2.bb +++ b/recipes-devtools/go/go-binary-native_1.26.3.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] = "990e6b4bbba816dc3ee129eaeaf4b42f17c2800b88a2166c265ac1a200262282" -SRC_URI[go_linux_arm64.sha256sum] = "c958a1fe1b361391db163a485e21f5f228142d6f8b584f6bef89b26f66dc5b23" -SRC_URI[go_linux_ppc64le.sha256sum] = "62b7645dd2404052535617c59e91cf03c7aa28e332dbaddbe4c0d7de7bcc6736" +SRC_URI[go_linux_amd64.sha256sum] = "2b2cfc7148493da5e73981bffbf3353af381d5f93e789c82c79aff64962eb556" +SRC_URI[go_linux_arm64.sha256sum] = "9d89a3ea57d141c2b22d70083f2c8459ba3890f2d9e818e7e933b75614936565" +SRC_URI[go_linux_ppc64le.sha256sum] = "dbd82b50530ead2beb1fd72215117380df3cb16332b51467116dc35b3691dd75" UPSTREAM_CHECK_URI = "https://golang.org/dl/" UPSTREAM_CHECK_REGEX = "go(?P\d+(\.\d+)+)\.linux" diff --git a/recipes-devtools/go/go-cross-canadian_1.26.2.bb b/recipes-devtools/go/go-cross-canadian_1.26.3.bb similarity index 100% rename from recipes-devtools/go/go-cross-canadian_1.26.2.bb rename to recipes-devtools/go/go-cross-canadian_1.26.3.bb diff --git a/recipes-devtools/go/go-cross_1.26.2.bb b/recipes-devtools/go/go-cross_1.26.3.bb similarity index 100% rename from recipes-devtools/go/go-cross_1.26.2.bb rename to recipes-devtools/go/go-cross_1.26.3.bb diff --git a/recipes-devtools/go/go-crosssdk_1.26.2.bb b/recipes-devtools/go/go-crosssdk_1.26.3.bb similarity index 100% rename from recipes-devtools/go/go-crosssdk_1.26.2.bb rename to recipes-devtools/go/go-crosssdk_1.26.3.bb diff --git a/recipes-devtools/go/go-runtime_1.26.2.bb b/recipes-devtools/go/go-runtime_1.26.3.bb similarity index 100% rename from recipes-devtools/go/go-runtime_1.26.2.bb rename to recipes-devtools/go/go-runtime_1.26.3.bb diff --git a/recipes-devtools/go/go/0011-cmd-link-stop-forcing-binutils-gold-dependency-on-aa.patch b/recipes-devtools/go/go/0011-cmd-link-stop-forcing-binutils-gold-dependency-on-aa.patch deleted file mode 100644 index dda0f2b..0000000 --- a/recipes-devtools/go/go/0011-cmd-link-stop-forcing-binutils-gold-dependency-on-aa.patch +++ /dev/null @@ -1,55 +0,0 @@ -From 6d265b008e3d106b2706645e5a88cd8e2fb98953 Mon Sep 17 00:00:00 2001 -From: Dirk Müller -Date: Wed, 09 Mar 2022 17:47:23 +0100 -Subject: [PATCH 11/11] cmd/link: stop forcing binutils-gold dependency on - aarch64 - -The bfd linker appears to be working just fine at least in version -2.41 or above. Reject the known broken one instead, which -avoids an architecture specific linker dependency that -is cumbersome for distributions. - -Fixes #22040. - -Change-Id: I9f377e47c22ef20497479c0978c053ed5de46a38 - -Upstream-Status: Submitted [https://go-review.googlesource.com/c/go/+/391115] ---- - src/cmd/link/internal/ld/lib.go | 21 --------------------- - 1 file changed, 21 deletions(-) - -diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go -index dfc72e02c0..2a2a304113 100644 ---- a/src/cmd/link/internal/ld/lib.go -+++ b/src/cmd/link/internal/ld/lib.go -@@ -1701,27 +1701,6 @@ func (ctxt *Link) hostlink() { - // Use lld to avoid errors from default linker (issue #38838) - altLinker = "lld" - } -- -- if ctxt.Arch.InFamily(sys.ARM64) && buildcfg.GOOS == "linux" { -- // On ARM64, the GNU linker will fail with -- // -znocopyreloc if it thinks a COPY relocation is -- // required. Switch to gold. -- // https://sourceware.org/bugzilla/show_bug.cgi?id=19962 -- // https://go.dev/issue/22040 -- altLinker = "gold" -- -- // If gold is not installed, gcc will silently switch -- // back to ld.bfd. So we parse the version information -- // and provide a useful error if gold is missing. -- name, args := flagExtld[0], flagExtld[1:] -- args = append(args, "-fuse-ld=gold", "-Wl,--version") -- cmd := exec.Command(name, args...) -- if out, err := cmd.CombinedOutput(); err == nil { -- if !bytes.Contains(out, []byte("GNU gold")) { -- log.Fatalf("ARM64 external linker must be gold (issue #15696, 22040), but is not: %s", out) -- } -- } -- } - } - if ctxt.Arch.Family == sys.ARM64 && buildcfg.GOOS == "freebsd" { - // Switch to ld.bfd on freebsd/arm64. --- -2.25.1 - diff --git a/recipes-devtools/go/go_1.26.2.bb b/recipes-devtools/go/go_1.26.3.bb similarity index 100% rename from recipes-devtools/go/go_1.26.2.bb rename to recipes-devtools/go/go_1.26.3.bb