From patchwork Tue Dec 1 12:17:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106796 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9358.1796127469470883101 for ; Tue, 01 Dec 2026 04:17:49 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=gBtVQFqQ; 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 427E21477 for ; Tue, 1 Dec 2026 04:17:46 -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 BD52B3F86F for ; Tue, 1 Dec 2026 04:17:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127469; bh=PDVNjt6ukkT+LqvP9ECyPKezPeyF2v6BvgRtRhiVQYI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gBtVQFqQKg7PALdM87wRe2ntKC0Fz1kMHAlI/n3R4CYjtq2Kr0I48jd6fksPaz28a 6XaxvrJoXqSJPRlx9TvRo+GT4WLIRxzVr4vlCSE/ART03X4/O/Js6KlAX7eMNxEfQI oEPhotC2wlBaSDSxS+OLq/hPUd/wZqaIej1uJDG0= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 7/8] busybox: remove dependency on zip Date: Tue, 1 Dec 2026 12:17:40 +0000 Message-ID: <20261201121743.1889751-7-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261201121743.1889751-1-ross.burton@arm.com> References: <20261201121743.1889751-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 ; Tue, 01 Dec 2026 12:17:57 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251728 The unzip test case currently constructs a zip file at runtime. Instead, provide a small and known good zip file so we don't need zip to run the tests. The patch is split into a patch and a literal .zip in SRC_URI because GNU patch can't apply git binary diffs. When this patch is upstreamed we can remove both the .patch and .zip. Signed-off-by: Ross Burton --- meta/recipes-core/busybox/busybox.inc | 6 +-- ...ite-provide-good-reference-.zip-file.patch | 42 ++++++++++++++++++ meta/recipes-core/busybox/busybox_1.38.0.bb | 2 + .../recipes-core/busybox/files/unzip_good.zip | Bin 0 -> 300 bytes 4 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-core/busybox/busybox/0001-testsuite-provide-good-reference-.zip-file.patch create mode 100644 meta/recipes-core/busybox/files/unzip_good.zip GIT binary patch literal 300 zcmWIWW@h1H00HIAb+KRulwe_yVMxo**AEThWMDq@oi`hVODnh;7+KiL7#P4r08ZWP zP~Az1MfeS1WRhdX ${D}${PTEST_PATH}/.config ln -s ${base_bindir}/busybox ${D}${PTEST_PATH}/busybox sed -i -e 's|LIBC=""|LIBC=${TCLIBC}|g' ${D}${PTEST_PATH}/run-ptest + + # This can be removed when 0001-testsuite-provide-good-reference-.zip-file is merged upstream + install -m644 ${UNPACKDIR}/unzip_good.zip ${D}${PTEST_PATH}/testsuite/ } inherit update-alternatives diff --git a/meta/recipes-core/busybox/busybox/0001-testsuite-provide-good-reference-.zip-file.patch b/meta/recipes-core/busybox/busybox/0001-testsuite-provide-good-reference-.zip-file.patch new file mode 100644 index 00000000000..3c90d9efcce --- /dev/null +++ b/meta/recipes-core/busybox/busybox/0001-testsuite-provide-good-reference-.zip-file.patch @@ -0,0 +1,42 @@ +From a3faa33f5c660c37eb5c92b5ce5e8d5581a6fdf1 Mon Sep 17 00:00:00 2001 +From: Ross Burton +Date: Mon, 30 Nov 2026 22:28:21 +0000 +Subject: [PATCH] testsuite: provide good reference .zip file +X-ARM-No-Footer: NoDisclaimer + +X-ARM-No-Footer: NoDisclaimer + +Instead of expecting the build host to have a 'zip' binary, provide a +tiny reference zip file in the test suite. + +Upstream-Status: Submitted [https://lists.busybox.net/pipermail/busybox/2026-December/092671.html] +Signed-off-by: Ross Burton +--- + testsuite/unzip.tests | 11 +---------- + 1 file changed, 1 insertion(+), 10 deletions(-) + +diff --git a/testsuite/unzip.tests b/testsuite/unzip.tests +index 6d8e01d..9d63bde 100755 +--- a/testsuite/unzip.tests ++++ b/testsuite/unzip.tests +@@ -16,19 +16,10 @@ + mkdir temp + cd temp || exit $? + +-# Create test file to work with. +- +-mkdir foo +-touch foo/bar +-zip foo.zip foo foo/bar > /dev/null +-rm -f foo/bar +-rmdir foo +- + # Test that unzipping just foo doesn't create bar. +-testing "unzip (subdir only)" "unzip -q foo.zip foo/ && test -d foo && test ! -f foo/bar && echo yes" "yes\n" "" "" ++testing "unzip (subdir only)" "unzip -q ../unzip_good.zip foo/ && test -d foo && test ! -f foo/bar && echo yes" "yes\n" "" "" + + rmdir foo +-rm foo.zip + + # File containing some damaged encrypted stream + optional FEATURE_UNZIP_CDF CONFIG_UNICODE_SUPPORT UUDECODE diff --git a/meta/recipes-core/busybox/busybox_1.38.0.bb b/meta/recipes-core/busybox/busybox_1.38.0.bb index 7a230542880..a7113adeebe 100644 --- a/meta/recipes-core/busybox/busybox_1.38.0.bb +++ b/meta/recipes-core/busybox/busybox_1.38.0.bb @@ -61,6 +61,8 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://CVE-2024-58251.patch \ file://CVE-2026-38754.patch \ file://CVE-2026-136411.patch \ + file://0001-testsuite-provide-good-reference-.zip-file.patch \ + file://unzip_good.zip;unpack=0 \ " SRC_URI:append:libc-musl = " file://musl.cfg" SRC_URI:append:x86-64 = " file://sha_accel.cfg" diff --git a/meta/recipes-core/busybox/files/unzip_good.zip b/meta/recipes-core/busybox/files/unzip_good.zip new file mode 100644 index 0000000000000000000000000000000000000000..83c0133632c41eb13b1b2a231a88655571168de6