From patchwork Wed Jun 19 10:34:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 45354 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 27B5CC41513 for ; Wed, 19 Jun 2024 10:34:23 +0000 (UTC) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mx.groups.io with SMTP id smtpd.web11.17521.1718793257970891307 for ; Wed, 19 Jun 2024 03:34:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Yh4IUNFU; spf=pass (domain: gmail.com, ip: 209.85.221.46, mailfrom: quaresma.jose@gmail.com) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3639e27a43dso237173f8f.2 for ; Wed, 19 Jun 2024 03:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718793256; x=1719398056; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gDMz2XG3Mof9O6OvO/3R83lZBEcboyLgqdTx2qDGuaI=; b=Yh4IUNFUtf+HmdxLgBiBIsmaMJRknOLybkClgr/YUcXNfokZddACvy5tI4vVPrySUH G4eS8MjbtgEv9u+dG9Iy2jwrRQUy0qC7gmIBOIZzZALVsmLt45liIYwkRV7cXdfsM0nO R2NcTpkc+yUVdB47iF9QqeO0QdE5O+ku5I8i6KaSEnJMrpRhY9Pjgu3wScqufFSl7zD0 5WQhmEN2MJ6y7TpZCBMtdSI4CbAT/hzvjcGEKnwudxwl9F4/oMsPeemjO18j6pj28brT i032GU4YoE4iBWc8T0DnHA0GL+L/J7Ip2ycvMB/mEiZlwPr6uLT+iQpis71VMXuV0YSU 1oPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718793256; x=1719398056; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gDMz2XG3Mof9O6OvO/3R83lZBEcboyLgqdTx2qDGuaI=; b=YsHyudAmqM0RlQesDYxCPLmPNv/x/lP2PqKpMYrWQzMP5IRTPJkP5qYME4GtDLrEp0 7RTYDTuvvXeaT6dkgE9xkdf7DMZ4Kh/ED5BnD1c/N7Uqmw7cTCqrG3Y1bt9yJS722DFO hU8ywKN3e7kmaWt+2xl9k5eQjI0J6oYRquubK/u/axJpuOHJCpdOMJRqOqtWrYEziQK5 tVsemdeisfHtB2oN/cBiBH+08tO3YRy7DZFmWqITW+Wv80IzhTuSbJzI8gWSKVxWomXh yRRk3zou2Nt1R73ZUqGDkQMWYU2nIkzPvd++24rKlugSeMpIoKbnMRqPIzEhlagNMhCL LE+A== X-Gm-Message-State: AOJu0YyR6kV5UfHjKaKHnQm8Fgmm2ZD7QDFDFk8B8GvQ2KElrjAIp7Ix I9oKhySyQyVVL8ss1HuOdLiWh6e0yX7FcB+0A9jYWitxV5NgzEyDaLsD8YMs X-Google-Smtp-Source: AGHT+IFsZ5zB0aIoTFrx3nkT0XGPT4IHMp4Re8JfDBJPMShpdzyreCVCNNZJTXspUdhFRowpIk1nKg== X-Received: by 2002:a5d:58e6:0:b0:362:6908:e2dc with SMTP id ffacd0b85a97d-36317c7a095mr1573756f8f.33.1718793255722; Wed, 19 Jun 2024 03:34:15 -0700 (PDT) Received: from toster.lan (bl15-243-112.dsl.telepac.pt. [188.80.243.112]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-362f03ac73dsm2697837f8f.55.2024.06.19.03.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 03:34:15 -0700 (PDT) From: Jose Quaresma X-Google-Original-From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Jose Quaresma Subject: [OE-core][PATCH 1/3] go: upgrade 1.22.3 -> 1.22.4 Date: Wed, 19 Jun 2024 11:34:04 +0100 Message-ID: <20240619103406.276716-1-jose.quaresma@foundries.io> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 19 Jun 2024 10:34:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200905 Include fixes for CVE-2024-24790 Upgrade to latest 1.22.x release [1]: $ git --no-pager log --oneline go1.22.3..go1.22.4 ace5bb40d0 (tag: go1.22.4) [release-branch.go1.22] go1.22.4 12d5810cdb [release-branch.go1.22] net/netip: check if address is v6 mapped in Is methods 745657509e [release-branch.go1.22] os: RemoveAll: fix symlink race for unix 95389d3d9d [release-branch.go1.22] runtime: x_cgo_getstackbound: initialize pthread attr cf501ac0c5 [release-branch.go1.22] archive/zip: treat truncated EOCDR comment as an error cb55d1a0c8 [release-branch.go1.22] cmd/link: add runtime.text.N symbols to macho symbol table in dynlink mode 3c96ae0870 [release-branch.go1.22] runtime: update large object stats before freeSpan in sweep 6b89e7dc5a [release-branch.go1.22] cmd/compile: initialize posBaseMap correctly 185457da9b [release-branch.go1.22] crypto/x509: remove TestPlatformVerifierLegacy tests 3a84293118 [release-branch.go1.22] cmd/compile: avoid past-the-end pointer when zeroing 362dcedfdb [release-branch.go1.22] cmd/go/testdata/script: add darwin skips for selected buildrepro tests d4a81ec7ee [release-branch.go1.22] cmd/go/testdata/script: clear path in gotoolchain_issue66175 dc8976dd0b [release-branch.go1.22] cmd/compile: don't combine loads in generated equality functions 00e6815208 [release-branch.go1.22] cmd/go: download 1.X.0 instead of 1.X during toolchain upgrade. [1] https://github.com/golang/go/compare/go1.22.3...go1.22.4 Signed-off-by: Jose Quaresma --- meta/recipes-devtools/go/{go-1.22.3.inc => go-1.22.4.inc} | 2 +- ...o-binary-native_1.22.3.bb => go-binary-native_1.22.4.bb} | 6 +++--- ...cross-canadian_1.22.3.bb => go-cross-canadian_1.22.4.bb} | 0 .../go/{go-cross_1.22.3.bb => go-cross_1.22.4.bb} | 0 .../go/{go-crosssdk_1.22.3.bb => go-crosssdk_1.22.4.bb} | 0 .../go/{go-native_1.22.3.bb => go-native_1.22.4.bb} | 0 .../go/{go-runtime_1.22.3.bb => go-runtime_1.22.4.bb} | 0 meta/recipes-devtools/go/{go_1.22.3.bb => go_1.22.4.bb} | 0 8 files changed, 4 insertions(+), 4 deletions(-) rename meta/recipes-devtools/go/{go-1.22.3.inc => go-1.22.4.inc} (89%) rename meta/recipes-devtools/go/{go-binary-native_1.22.3.bb => go-binary-native_1.22.4.bb} (78%) rename meta/recipes-devtools/go/{go-cross-canadian_1.22.3.bb => go-cross-canadian_1.22.4.bb} (100%) rename meta/recipes-devtools/go/{go-cross_1.22.3.bb => go-cross_1.22.4.bb} (100%) rename meta/recipes-devtools/go/{go-crosssdk_1.22.3.bb => go-crosssdk_1.22.4.bb} (100%) rename meta/recipes-devtools/go/{go-native_1.22.3.bb => go-native_1.22.4.bb} (100%) rename meta/recipes-devtools/go/{go-runtime_1.22.3.bb => go-runtime_1.22.4.bb} (100%) rename meta/recipes-devtools/go/{go_1.22.3.bb => go_1.22.4.bb} (100%) diff --git a/meta/recipes-devtools/go/go-1.22.3.inc b/meta/recipes-devtools/go/go-1.22.4.inc similarity index 89% rename from meta/recipes-devtools/go/go-1.22.3.inc rename to meta/recipes-devtools/go/go-1.22.4.inc index 34703bc1fa..44897daba4 100644 --- a/meta/recipes-devtools/go/go-1.22.3.inc +++ b/meta/recipes-devtools/go/go-1.22.4.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] = "80648ef34f903193d72a59c0dff019f5f98ae0c9aa13ade0b0ecbff991a76f68" +SRC_URI[main.sha256sum] = "fed720678e728a7ca30ba8d1ded1caafe27d16028fab0232b8ba8e22008fb784" diff --git a/meta/recipes-devtools/go/go-binary-native_1.22.3.bb b/meta/recipes-devtools/go/go-binary-native_1.22.4.bb similarity index 78% rename from meta/recipes-devtools/go/go-binary-native_1.22.3.bb rename to meta/recipes-devtools/go/go-binary-native_1.22.4.bb index b67d97608d..61da51be3a 100644 --- a/meta/recipes-devtools/go/go-binary-native_1.22.3.bb +++ b/meta/recipes-devtools/go/go-binary-native_1.22.4.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] = "8920ea521bad8f6b7bc377b4824982e011c19af27df88a815e3586ea895f1b36" -SRC_URI[go_linux_arm64.sha256sum] = "6c33e52a5b26e7aa021b94475587fce80043a727a54ceb0eee2f9fc160646434" -SRC_URI[go_linux_ppc64le.sha256sum] = "04b7b05283de30dd2da20bf3114b2e22cc727938aed3148babaf35cc951051ac" +SRC_URI[go_linux_amd64.sha256sum] = "ba79d4526102575196273416239cca418a651e049c2b099f3159db85e7bade7d" +SRC_URI[go_linux_arm64.sha256sum] = "a8e177c354d2e4a1b61020aca3562e27ea3e8f8247eca3170e3fa1e0c2f9e771" +SRC_URI[go_linux_ppc64le.sha256sum] = "a3e5834657ef92523f570f798fed42f1f87bc18222a16815ec76b84169649ec4" UPSTREAM_CHECK_URI = "https://golang.org/dl/" UPSTREAM_CHECK_REGEX = "go(?P\d+(\.\d+)+)\.linux" diff --git a/meta/recipes-devtools/go/go-cross-canadian_1.22.3.bb b/meta/recipes-devtools/go/go-cross-canadian_1.22.4.bb similarity index 100% rename from meta/recipes-devtools/go/go-cross-canadian_1.22.3.bb rename to meta/recipes-devtools/go/go-cross-canadian_1.22.4.bb diff --git a/meta/recipes-devtools/go/go-cross_1.22.3.bb b/meta/recipes-devtools/go/go-cross_1.22.4.bb similarity index 100% rename from meta/recipes-devtools/go/go-cross_1.22.3.bb rename to meta/recipes-devtools/go/go-cross_1.22.4.bb diff --git a/meta/recipes-devtools/go/go-crosssdk_1.22.3.bb b/meta/recipes-devtools/go/go-crosssdk_1.22.4.bb similarity index 100% rename from meta/recipes-devtools/go/go-crosssdk_1.22.3.bb rename to meta/recipes-devtools/go/go-crosssdk_1.22.4.bb diff --git a/meta/recipes-devtools/go/go-native_1.22.3.bb b/meta/recipes-devtools/go/go-native_1.22.4.bb similarity index 100% rename from meta/recipes-devtools/go/go-native_1.22.3.bb rename to meta/recipes-devtools/go/go-native_1.22.4.bb diff --git a/meta/recipes-devtools/go/go-runtime_1.22.3.bb b/meta/recipes-devtools/go/go-runtime_1.22.4.bb similarity index 100% rename from meta/recipes-devtools/go/go-runtime_1.22.3.bb rename to meta/recipes-devtools/go/go-runtime_1.22.4.bb diff --git a/meta/recipes-devtools/go/go_1.22.3.bb b/meta/recipes-devtools/go/go_1.22.4.bb similarity index 100% rename from meta/recipes-devtools/go/go_1.22.3.bb rename to meta/recipes-devtools/go/go_1.22.4.bb From patchwork Wed Jun 19 10:34:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 45355 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 EC200C27C53 for ; Wed, 19 Jun 2024 10:34:23 +0000 (UTC) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mx.groups.io with SMTP id smtpd.web10.17769.1718793258433448256 for ; Wed, 19 Jun 2024 03:34:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VsL6xJ5h; spf=pass (domain: gmail.com, ip: 209.85.221.49, mailfrom: quaresma.jose@gmail.com) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3609565a1bdso2646461f8f.1 for ; Wed, 19 Jun 2024 03:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718793256; x=1719398056; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vGvawxPEb4Goykpdpw407GJC9ftpHMmSWJarFK1+Q9w=; b=VsL6xJ5hu3a3LQq5msII1yQVEzGJ07126FYYZMxEohbzH5TgDq5/ybiZ9EQvZ4j2MX qxQn0EssgNwIKmw7598ZI8sK4cZnFyvlbwD6f/gVJhmBob1mWUrh9M+QTy7zRPNRXHQd jDMhyvi/oNYH25JM3D0+xc5z6zH5AMjey6afsV1dtfeH5ZYHkUoXMvYYACG6pelZcakx Cub2nvqb0i6QKjE6gjRAct1E536jnshKlygAnns8pEn1heoIOYZak4hTyNoywW5KFtyg PvOacm5RE7+zyDvK5Bco0pQkC/qcNVLYndwItaNBuLIGaDsxI0aF8eRFCs9SfqVKh3Zi Ag8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718793256; x=1719398056; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vGvawxPEb4Goykpdpw407GJC9ftpHMmSWJarFK1+Q9w=; b=q20E3vrIYp8jiaAGIfFjS7QCce91kfV5TUQpYVq+6vKpR82CuXQ0DjsCexBvmk320u vqAbLsXmLqcuKV9CyKm5+Bbul0OOBMIAC2lYWkVF5tqem1YaTeAQNyihQkXb+rpEmWrC 0iDF3h4S3v2Z8EWUX0Zt7b9Smc9aD2oRyReX0mluX7+4JfLQ0HRNh4gBewm9VmBMKixG mq2sw7+0vKK+OdL4F9XK6BzDT4b2tU7necxpyr4nOc1FXwo4U+djj43RggSDuvDwkuRS QF0omF8FKuNsYhACTroizh9u3Dj9kIlxss9jAATw/XvntSXDa2bTA7HfJR/e0UbaXzWj JILA== X-Gm-Message-State: AOJu0YwfUfaUzRGsAZNGHxJN6Gz+eD5ZXcmOIZr1BbDe+fZc5EiVD9Jf sgzv2UgWxFGUWdyUDhxwuecbXalavv2k2ePg5I3CA4WGkd2u2GTfkKTR4Dko X-Google-Smtp-Source: AGHT+IGMpBMyPKrU6atBqIvcD9OJDSr+05lCJaBYt0gDDBVyv50UTa3axk/uz7SKjp3Xgo26Pwh8Qg== X-Received: by 2002:a05:6000:459e:b0:35f:f90:f383 with SMTP id ffacd0b85a97d-363195b1a17mr1487993f8f.56.1718793256375; Wed, 19 Jun 2024 03:34:16 -0700 (PDT) Received: from toster.lan (bl15-243-112.dsl.telepac.pt. [188.80.243.112]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-362f03ac73dsm2697837f8f.55.2024.06.19.03.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 03:34:16 -0700 (PDT) From: Jose Quaresma X-Google-Original-From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Jose Quaresma Subject: [OE-core][PATCH 2/3] go: drop the old 1.4 bootstrap C version Date: Wed, 19 Jun 2024 11:34:05 +0100 Message-ID: <20240619103406.276716-2-jose.quaresma@foundries.io> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240619103406.276716-1-jose.quaresma@foundries.io> References: <20240619103406.276716-1-jose.quaresma@foundries.io> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 19 Jun 2024 10:34:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200906 Bootstrap [1] As mentioned in the Go 1.20 release notes, Go 1.22 now requires the final point release of Go 1.20 or later for bootstrap. We expect that Go 1.24 will require the final point release of Go 1.22 or later for bootstrap. The default recipe for bootstrap is the go-binary-native as can be seen in: meta/conf/distro/include/tcmode-default.inc:68:PREFERRED_PROVIDER_go-native ?= "go-binary-native" Currently if we change it to use the old go-native and compile the go1.4-bootstrap-20170531 it fails: | Building Go cmd/dist using /build/workdir/tmp-glibc/work/x86_64-linux/go-native/1.22.3-r0/go1.4/go. (go1.4-bootstrap-20170531 linux/amd64) | can't load package: package ./cmd/dist: found packages build.go (main) and notgo120.go (building_Go_requires_Go_1_20_6_or_later) in /build/workdir/tmp-glibc/work/x86_64-linux/go-native/1.22.3-r0/go/src/cmd/dist This has been broken for some time but as we used go-binary-native by default it went unnoticed. [1] https://go.dev/doc/go1.22#bootstrap Signed-off-by: Jose Quaresma --- meta/recipes-devtools/go/go-native_1.22.4.bb | 58 -------------------- 1 file changed, 58 deletions(-) delete mode 100644 meta/recipes-devtools/go/go-native_1.22.4.bb diff --git a/meta/recipes-devtools/go/go-native_1.22.4.bb b/meta/recipes-devtools/go/go-native_1.22.4.bb deleted file mode 100644 index ddf25b2c9b..0000000000 --- a/meta/recipes-devtools/go/go-native_1.22.4.bb +++ /dev/null @@ -1,58 +0,0 @@ -# This recipe builds a native Go (written in Go) by first building an old Go 1.4 -# (written in C). However this old Go does not support all hosts platforms. - -require go-${PV}.inc - -inherit native - -SRC_URI += "https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz;name=bootstrap;subdir=go1.4" -SRC_URI[bootstrap.sha256sum] = "f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52" - -export GOOS = "${BUILD_GOOS}" -export GOARCH = "${BUILD_GOARCH}" -CC = "${@d.getVar('BUILD_CC').strip()}" - -GOMAKEARGS ?= "--no-banner" - -do_configure() { - cd ${WORKDIR}/go1.4/go/src - CGO_ENABLED=0 GOROOT=${WORKDIR}/go1.4/go ./make.bash -} - -do_compile() { - export GOROOT_FINAL="${libdir_native}/go" - export GOROOT_BOOTSTRAP="${WORKDIR}/go1.4/go" - - cd src - ./make.bash ${GOMAKEARGS} - cd ${B} -} -do_compile[cleandirs] += "${GOTMPDIR} ${B}/bin" - -make_wrapper() { - rm -f ${D}${bindir}/$2$3 - cat <${D}${bindir}/$2$3 -#!/bin/bash -here=\`dirname \$0\` -export GOROOT="${GOROOT:-\`readlink -f \$here/../lib/go\`}" -\$here/../lib/go/bin/$1 "\$@" -END - chmod +x ${D}${bindir}/$2 -} - -do_install() { - install -d ${D}${libdir}/go - cp --preserve=mode,timestamps -R ${B}/pkg ${D}${libdir}/go/ - install -d ${D}${libdir}/go/src - (cd ${S}/src; for d in *; do \ - [ -d $d ] && cp -a ${S}/src/$d ${D}${libdir}/go/src/; \ - done) - find ${D}${libdir}/go/src -depth -type d -name testdata -exec rm -rf {} \; - install -d ${D}${bindir} ${D}${libdir}/go/bin - for f in ${B}/bin/* - do - base=`basename $f` - install -m755 $f ${D}${libdir}/go/bin - make_wrapper $base $base - done -} From patchwork Wed Jun 19 10:34:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 45353 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 26C0BC2BA1A for ; Wed, 19 Jun 2024 10:34:23 +0000 (UTC) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web10.17770.1718793258870211497 for ; Wed, 19 Jun 2024 03:34:19 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UOprryNt; spf=pass (domain: gmail.com, ip: 209.85.221.54, mailfrom: quaresma.jose@gmail.com) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-362f62ae4c5so487652f8f.1 for ; Wed, 19 Jun 2024 03:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718793257; x=1719398057; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=jir1M83FSVBz14bs/J00deHQ6eAl6zVe6XjJlKds8FY=; b=UOprryNtzqxAP0knSlT5s2/rVCTP9Zp7joiYj3skLnvX21u9u/SPAGxU4SroeqE3qY vmxKjcMkQo55ByLAC52v7yYpoJcxmCINj00BsuWALSg1zFd+0t3AEPILHOVNnksOLrSc Pdd9GeYiXBrBpWU+N1sVmWx76JAxe679YT7OFD9uScndCMRl2yI1six1UNplyBMeqjtl vrPTvy4zcbRYD5seOoNIuOLQEXKQJYxVzX90nSnbhvBF/oRZGweDz8AEQxAlIZLItLAk Lt0JRoFyCBP4JjR4BJrpZbzWYTDrgWoOjCc+tizEV5r2lBx184WV6HiNTqf1FlzLZ++Q rXXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718793257; x=1719398057; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jir1M83FSVBz14bs/J00deHQ6eAl6zVe6XjJlKds8FY=; b=Fxt3hl6Y4Q21mt+9PLBFVSmSK9RlrpH30NdjOIudH3g8SdixHE5M3euFRQHG+5yFZ+ zlsYP9MTijNA2SILxSmFgohkzfoEC4QVgiNxUzwFIOmYo2w+jIv6fhSYZrPtLkTC0CpD j5N8AhfzfZM8gX3N0dYBD1wHIUMVpeddxHRCHOlWlJCd3kgLiTKopgpyJCvICVEzN52C zrALZHjxlt3Omxon6/2ilur6YAiaIw4Uwe3Kvm5opA++8vWiefvw1zLKjFul04PxL4lC PSRFq0bsT9ZFhNSBVYz4avtyAZne5XPf6JUTmZUNQu22dLbbQJj2fy6gXMagDF7RiKs3 ArqQ== X-Gm-Message-State: AOJu0Yz/iSZbhRluXnmh0hFBAezTudpfWdD/x127fARo+8wFUGRqLnfc cXNdP1lxL6UQKgD/C1BwYCYXyWa14bfcXvKvyKpMZd3Lp5xrjS0VzWNoDvf/ X-Google-Smtp-Source: AGHT+IECw4URTxxTYs5ZN3q/Xy4bUlufBF9NgKgxBHnKgxb68JLmpWyNlhQDr9wIrZ9vPmrpuGbAmQ== X-Received: by 2002:a5d:4dc2:0:b0:361:94d9:1e9f with SMTP id ffacd0b85a97d-36194d9203amr3714908f8f.7.1718793257031; Wed, 19 Jun 2024 03:34:17 -0700 (PDT) Received: from toster.lan (bl15-243-112.dsl.telepac.pt. [188.80.243.112]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-362f03ac73dsm2697837f8f.55.2024.06.19.03.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 03:34:16 -0700 (PDT) From: Jose Quaresma X-Google-Original-From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Jose Quaresma Subject: [OE-core][PATCH 3/3] go: move to a single binary bootstrap option Date: Wed, 19 Jun 2024 11:34:06 +0100 Message-ID: <20240619103406.276716-3-jose.quaresma@foundries.io> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240619103406.276716-1-jose.quaresma@foundries.io> References: <20240619103406.276716-1-jose.quaresma@foundries.io> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 19 Jun 2024 10:34:23 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200907 With the drop of the old 1.4 bootstrap C version we can move the go-binary-native to go-binary and drop the PREFERRED_PROVIDER Signed-off-by: Jose Quaresma --- meta/conf/distro/include/tcmode-default.inc | 4 ---- .../go/{go-binary-native_1.22.4.bb => go-native_1.22.4.bb} | 2 -- 2 files changed, 6 deletions(-) rename meta/recipes-devtools/go/{go-binary-native_1.22.4.bb => go-native_1.22.4.bb} (98%) diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc index 4fb6e47b7f..a9724d7621 100644 --- a/meta/conf/distro/include/tcmode-default.inc +++ b/meta/conf/distro/include/tcmode-default.inc @@ -62,10 +62,6 @@ PREFERRED_VERSION_qemu ?= "${QEMUVERSION}" PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}" PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}" -# Bootstrap Go using a binary release from golang.org. If you want to bootstrap -# from source using the C-implemented Go 1.4 (only supports x86-64 hosts) then use -# go-native. -PREFERRED_PROVIDER_go-native ?= "go-binary-native" PREFERRED_VERSION_virtual/${TARGET_PREFIX}go ?= "${GOVERSION}" PREFERRED_VERSION_go-cross-${TUNE_PKGARCH} ?= "${GOVERSION}" PREFERRED_VERSION_go-crosssdk-${SDK_ARCH} ?= "${GOVERSION}" diff --git a/meta/recipes-devtools/go/go-binary-native_1.22.4.bb b/meta/recipes-devtools/go/go-native_1.22.4.bb similarity index 98% rename from meta/recipes-devtools/go/go-binary-native_1.22.4.bb rename to meta/recipes-devtools/go/go-native_1.22.4.bb index 61da51be3a..ee094435a7 100644 --- a/meta/recipes-devtools/go/go-binary-native_1.22.4.bb +++ b/meta/recipes-devtools/go/go-native_1.22.4.bb @@ -5,8 +5,6 @@ HOMEPAGE = " http://golang.org/" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707" -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] = "ba79d4526102575196273416239cca418a651e049c2b099f3159db85e7bade7d"