From patchwork Wed Jun 19 15:47:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 45366 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 BCDE8C27C79 for ; Wed, 19 Jun 2024 15:48:14 +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.24615.1718812090587995538 for ; Wed, 19 Jun 2024 08:48:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TznF7tcV; 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-35f275c7286so6028807f8f.2 for ; Wed, 19 Jun 2024 08:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718812089; x=1719416889; 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=TznF7tcVcbvjB5E8dGBzXYKqlFGIkHCijQqDjXbm6yWkeNR1wDylitpy2KQQ+wkgmI HDfUH3BNt+Hbxb9QES5KhxWsbmSLIlUNtJ4uwjCdZUBZljMeSEvh0OORx3de/d7vJ+8v aJbD6FKfjASUNmsMrumNleLk3hyjMXe6ZJ0NttVIR8+81C5mi9p5ducXI/xVnCM5A8Hz oOpf20DHNXTM666jtFYvQoJnx4gY73PJX4WfWb6FbPBhF1KTYCW5lT6BL3DCFZlXTUlV TKyl8zw4YXy6yf6P/tGgQ8Os1QS45fl/mG0PagFv7NHoXwTsxv+o3VBpfMBAZf46Yz6t zMfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718812089; x=1719416889; 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=lw8lWukuTXUoosgMK5zzSWWIMoCBMfxxhNVrL4omA/okw1HDSGueNArQ0A9lbtEkhg iPsQTPhmxpujDgk0kjGZkgv1izixwSlwZionnkkjjeLxXrq/246z5xUBPzU5avgVnZaz VkrvewsOeQX2NAZsTRi3yRgS4A7mfCgTjNxmpVh4Tme8ArUU/RafXoKVQbRoIfbU2ibZ 3DU9f9C8YJQ4zahny2ikaBLmEkPVafu1DKKf3YkykcaZCxUddPqHO1BM5A9Jtq2qVbZQ wqQyQs+KZAAR4Cq0oRg+zIjSBLU/cJpo6esaN4LEHNt5XDLkZtJJNR23Bg17r4s7tK/f qa9w== X-Gm-Message-State: AOJu0Yz+tJVBUPZxEApUiLOP2uYsUxMiOa/KVt1Adubznx6n27G9PDja YNjgELb6rhYvOHG1Q9bSSWrpTzM6wBPyfVKJQnCl6YnMxKW+PkFHVH8nIz0W X-Google-Smtp-Source: AGHT+IFhS6EmeZGto15xgHlGKzSvuaeQNyQ+MvxarnMtRGeY+sUhgmnQZdxfwtveUwl9wKWZTWx5lA== X-Received: by 2002:a5d:5902:0:b0:362:f291:6f97 with SMTP id ffacd0b85a97d-363177a3a2amr2011158f8f.18.1718812088541; Wed, 19 Jun 2024 08:48:08 -0700 (PDT) Received: from toster.lan (bl15-243-112.dsl.telepac.pt. [188.80.243.112]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36077536f78sm17341798f8f.7.2024.06.19.08.48.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 08:48:08 -0700 (PDT) From: Jose Quaresma X-Google-Original-From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Jose Quaresma Subject: [OE-core][PATCH v2 1/3] go: upgrade 1.22.3 -> 1.22.4 Date: Wed, 19 Jun 2024 16:47:42 +0100 Message-ID: <20240619154744.381373-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 15:48:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200919 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 15:47:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 45365 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 BC7B9C27C53 for ; Wed, 19 Jun 2024 15:48:14 +0000 (UTC) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by mx.groups.io with SMTP id smtpd.web11.24446.1718812093821345933 for ; Wed, 19 Jun 2024 08:48:14 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bIV4ypay; spf=pass (domain: gmail.com, ip: 209.85.128.51, mailfrom: quaresma.jose@gmail.com) Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-42189d3c7efso69254385e9.2 for ; Wed, 19 Jun 2024 08:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718812092; x=1719416892; 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=bIV4ypay3AkTsihhKCE71FCG/e9SW6ElxlPGiELyAWJHH9vdDxcrOLFYyEUuHab1UG bJ1uQaoWoDfVPAcXtVpCaLkaKLokDdgceGej1q4vNLV/vaIePW2tLY1sfelUdu0cx+3h sqPiBXdTVSpw5K+vEa3WoPqPwrqphBD0U//A6xnw1vLKTYs6oY34iuyXT1tNa/ILkEVi cc1hkLbkrj8/trp+dA0cxejDj6cJp9lfjOhaJ2JFzZyyefh6xpeY0DQgml9ITK4smyK/ 4VS+B9R9nvK6kWuzzhtTMK3q7TmYoy4U7/gtvAXsQ87hZaWOuo1rInsW5HR5i8KN9ttP W7hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718812092; x=1719416892; 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=tM8AWcikUNIXaSK/oa6Zs424wDfbr3mY+3gwGir6HiLIbjkjQY8MJVlzCzHMDSoXuL Lf9JHD6QHPsXZzJsVGNJTPWXD81GxkgZ9rke9loB+nfv1N/0xk1gjz03W8NnoBPS4ZIy iOH4wPtz9U2EnaeJeW75RWhDZJg6np3bZ49CkWl5t4EayXydHQ+Lm01T59njSUIaEUGH GWNQCS49p7sfee7bt72Y8zpmP4yLjicw5qDpsyST0BbcZwXumA3F7aIJetdJ7JUpA2md HZjpauKl396GwRJNMPDvDfV5eKw4YEdUS1rqmy5vR8+ocZip6kQUrw104prTrUKDUNNK Ff6g== X-Gm-Message-State: AOJu0Yz5WpplSPUsyOIYcGmMgL6zCPP59WoRh05Ol/Z9ItCcdnIqtzIA BfoJ1ynKBeGpmd6jp+p5vI5RJ69t6APu7YzNkQjYt0d1cYk5S/G2Rc5W1CZW X-Google-Smtp-Source: AGHT+IFVHdvYTUajrmsh7znvfMS2DFOP3p/l5R7TMVziPUJBHg1xJvqKHRv5t/aFEBoKq//+iqphyw== X-Received: by 2002:a5d:5f8e:0:b0:364:29ce:b14e with SMTP id ffacd0b85a97d-36429ceb34dmr1089266f8f.69.1718812091814; Wed, 19 Jun 2024 08:48:11 -0700 (PDT) Received: from toster.lan (bl15-243-112.dsl.telepac.pt. [188.80.243.112]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36077536f78sm17341798f8f.7.2024.06.19.08.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 08:48:11 -0700 (PDT) From: Jose Quaresma X-Google-Original-From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Jose Quaresma Subject: [OE-core][PATCH v2 2/3] go: drop the old 1.4 bootstrap C version Date: Wed, 19 Jun 2024 16:47:43 +0100 Message-ID: <20240619154744.381373-2-jose.quaresma@foundries.io> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240619154744.381373-1-jose.quaresma@foundries.io> References: <20240619154744.381373-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 15:48:14 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200920 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 15:47:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Quaresma X-Patchwork-Id: 45367 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 A525BC27C53 for ; Wed, 19 Jun 2024 15:48:44 +0000 (UTC) Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) by mx.groups.io with SMTP id smtpd.web11.24460.1718812119278012767 for ; Wed, 19 Jun 2024 08:48:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Tn1pZI7R; spf=pass (domain: gmail.com, ip: 209.85.221.45, mailfrom: quaresma.jose@gmail.com) Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-35dc1d8867eso5336895f8f.0 for ; Wed, 19 Jun 2024 08:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718812117; x=1719416917; 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=jDUwl7TfiF393hyeUSpFXrewwdns9TqqTJT6Uq1DO54=; b=Tn1pZI7R/4stYU6ZER7tB7USnL9hxlDVVYvPxNCgz1uq1OV057drT9H5EUrQVwx3fK qim8M6RBZZi3Eo1n6rpXEv1DwUS9Z/WSgaHFhpcvjP4fNtm7q1rBotN+4b0EgJXt8eB8 YXDw1s8Q9x4YuqGzhDZ0SgKXa2EyFXqozxFcSJHknlGbTtL6uAeI1jzOzJr/UgbW1TvO GRL5xg+F4qwp/DVpRRC1vWx7LD6zPRbLP+AJ190wFB9pWyof5Z4D/sSyohOsMPL8j+1t yl6fZg1Jve2Wr+NaqWGHzXBSa3wHsiNjW7lllwlaQ7o8rN5RHJkwWAYuy8eXdZ3Gaydk lQyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718812117; x=1719416917; 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=jDUwl7TfiF393hyeUSpFXrewwdns9TqqTJT6Uq1DO54=; b=tRXqMeonCNzVgUL7XXS0wm+F0KeJvfRDl7cDRYbUatk8u71yQY4FwZzM8t+9KIFxdh yJFz38t+VOY5e9dDh7ht/P6aL9e4XZcE50VMAvCTECW1vDFmwOw64U4h6LCBkWhG16Ma VrML6OOyANXuxJ2WiI2n0oRcwKwkMZXyu3klU1Iqf4dFG0hWqWlU8yDeL8NxgpqKMoGS AC0x7KLRl6GkRl8YW7WotTAipViwMdupmrrfhAbvP3ElzLdyauAxfZFPH2D95nKHb21b R07bEk7yWAdpm6kh4eXqz0xc5S7XAWSwlp+m1KQjpB4143cJ6TY1107EgAgWey+VWDn5 4gpQ== X-Gm-Message-State: AOJu0YzNUNLdRA1RFWfC/zycdl6f3TShs79jGPSDnrp55b/N6xt4uIgp kMe9y3hvv9exKBMh706cECZOlGWvzVvxoUW6qWtWhWVUiC7WBqRG3eBbLX9G X-Google-Smtp-Source: AGHT+IHbFcAjWRBMgc85lgFPWWx+X8aTKDPaRGEUuuwMsrSyR2cxh5DoXwg6wPPSlY2HwWYmuRD8FA== X-Received: by 2002:a5d:53c3:0:b0:362:def2:3949 with SMTP id ffacd0b85a97d-363175b8d4emr2420034f8f.22.1718812117189; Wed, 19 Jun 2024 08:48:37 -0700 (PDT) Received: from toster.lan (bl15-243-112.dsl.telepac.pt. [188.80.243.112]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36077536f78sm17341798f8f.7.2024.06.19.08.48.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jun 2024 08:48:36 -0700 (PDT) From: Jose Quaresma X-Google-Original-From: Jose Quaresma To: openembedded-core@lists.openembedded.org Cc: Jose Quaresma Subject: [OE-core][PATCH v2 3/3] go: move to a single bootstrap option which is the binary Date: Wed, 19 Jun 2024 16:47:45 +0100 Message-ID: <20240619154744.381373-4-jose.quaresma@foundries.io> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240619154744.381373-1-jose.quaresma@foundries.io> References: <20240619154744.381373-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 15:48:44 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/200921 With the drop of the old 1.4 bootstrap C version we can move the go-binary-native to go-native and drop the PREFERRED_PROVIDER Signed-off-by: Jose Quaresma --- v2: rewrite the commit 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"