From patchwork Fri Dec 4 13:15:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107314 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7905.1796390123596176308 for ; Fri, 04 Dec 2026 05:15:23 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=lfm27AWL; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2DA6D14BF for ; Fri, 4 Dec 2026 05:15:20 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 997993F632 for ; Fri, 4 Dec 2026 05:15:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390122; bh=ehnzkhCDSjrMhgnKKllCjcB4aFO6PRSKbQfK2O/Lm30=; h=From:To:Subject:Date:From; b=lfm27AWLcA39I5u7+oBGWSQMwNFzHWfounj9FhO3Wkiwhzq10fKd7b8NorfRbKvr2 fGKccyoC1TP1200eFSbM/mubug2cjs0WFDhEqMFXB4GYU19g+JpR8IUwK7VjzB1rHl ruwlz3oRo+xHiLdam+mXWOoLmvXH3RZJ4AiFKVQI= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 1/8] classes/python_pep517: use Python's unzip module to manually install wheels Date: Fri, 4 Dec 2026 13:15:12 +0000 Message-ID: <20261204131519.3476966-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251969 Instead of using unzip, we can use the Python zipfile module to unpack the wheel. The non-bootstrap pypa/installer also uses this module, and this way we don't depend on unzip-native. Signed-off-by: Ross Burton --- meta/classes-recipe/python_pep517.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/python_pep517.bbclass b/meta/classes-recipe/python_pep517.bbclass index a3c7d704d67..32155c718da 100644 --- a/meta/classes-recipe/python_pep517.bbclass +++ b/meta/classes-recipe/python_pep517.bbclass @@ -60,10 +60,10 @@ python_pep517_do_install () { find ${D} -path *.dist-info/RECORD -delete } -# A manual do_install that just uses unzip for bootstrapping purposes. Callers should DEPEND on unzip-native. +# A manual do_install that simply unpacks the wheel python_pep517_do_bootstrap_install () { install -d ${D}${PYTHON_SITEPACKAGES_DIR} - unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PEP517_WHEEL_PATH}/*.whl + python3 -m zipfile --extract ${PEP517_WHEEL_PATH}/*.whl ${D}${PYTHON_SITEPACKAGES_DIR} } EXPORT_FUNCTIONS do_configure do_compile do_install From patchwork Fri Dec 4 13:15:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107315 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7906.1796390124034340319 for ; Fri, 04 Dec 2026 05:15:24 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=GiMm3pw2; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C61481655 for ; Fri, 4 Dec 2026 05:15:20 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 41F2E3F632 for ; Fri, 4 Dec 2026 05:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390123; bh=OxXTPLa1fx7pQc+HF/7Z44MGdfJZLYaOI2j/ai1927I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GiMm3pw2xQx95kimR59xN/mMG5TcMHB4fkyG2vAq1x1sl3rnAI9hYMDTK9D0TttH7 MuhJV2yKuvKq4iotFNroty78tVPwuV1RGJ/Bn0SR0veJDCYBajtbp8V0TW/XlQtKCS ZocwicmGhb8zRD98hE32DY0fHEk/xodCrTku2Q+Y= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 2/8] python3-flit-core: remove native dependency on unzip-native Date: Fri, 4 Dec 2026 13:15:13 +0000 Message-ID: <20261204131519.3476966-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251970 python_pep517_do_bootstrap_install doesn't use unzip anymore, so we can remove this dependency. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3-flit-core_4.2.0.bb | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/recipes-devtools/python/python3-flit-core_4.2.0.bb b/meta/recipes-devtools/python/python3-flit-core_4.2.0.bb index 5f490ca3032..a13147ba930 100644 --- a/meta/recipes-devtools/python/python3-flit-core_4.2.0.bb +++ b/meta/recipes-devtools/python/python3-flit-core_4.2.0.bb @@ -14,7 +14,6 @@ inherit pypi python_flit_core # Need to install by hand as there's a dependency loop DEPENDS:remove:class-native = " python3-build-native python3-installer-native" -DEPENDS:append:class-native = " unzip-native" do_compile:class-native () { python_flit_core_do_manual_build From patchwork Fri Dec 4 13:15:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107316 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7908.1796390124804153766 for ; Fri, 04 Dec 2026 05:15:24 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=pChNPASZ; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 70BE614BF for ; Fri, 4 Dec 2026 05:15:21 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DE1FA3F632 for ; Fri, 4 Dec 2026 05:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390124; bh=6RsCIRp4QIBaTLjBTts4+lUf4BZsAwGzH6OiFae6GYA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pChNPASZDdUEylUGCivyL0oV66v/LeH71avQhIy/526U4LXoCWAT2ES0vtDqoTGKB fl0dahXzUg9r+T+Z7T1gZPDRNkUqz24A2CLiM1tNvUs6/XgfmGY+zL1A9pUiGhMSFe igU06VqpOK0UkOGD1r82wHYY+j8VerIsjgOxZlfk= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 3/8] classes/base: depend on libarchive-native when unpacking zip files Date: Fri, 4 Dec 2026 13:15:14 +0000 Message-ID: <20261204131519.3476966-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251971 The zip unpack code in bitbake now prefers bsdunzip if available, so we can depend on libarchive-native instead of unzip-native. Signed-off-by: Ross Burton --- meta/classes-global/base.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass index 1c8b5102639..b9a3c9146f5 100644 --- a/meta/classes-global/base.bbclass +++ b/meta/classes-global/base.bbclass @@ -712,9 +712,9 @@ python () { elif path.endswith('.xz') or path.endswith('.txz'): d.appendVarFlag('do_unpack', 'depends', ' xz-decompress-native:do_populate_sysroot') - # .zip should DEPEND on unzip-native for unpacking + # .zip should DEPEND on libarchive-native (bsdunzip) for unpacking elif path.endswith('.zip') or path.endswith('.jar'): - d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot') + d.appendVarFlag('do_unpack', 'depends', ' libarchive-native:do_populate_sysroot') # Some rpm files may be compressed internally using xz (for example, rpms from Fedora) elif path.endswith('.rpm'): From patchwork Fri Dec 4 13:15:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107317 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7712.1796390125429149899 for ; Fri, 04 Dec 2026 05:15:25 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=bCfl7iDU; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 103D714BF for ; Fri, 4 Dec 2026 05:15:22 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 866C33F632 for ; Fri, 4 Dec 2026 05:15:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390124; bh=8RPRcY36+GtT3B48kyUW6ZtiH7FVXZPA4lmXwZ19Qqs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bCfl7iDU+YbzBbT3BHw5GMX8RVk2pgRFG8szfmFA5c2DUhHysc+cW6QeFTZT/MeGN NixGzc/nfvi8rq7ZR1so0W957KhUCWCIIY1/blsni0SXNlJxx8FJo8OfwqQuI5NNjK P1g+YGUBWC9h+3F43+JklY7NwSl+sioBopSjjnvc= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 4/8] oeqa/selftest: update for unzip-native changes Date: Fri, 4 Dec 2026 13:15:15 +0000 Message-ID: <20261204131519.3476966-4-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251972 The fetch dependencies test needs to reflect the user of libarchive-native over unzip-native. Remove unzip-native from the test_image_minimal_vs_base_do_configure test, as we just need a representative list of native recipes here. Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/cases/fetch.py | 4 ++-- meta/lib/oeqa/selftest/cases/sstatetests.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/fetch.py b/meta/lib/oeqa/selftest/cases/fetch.py index 1beef5cfedb..d6effb115f8 100644 --- a/meta/lib/oeqa/selftest/cases/fetch.py +++ b/meta/lib/oeqa/selftest/cases/fetch.py @@ -80,7 +80,7 @@ class Dependencies(OESelftestTestCase): f = self.write_recipe(textwrap.dedent(r), tempdir) d = tinfoil.parse_recipe_file(f) self.assertIn("wget-native", d.getVarFlag("do_fetch", "depends")) - self.assertIn("unzip-native", d.getVarFlag("do_unpack", "depends")) + self.assertIn("libarchive-native", d.getVarFlag("do_unpack", "depends")) # Verify that the downloadfilename overrides the URI r = """ @@ -90,7 +90,7 @@ class Dependencies(OESelftestTestCase): f = self.write_recipe(textwrap.dedent(r), tempdir) d = tinfoil.parse_recipe_file(f) self.assertIn("wget-native", d.getVarFlag("do_fetch", "depends")) - self.assertIn("unzip-native", d.getVarFlag("do_unpack", "depends") or "") + self.assertIn("libarchive-native", d.getVarFlag("do_unpack", "depends") or "") r = """ LICENSE = "CLOSED" diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index d33a696ba85..bb85d3818e3 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py @@ -886,7 +886,6 @@ expected_sametmp_output, expected_difftmp_output) 'makedevs-native:do_configure', 'pigz-native:do_configure', 'update-rc.d-native:do_configure', -'unzip-native:do_configure', 'gnu-config-native:do_configure') expected_output = ["Task {} couldn't be used from the cache because:".format(t) for t in change_bbtasks] + [ From patchwork Fri Dec 4 13:15:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107313 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7909.1796390125926477001 for ; Fri, 04 Dec 2026 05:15:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=UnHeM2/2; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD89614BF for ; Fri, 4 Dec 2026 05:15:22 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 261483F632 for ; Fri, 4 Dec 2026 05:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390125; bh=snnzcK93cIa+Mro+M3fBZhiPhrj0cvc/zDsvFg72EJw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UnHeM2/2Y9Ok6+onLQnydFMXpBkxu41tn1BgF71Zs5nAdX/zWCjjJev1TJ9h9jfGd MwoEDYc6/S6MwHBBTIOngyq6JNzwxSwpyr4Bs0w3q5Ly5MRal+3q+tX/HjObH4Z5ic FkFtzE4X+EigXoj55XiI+SXOslxoLVZXl8jIgqms= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 5/8] toolchain-shar-extract: remove redundant xz check Date: Fri, 4 Dec 2026 13:15:16 +0000 Message-ID: <20261204131519.3476966-5-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:31 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251973 xz might not even be the unpacker that is in use, and it is checked for again when unpacking the SDK. Signed-off-by: Ross Burton --- meta/files/toolchain-shar-extract.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index e2c617958a9..c701e188fb4 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh @@ -53,11 +53,6 @@ if [ "$INST_ARCH" != "$SDK_ARCH" ]; then fi fi -if ! xz -V > /dev/null 2>&1; then - echo "Error: xz is required for installation of this SDK, please install it first" - exit 1 -fi - SDK_BUILD_PATH="@SDKPATH@" DEFAULT_INSTALL_DIR="@SDKPATHINSTALL@" SUDO_EXEC="" From patchwork Fri Dec 4 13:15:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107310 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7910.1796390126564451443 for ; Fri, 04 Dec 2026 05:15:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=TP9jmRTF; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 52CBA14BF for ; Fri, 4 Dec 2026 05:15:23 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C2DB13F632 for ; Fri, 4 Dec 2026 05:15:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390126; bh=jcC9+Y+jtnfRzJnvhbmsQIHQee3s+JaRWxW7mPegK9U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TP9jmRTFte5SZRz9VpZ8045f9NE0gLvS/Q21nYnyxV3saP3hbiyI0od0nt6yPA/1z EPKt0GOr+4y4J6fP4gim+fu1JHgGdKMa5xfQqGgHI7YHXYAdfwBigVbe3NJPcfd3um 4Ut13486f7B8iXcepFvTYIPoQ/vBEE0vl53d2AKc= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 6/8] toolchain-shar-extract: be verbose earlier Date: Fri, 4 Dec 2026 13:15:17 +0000 Message-ID: <20261204131519.3476966-6-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:30 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251974 Move the 'set -x' call to immediately after the argument parsing, so as much as possible is ran verbosely. Signed-off-by: Ross Burton --- meta/files/toolchain-shar-extract.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh index c701e188fb4..cfc6cb96f65 100644 --- a/meta/files/toolchain-shar-extract.sh +++ b/meta/files/toolchain-shar-extract.sh @@ -109,6 +109,10 @@ while getopts ":yd:npDRSl" OPT; do esac done +if [ $verbose = 1 ] ; then + set -x +fi + payload_offset=$(($(grep -na -m1 "^MARKER:$" "$0"|cut -d':' -f1) + 1)) if [ "$listcontents" = "1" ] ; then if [ @SDK_ARCHIVE_TYPE@ = "zip" ]; then @@ -128,10 +132,6 @@ titlestr="@SDK_TITLE@ installer version @SDK_VERSION@" printf "%s\n" "$titlestr" printf "%${#titlestr}s\n" | tr " " "=" -if [ $verbose = 1 ] ; then - set -x -fi - @SDK_PRE_INSTALL_COMMAND@ # SDK_EXTENSIBLE is exposed from the SDK_PRE_INSTALL_COMMAND above From patchwork Fri Dec 4 13:15:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107311 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7713.1796390127180075965 for ; Fri, 04 Dec 2026 05:15:27 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=ayISp4t4; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id F219D14BF for ; Fri, 4 Dec 2026 05:15:23 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6AE493F632 for ; Fri, 4 Dec 2026 05:15:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390126; bh=hvkNdIQWlVuUZwXqLlaku0XL/7K1N1xFnFh+1KzH2tE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ayISp4t4Iq2C9RiNrC/mPshvKV6EilBDXXzD9GkHmJlZA7T2C7IBpOSuhUg/6nSp9 q1MoZ53a3nNYZlXWgV2apmixtOUvOYxnUMEuASRjNgJuAr2X7MGQmwfU89KDxgZXGC iUEwplR6UZMD0pqJO2GgvDvwguwvIpftd5h4smAk= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 7/8] populate_sdk_base: fix typo in error message Date: Fri, 4 Dec 2026 13:15:18 +0000 Message-ID: <20261204131519.3476966-7-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:30 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251975 When listing the valid SDK_ARCHIVE_TYPEs, the value should be "7zip" not "7z". Signed-off-by: Ross Burton --- meta/classes-recipe/populate_sdk_base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/populate_sdk_base.bbclass b/meta/classes-recipe/populate_sdk_base.bbclass index 35d2f203399..f29e12c27c1 100644 --- a/meta/classes-recipe/populate_sdk_base.bbclass +++ b/meta/classes-recipe/populate_sdk_base.bbclass @@ -115,7 +115,7 @@ python () { d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; tar ${SDKTAROPTS} -cf - . | xz ${SDK_XZ_OPTIONS} > ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE}') else: - bb.fatal("Invalid SDK_ARCHIVE_TYPE: %s, the supported SDK archive types are: zip, 7z, tar.xz, tar.zst" % d.getVar('SDK_ARCHIVE_TYPE')) + bb.fatal("Invalid SDK_ARCHIVE_TYPE: %s, the supported SDK archive types are: zip, 7zip, tar.xz, tar.zst" % d.getVar('SDK_ARCHIVE_TYPE')) } SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}" From patchwork Fri Dec 4 13:15:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107312 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7911.1796390127843709934 for ; Fri, 04 Dec 2026 05:15:27 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=OUGkI0E0; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8FE7914BF for ; Fri, 4 Dec 2026 05:15:24 -0800 (PST) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 130FC3F632 for ; Fri, 4 Dec 2026 05:15:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796390127; bh=PbUVFEimGH6fBALOZP6otDshxqda3QWRuPxKTFRZuEk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OUGkI0E0cMof17GxkG+NEMEN4fvAbcqJ6VN3K6Fi1Yac0Z7kzOH9E2zEzsfefdHlv 4niqbH9k7COwcfgCKF47Dvb5eqdCp2AGrqa+Bex0OtiXuzI6ucLUq0k79EYm2l8Emy Ny4ooYIwROKswG+bhFx0c0AbaGdKjkrmzKJT9HSc= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 8/8] oeqa/selftest/sdk: add install tests for all SDK_ARCHIVE_TYPE variants Date: Fri, 4 Dec 2026 13:15:19 +0000 Message-ID: <20261204131519.3476966-8-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204131519.3476966-1-ross.burton@arm.com> References: <20261204131519.3476966-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 04 Dec 2026 13:15:30 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251976 Add tests to verify that the SDK installs correctly with each of the archive types. The test is minimal: success is defined as the SDK installing and an environment script being present. The 7zip type has to be conditional on meta-oe being present, as 7zip is in that layer. Also check that the required host tools are present, so hosts with a minimal set of tools don't fail. Signed-off-by: Ross Burton --- meta/lib/oeqa/selftest/cases/sdk.py | 43 ++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/sdk.py b/meta/lib/oeqa/selftest/cases/sdk.py index ee1e4ca4200..dec8882cdee 100644 --- a/meta/lib/oeqa/selftest/cases/sdk.py +++ b/meta/lib/oeqa/selftest/cases/sdk.py @@ -13,7 +13,7 @@ import select from tempfile import TemporaryDirectory from oeqa.selftest.case import OESelftestTestCase -from oeqa.utils.commands import bitbake, get_bb_vars +from oeqa.utils.commands import bitbake, get_bb_var, get_bb_vars class SDKTests(OESelftestTestCase): @@ -123,3 +123,44 @@ IMAGE_INSTALL:append = " selftest-hello" self.logger.debug(f"runqemu works in SDK: {runqemu_works}\n{output}") self.assertTrue(runqemu_works, f"runqemu does not work in SDK\n{output}") + +class SDKInstallTests(OESelftestTestCase): + + def do_install_with_compression(self, compression): + image = "core-image-minimal" + + self.write_config(f""" +SDK_ARCHIVE_TYPE = "{compression}" +""") + bitbake(f"{image} -c populate_sdk") + + with TemporaryDirectory() as tmpdir: + vars = get_bb_vars(["SDK_DEPLOY", "TOOLCHAIN_OUTPUTNAME"], image) + sdk_installer = os.path.join(vars["SDK_DEPLOY"], vars["TOOLCHAIN_OUTPUTNAME"] + ".sh") + # Install the SDK + subprocess.check_call([sdk_installer, "-y", "-d", tmpdir]) + # Verify that at least environment scripts were created + environment_scripts = glob.glob(os.path.join(tmpdir, "environment-setup-*")) + self.assertTrue(environment_scripts) + + def test_sdk_install_7z(self): + if not get_bb_var('LAYERDIR_meta-oe'): + self.skipTest("Test needs meta-oe for 7zip") + if not shutil.which("7z"): + self.skipTest("Test needs 7z on the host") + self.do_install_with_compression("7z") + + def test_sdk_install_tar_xz(self): + if not shutil.which("xz"): + self.skipTest("Test needs xz on the host") + self.do_install_with_compression("tar.xz") + + def test_sdk_install_tar_zst(self): + if not shutil.which("zstd"): + self.skipTest("Test needs zstd on the host") + self.do_install_with_compression("tar.zst") + + def test_sdk_install_zip(self): + if not shutil.which("unzip"): + self.skipTest("Test needs unzip on the host") + self.do_install_with_compression("zip")