From patchwork Tue Dec 1 12:17:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106790 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9533.1796127465813017263 for ; Tue, 01 Dec 2026 04:17:46 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=pSQnZSeg; 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 70D811477 for ; Tue, 1 Dec 2026 04:17:42 -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 E052C3F86F for ; Tue, 1 Dec 2026 04:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127465; bh=AcreXVRRaIqy8/av6TDhuQ+hWnucbgyJ5EYYH+wj8kg=; h=From:To:Subject:Date:From; b=pSQnZSegEK1BiPCiivZVRtplDmakiL7f+K/4Ydi2FKtpi9Jaai8bezUr34fODcADM R5b7D1ZhsiQtbEP3UR9V6SXQZ9iFtnT2uyFN07cUhHHNFa6BIIJ67tpHzfEy+Hr7Q3 10R70SyMjV58fAy5PUsJsQATwIcOQhapa9wsu2kI= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/8] ltp: remove obsolete zip-native DEPENDS Date: Tue, 1 Dec 2026 12:17:34 +0000 Message-ID: <20261201121743.1889751-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 ; Tue, 01 Dec 2026 12:17:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251722 This is no longer needed, since 2016[1] LTP provides a reference zip file instead of needing to assemble one at build time. [1] ltp e1eaa03b5 ("unzip_tests.sh: Rewrite && convert to new library.") Signed-off-by: Ross Burton --- meta/recipes-extended/ltp/ltp_20260930.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-extended/ltp/ltp_20260930.bb b/meta/recipes-extended/ltp/ltp_20260930.bb index 7e6aa4f815f..c5f3f2c9df7 100644 --- a/meta/recipes-extended/ltp/ltp_20260930.bb +++ b/meta/recipes-extended/ltp/ltp_20260930.bb @@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "\ file://testcases/network/can/filter-tests/COPYING;md5=5b155ea7d7f86eae8e8832955d8b70bc \ " -DEPENDS = "attr libaio libcap acl openssl zip-native" +DEPENDS = "attr libaio libcap acl openssl" DEPENDS:append:libc-musl = " fts " EXTRA_OEMAKE:append:libc-musl = " LIBC=musl " EXTRA_OECONF:append:libc-musl = " LIBS=-lfts " From patchwork Tue Dec 1 12:17:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106791 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9534.1796127466468108004 for ; Tue, 01 Dec 2026 04:17:46 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=jHsn69cB; 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 1604E1570 for ; Tue, 1 Dec 2026 04:17:43 -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 8E5383F871 for ; Tue, 1 Dec 2026 04:17:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127465; bh=rYv/N9kRCXLvu406AoSfBg9GNbkn2ZCQqqsSGMWHI5U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=jHsn69cBGrk7zuEPQwUIZMAPDm3AlE2vw4HA5h+PifTGNbyEBnv7vJeoDQCgs/iqJ iFBRp0BEBdY2zo8rc9j4p8uBJ25vG5zpzdHi2pBIaJAK+er7udCBX0Y7b/I5jWEthW kLrw4fI0Vms9xRrMOmnnplgG+VpVN0ub3l6IMld0= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/8] build-appliance-image: use bsdtar instead of zip to create the .zip Date: Tue, 1 Dec 2026 12:17:35 +0000 Message-ID: <20261201121743.1889751-2-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:47 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251723 Info-Zip was last released in 2008 and is both entirely unmaintained and accumulating CVEs. libarchive's 'bsdtar' can create zip files, so use that to create the zip file instead. Signed-off-by: Ross Burton --- meta/recipes-core/images/build-appliance-image_15.0.0.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/images/build-appliance-image_15.0.0.bb b/meta/recipes-core/images/build-appliance-image_15.0.0.bb index 80ff2f775c0..2045b67df60 100644 --- a/meta/recipes-core/images/build-appliance-image_15.0.0.bb +++ b/meta/recipes-core/images/build-appliance-image_15.0.0.bb @@ -19,7 +19,7 @@ IMAGE_ROOTFS_EXTRA_SPACE = "41943040" # Do a quiet boot with limited console messages APPEND += "rootfstype=ext4 quiet" -DEPENDS = "zip-native python3-pip-native" +DEPENDS = "libarchive-native python3-pip-native" IMAGE_FSTYPES = "wic.vmdk wic.vhd wic.vhdx" inherit core-image features_check @@ -149,7 +149,7 @@ create_bundle_files () { ln -sf ${IMGDEPLOYDIR}/${IMAGE_NAME}.wic.vmdk Yocto_Build_Appliance/Yocto_Build_Appliance.vmdk ln -sf ${IMGDEPLOYDIR}/${IMAGE_NAME}.wic.vhdx Yocto_Build_Appliance/Yocto_Build_Appliance.vhdx ln -sf ${IMGDEPLOYDIR}/${IMAGE_NAME}.wic.vhd Yocto_Build_Appliance/Yocto_Build_Appliance.vhd - zip -r ${IMGDEPLOYDIR}/Yocto_Build_Appliance-${DATETIME}.zip Yocto_Build_Appliance + bsdtar -caf ${IMGDEPLOYDIR}/Yocto_Build_Appliance-${DATETIME}.zip Yocto_Build_Appliance/ ln -sf Yocto_Build_Appliance-${DATETIME}.zip ${IMGDEPLOYDIR}/Yocto_Build_Appliance.zip } create_bundle_files[vardepsexclude] = "DATETIME" From patchwork Tue Dec 1 12:17:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106792 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9535.1796127466988460889 for ; Tue, 01 Dec 2026 04:17:47 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=ZYO0834z; 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 AA7481477 for ; Tue, 1 Dec 2026 04:17:43 -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 327F63F86F for ; Tue, 1 Dec 2026 04:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127466; bh=lPB7oV3swVhZ935/zR7iRaLZCaXZei4MfqgCIdVn91g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZYO0834zNYPfme1W1Ijm5y358l5SX0wftvHBc5BQC4eZh2QWuPd6QgJKw2unF57Lp 9P14PtxKddWen7vmSxRUfscDg0vX8jeCqMlDLz4x256kwSnmWggUtQliUDMplQzk8D vxOQr80um8RJ/zrUfvTR7IGfCIZ73QGZNCHpIp8I= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/8] classes/populate_sdk_base: use bsdtar instead of zip to create the .zip Date: Tue, 1 Dec 2026 12:17:36 +0000 Message-ID: <20261201121743.1889751-3-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/251724 Info-Zip was last released in 2008 and is both entirely unmaintained and accumulating CVEs. libarchive's 'bsdtar' can create zip files, so use that to create the zip file instead. We can remove the '-y' option which was used to store symlinks as links instead of another copy of the data, as this is the default behaviour with bsdtar. Signed-off-by: Ross Burton --- meta/classes-recipe/populate_sdk_base.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes-recipe/populate_sdk_base.bbclass b/meta/classes-recipe/populate_sdk_base.bbclass index 35d2f203399..fa547ef7aaa 100644 --- a/meta/classes-recipe/populate_sdk_base.bbclass +++ b/meta/classes-recipe/populate_sdk_base.bbclass @@ -91,7 +91,7 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}" SDK_ARCHIVE_TYPE ?= "tar.xz" SDK_XZ_COMPRESSION_LEVEL ?= "-9" SDK_XZ_OPTIONS ?= "${XZ_DEFAULTS} ${SDK_XZ_COMPRESSION_LEVEL}" -SDK_ZIP_OPTIONS ?= "-y" +SDK_ZIP_OPTIONS ?= "" SDK_7ZIP_OPTIONS ?= "-mx=9 -mm=BZip2" SDK_7ZIP_TYPE ?= "7z" SDK_ZSTD_COMPRESSION_LEVEL ?= "-17" @@ -99,10 +99,10 @@ SDK_ZSTD_COMPRESSION_LEVEL ?= "-17" # To support different sdk type according to SDK_ARCHIVE_TYPE, now support zip and tar.xz python () { if d.getVar('SDK_ARCHIVE_TYPE') == 'zip': - d.setVar('SDK_ARCHIVE_DEPENDS', 'zip-native') + d.setVar('SDK_ARCHIVE_DEPENDS', 'libarchive-native') # SDK_ARCHIVE_CMD used to generate archived sdk ${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} from input dir ${SDK_OUTPUT}/${SDKPATH} to output dir ${SDKDEPLOYDIR} # recommand to cd into input dir first to avoid archive with buildpath - d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; zip -r ${SDK_ZIP_OPTIONS} ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} .') + d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; bsdtar -c --format zip ${SDK_ZIP_OPTIONS} -f ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} .') elif d.getVar('SDK_ARCHIVE_TYPE') == '7zip': d.setVar('SDK_ARCHIVE_DEPENDS', '7zip-native') d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; 7za a -r ${SDK_7ZIP_OPTIONS} ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_7ZIP_TYPE} .') From patchwork Tue Dec 1 12:17:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106793 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9356.1796127467709292875 for ; Tue, 01 Dec 2026 04:17:48 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=HZMdcgKX; 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 522181477 for ; Tue, 1 Dec 2026 04:17:44 -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 CAB773F86F for ; Tue, 1 Dec 2026 04:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127467; bh=hI2b95mDsFlqm/w4DqE5MBY0QwID1Qer8oGYCpL8xyE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HZMdcgKXX8UnbrLRNbrUk1PB0wByA6zwXMCeC81+cANvuAJnsy7pCuFcn+ycyBTdg oisRQlvyXJPxmczT4WCta9AmAi8EnUWfI2zlbUYW4FEIbNRePO/zCBg0/dR2c38yWc cwiV4egT93n2/gXLf4uZqu6UzDQ708v6Tm8XynE4= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 4/8] classes/image_types: use bsdtar instead of zip to create the .zip Date: Tue, 1 Dec 2026 12:17:37 +0000 Message-ID: <20261201121743.1889751-4-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/251725 Info-Zip was last released in 2008 and is both entirely unmaintained and accumulating CVEs. libarchive's 'bsdtar' can create zip files, so use that to create the zip file instead. We need to change the default value for ZIP_COMPRESSION_LEVEL. Any users who had set this explicitly will need to update it appropriately. Signed-off-by: Ross Burton --- meta/classes-recipe/image_types.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes-recipe/image_types.bbclass b/meta/classes-recipe/image_types.bbclass index a5637c2226c..99bf54a1588 100644 --- a/meta/classes-recipe/image_types.bbclass +++ b/meta/classes-recipe/image_types.bbclass @@ -61,7 +61,7 @@ def imagetypes_getdepends(d): XZ_COMPRESSION_LEVEL ?= "-6" XZ_INTEGRITY_CHECK ?= "crc32" -ZIP_COMPRESSION_LEVEL ?= "-9" +ZIP_COMPRESSION_LEVEL ?= "9" 7ZIP_COMPRESSION_LEVEL ?= "9" 7ZIP_COMPRESSION_METHOD ?= "BZip2" @@ -382,7 +382,7 @@ CONVERSION_CMD:bz2 = "pbzip2 -f -k ${IMAGE_NAME}.${type}" CONVERSION_CMD:xz = "xz -f -k -c ${XZ_COMPRESSION_LEVEL} ${XZ_DEFAULTS} --check=${XZ_INTEGRITY_CHECK} ${IMAGE_NAME}.${type} > ${IMAGE_NAME}.${type}.xz" CONVERSION_CMD:lz4 = "lz4 -f -9 -z -l ${IMAGE_NAME}.${type} ${IMAGE_NAME}.${type}.lz4" CONVERSION_CMD:lzo = "lzop -f -9 ${IMAGE_NAME}.${type}" -CONVERSION_CMD:zip = "zip ${ZIP_COMPRESSION_LEVEL} ${IMAGE_NAME}.${type}.zip ${IMAGE_NAME}.${type}" +CONVERSION_CMD:zip = "bsdtar -c --format zip --options zip:compression-level=${ZIP_COMPRESSION_LEVEL} -f ${IMAGE_NAME}.${type}.zip ${IMAGE_NAME}.${type}" CONVERSION_CMD:7zip = "7za a -mx=${7ZIP_COMPRESSION_LEVEL} -mm=${7ZIP_COMPRESSION_METHOD} ${IMAGE_NAME}.${type}.${7ZIP_EXTENSION} ${IMAGE_NAME}.${type}" CONVERSION_CMD:zst = "zstd -f -k -c ${ZSTD_DEFAULTS} ${IMAGE_NAME}.${type} > ${IMAGE_NAME}.${type}.zst" CONVERSION_CMD:sum = "sumtool -i ${IMAGE_NAME}.${type} -o ${IMAGE_NAME}.${type}.sum ${JFFS2_SUM_EXTRA_ARGS}" @@ -408,7 +408,7 @@ CONVERSION_DEPENDS_bz2 = "pbzip2-native" CONVERSION_DEPENDS_xz = "xz-native" CONVERSION_DEPENDS_lz4 = "lz4-native" CONVERSION_DEPENDS_lzo = "lzop-native" -CONVERSION_DEPENDS_zip = "zip-native" +CONVERSION_DEPENDS_zip = "libarchive-native" CONVERSION_DEPENDS_7zip = "7zip-native" CONVERSION_DEPENDS_zst = "zstd-native" CONVERSION_DEPENDS_sum = "mtd-utils-native" From patchwork Tue Dec 1 12:17:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106794 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.9536.1796127468196687926 for ; Tue, 01 Dec 2026 04:17:48 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=N8BRt4++; 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 F2B5B1570 for ; Tue, 1 Dec 2026 04:17:44 -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 6EEA73F86F for ; Tue, 1 Dec 2026 04:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127467; bh=giTqWqVf0QBj0xSph4xVvHfMypvt9shQuzmZlEODgts=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N8BRt4++HPuFPjduT3xOrOzOQYgS1tD6KGSrXT7cdB3Dxd2WxrC4NG+5n62cM4htC d29uoE68vSZHliP3QRMQdgY8I6Vd6Az1V6413ulycDFAI1wxo+6OZ43QHFQuqx9Lgb lQ6mamPO9JOMkVNKo2TGnTr/oUSh0nFTLKB+LBcE= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 5/8] packagegroup-self-hosted: pull in bsdtar instead of zip Date: Tue, 1 Dec 2026 12:17:38 +0000 Message-ID: <20261201121743.1889751-5-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/251726 Info-Zip was last released in 2008 and is both entirely unmaintained and accumulating CVEs. libarchive's 'bsdtar' can create zip files, so add that to the package group to cater for the "create a zip" use-case. zip isn't part of the ASSUME_PROVIDED variable so this is actually not needed, but a review of the contents of this packagegroup can happen in the future. Signed-off-by: Ross Burton --- meta/recipes-core/packagegroups/packagegroup-self-hosted.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb index c3862677819..a17ff3eb9a6 100644 --- a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb +++ b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb @@ -108,6 +108,7 @@ RDEPENDS:packagegroup-self-hosted-debug = " \ tcf-agent" RDEPENDS:packagegroup-self-hosted-extended = "\ + bsdtar \ bzip2 \ chrpath \ cpio \ @@ -172,7 +173,6 @@ RDEPENDS:packagegroup-self-hosted-extended = "\ which \ xinetd \ xz \ - zip \ zlib \ zstd \ " From patchwork Tue Dec 1 12:17:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106795 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9357.1796127468954996674 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=OjM0x77s; 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 A07391477 for ; Tue, 1 Dec 2026 04:17:45 -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 1BF903F86F for ; Tue, 1 Dec 2026 04:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127468; bh=PuhUaBh27oucAJoiqpOT9sE9qXWFEBAyblXYBCZ7U1A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OjM0x77sMGdaO/seqZrXlNj0u/ftrbdQxZ/uz0s3e29JQT2qB16xcP5+ub82ThxUy 9hh9w36ZY0TB27T7WMnBYepBLVOAzcucTwSkLrUKD+QWJz2HKf/9t56HU8hWhtIhVj kztJFFCctod54EwFt2F0esS9SovlIufKQ8KtqNaU= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 6/8] busybox: set pipefail so run-ptest fails if tests fail Date: Tue, 1 Dec 2026 12:17:39 +0000 Message-ID: <20261201121743.1889751-6-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/251727 The test runner is piped through sed, so if the runner fails the script still has a success exit code. busybox's ash supports pipefile, so we can enable that. Signed-off-by: Ross Burton --- meta/recipes-core/busybox/files/run-ptest | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-core/busybox/files/run-ptest b/meta/recipes-core/busybox/files/run-ptest index 957af36099d..21163e21d95 100644 --- a/meta/recipes-core/busybox/files/run-ptest +++ b/meta/recipes-core/busybox/files/run-ptest @@ -1,5 +1,7 @@ #!/bin/sh +set -o pipefail + current_path=$(readlink -f $0) export bindir=$(dirname $current_path) export PATH=$bindir/bin:$PATH 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 From patchwork Tue Dec 1 12:17:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 106797 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.9359.1796127470376200641 for ; Tue, 01 Dec 2026 04:17:50 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=WxsrW3yH; 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 1FC9E1477 for ; Tue, 1 Dec 2026 04:17:47 -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 6300F3F86F for ; Tue, 1 Dec 2026 04:17:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796127469; bh=YxJTlF2YhFqtHVF5FZi7iFtQKEuwugfF/5m1WcBtTls=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WxsrW3yHBLowUry0Yuo059XQ484OROxzuPhX6kbKcWNxzKH4h/DiuSIhjk00mcGnb ahEq9soJj7eFL7Rowsc5mb+IoqiRr3csDIPVZoZrWjtYYO93kleMrzTIkE6ge7s8pX 2m9s3XhRnC9aWH8SOwQ6v7eXvekjHM94kzdnu/Lc= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 8/8] zip: remove zip from oe-core Date: Tue, 1 Dec 2026 12:17:41 +0000 Message-ID: <20261201121743.1889751-8-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/251729 Info-Zip was last released in 2008 and is both entirely unmaintained and accumulating CVEs. There are now no users in oe-core, so the recipe can be removed to meta-oe for anyone who needs this recipe. Signed-off-by: Ross Burton --- meta/conf/distro/include/maintainers.inc | 1 - ...e-dirent.h-for-closedir-opendir-APIs.patch | 45 ---- ...y-correct-function-signatures-and-de.patch | 134 ---------- ...LAGS-and-LDFLAGS-when-doing-link-tes.patch | 88 ------- .../0001-configure-use-correct-CPP.patch | 47 ---- ...fix-a-buffer-overflow-detected-issue.patch | 38 --- ...se-_Static_assert-to-do-correct-dete.patch | 96 ------- ...002-configure-support-PIC-code-build.patch | 34 --- .../zip/zip-3.0/10-remove-build-date.patch | 19 -- .../zip/zip-3.0/CVE-2018-13410.patch | 24 -- .../zip/zip-3.0/CVE-2026-130335.patch | 235 ------------------ .../zip/zip-3.0/fix-security-format.patch | 42 ---- .../zipnote-crashes-with-segfault.patch | 22 -- meta/recipes-extended/zip/zip_3.0.bb | 55 ---- 14 files changed, 880 deletions(-) delete mode 100644 meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/0001-configure-Specify-correct-function-signatures-and-de.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/0001-configure-use-correct-CPP.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/0002-configure-support-PIC-code-build.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/10-remove-build-date.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/CVE-2018-13410.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/CVE-2026-130335.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/fix-security-format.patch delete mode 100644 meta/recipes-extended/zip/zip-3.0/zipnote-crashes-with-segfault.patch delete mode 100644 meta/recipes-extended/zip/zip_3.0.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 62de04001e4..c694a6e0b95 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -951,7 +951,6 @@ RECIPE_MAINTAINER:pn-xwayland = "Unassigned " RECIPE_MAINTAINER:pn-xwininfo = "Unassigned " RECIPE_MAINTAINER:pn-xxhash = "Unassigned " RECIPE_MAINTAINER:pn-xz = "Denys Dmytriyenko " -RECIPE_MAINTAINER:pn-zip = "Denys Dmytriyenko " RECIPE_MAINTAINER:pn-zlib = "Denys Dmytriyenko " RECIPE_MAINTAINER:pn-zstd = "Unassigned " diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch deleted file mode 100644 index 0d3af37ded2..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch +++ /dev/null @@ -1,45 +0,0 @@ -From 9db2f8cdbbc0dfb359d3b4e5dfe48c18652ce531 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 8 May 2024 19:02:46 -0700 -Subject: [PATCH] configure: Include dirent.h for closedir/opendir APIs -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -GCC-14 is strict about function prototypes and since the -testcase tries to compile/link opendir/closedir functions -without including signatures, it fails to build the test -due to missing signatures which come from dirent.h - -Therefore include the needed system header and make it more -robust. - -Fixes -a.c:2:21: error: implicit declaration of function ‘closedir’ [-Wimplicit-function-declaration] - 2 | int main() { return closedir(opendir(".")); } - | ^~~~~~~~ -a.c:2:30: error: implicit declaration of function ‘opendir’ [-Wimplicit-function-declaration] - 2 | int main() { return closedir(opendir(".")); } - | ^~~~~~~ - -Upstream-Status: Inactive-Upstream -Signed-off-by: Khem Raj ---- - unix/configure | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/unix/configure b/unix/configure -index f917086..1dd98c6 100644 ---- a/unix/configure -+++ b/unix/configure -@@ -591,6 +591,7 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null - - echo Check for directory libraries - cat > conftest.c << _EOF_ -+#include - int main() { return closedir(opendir(".")); } - _EOF_ - --- -2.45.0 - diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-Specify-correct-function-signatures-and-de.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-Specify-correct-function-signatures-and-de.patch deleted file mode 100644 index a4f83826257..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/0001-configure-Specify-correct-function-signatures-and-de.patch +++ /dev/null @@ -1,134 +0,0 @@ -From 8810f2643c9372a8083272dc1fc157427646d961 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 10 Aug 2022 17:16:23 -0700 -Subject: [PATCH 1/2] configure: Specify correct function signatures and - declarations - -Include needed system headers in configure tests, this is needed because -newer compilers are getting stricter about the C99 specs and turning --Wimplicit-function-declaration into hard error e.g. clang-15+ - -Upstream-Status: Inactive-Upstream -Signed-off-by: Khem Raj ---- - unix/configure | 79 +++++++++++++++++++++++++++++++++++++++++--------- - 1 file changed, 66 insertions(+), 13 deletions(-) - -diff --git a/unix/configure b/unix/configure -index 1d9a9bb..f2b3d02 100644 ---- a/unix/configure -+++ b/unix/configure -@@ -513,21 +513,70 @@ $CC $CFLAGS -c conftest.c >/dev/null 2>/dev/null - # Check for missing functions - # add NO_'function_name' to flags if missing - --for func in rmdir strchr strrchr rename mktemp mktime mkstemp --do -- echo Check for $func -- echo "int main(){ $func(); return 0; }" > conftest.c -- $CC $CFLAGS $LDFLAGS $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null -- [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $func | tr '[a-z]' '[A-Z]'`" --done -+echo Check for rmdir -+cat > conftest.c << _EOF_ -+#include -+int main(){ rmdir(NULL); return 0; } -+_EOF_ -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null -+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_RMDIR" -+ -+echo Check for strchr -+cat > conftest.c << _EOF_ -+#include -+int main(){ strchr(NULL,0); return 0; } -+_EOF_ -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null -+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_STRCHR" - -+echo Check for strrchr -+cat > conftest.c << _EOF_ -+#include -+int main(){ strrchr(NULL,0); return 0; } -+_EOF_ -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null -+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_STRRCHR" -+ -+echo Check for rename -+cat > conftest.c << _EOF_ -+#include -+int main(){ rename(NULL,NULL); return 0; } -+_EOF_ -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null -+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_RENAME" -+ -+echo Check for mktemp -+cat > conftest.c << _EOF_ -+#include -+int main(){ mktemp(NULL); return 0; } -+_EOF_ -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null -+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_MKTEMP" -+ -+echo Check for mktime -+cat > conftest.c << _EOF_ -+#include -+int main(){ mktime(NULL); return 0; } -+_EOF_ -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null -+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_MKTIME" -+ -+echo Check for mkstemp -+cat > conftest.c << _EOF_ -+#include -+int main(){ return mkstemp(NULL); } -+_EOF_ -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null -+[ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_MKSTEMP" - - echo Check for memset --echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c -+cat > conftest.c << _EOF_ -+#include -+int main(){ char k; memset(&k,0,0); return 0; } -+_EOF_ - $CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null - [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM" - -- - echo Check for memmove - cat > conftest.c << _EOF_ - #include -@@ -548,7 +597,7 @@ $CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null - echo Check for errno declaration - cat > conftest.c << _EOF_ - #include --main() -+int main() - { - errno = 0; - return 0; -@@ -625,14 +674,18 @@ CFLAGS="${CFLAGS} ${OPT}" - - echo Check for valloc - cat > conftest.c << _EOF_ --main() -+#include -+int main() - { - #ifdef MMAP -- valloc(); -+ valloc(0); - #endif -+ return 0; - } - _EOF_ --$CC ${CFLAGS} -c conftest.c > /dev/null 2>/dev/null -+#$CC ${CFLAGS} -c conftest.c > /dev/null 2>/dev/null -+$CC ${CFLAGS} -c conftest.c -+echo "===========================================" - [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_VALLOC" - - --- -2.37.1 - diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch deleted file mode 100644 index 92d0d5db58f..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch +++ /dev/null @@ -1,88 +0,0 @@ -From ab5df4826c4a532da78828b72a2751c899e27ef2 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Tue, 8 Mar 2022 22:31:21 -0800 -Subject: [PATCH] configure: Use CFLAGS and LDFLAGS when doing link tests - -Some case link flags contain important flags which are required during -linking, link fails otherwise without them, which can result in -configure detection go wrong, ensure these flags are used along with CC -when tests involve linking - -Upstream-Status: Inactive-Upstream -Signed-off-by: Khem Raj ---- - unix/configure | 16 ++++++++-------- - 1 file changed, 8 insertions(+), 8 deletions(-) - -diff --git a/unix/configure b/unix/configure -index 1bc698b..1d9a9bb 100644 ---- a/unix/configure -+++ b/unix/configure -@@ -517,14 +517,14 @@ for func in rmdir strchr strrchr rename mktemp mktime mkstemp - do - echo Check for $func - echo "int main(){ $func(); return 0; }" > conftest.c -- $CC $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null -+ $CC $CFLAGS $LDFLAGS $BFLAG -o conftest conftest.c >/dev/null 2>/dev/null - [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNO_`echo $func | tr '[a-z]' '[A-Z]'`" - done - - - echo Check for memset - echo "int main(){ char k; memset(&k,0,0); return 0; }" > conftest.c --$CC -o conftest conftest.c >/dev/null 2>/dev/null -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null - [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DZMEM" - - -@@ -533,7 +533,7 @@ cat > conftest.c << _EOF_ - #include - int main() { int a; int b = 0; memmove( &a, &b, sizeof( a)); return a; } - _EOF_ --$CC -o conftest conftest.c >/dev/null 2>/dev/null -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null - [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNEED_MEMMOVE" - - -@@ -542,7 +542,7 @@ cat > conftest.c << _EOF_ - #include - int main() { strerror( 0); return 0; } - _EOF_ --$CC -o conftest conftest.c >/dev/null 2>/dev/null -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null - [ $? -ne 0 ] && CFLAGS="${CFLAGS} -DNEED_STRERROR" - - echo Check for errno declaration -@@ -563,7 +563,7 @@ cat > conftest.c << _EOF_ - int main() { return closedir(opendir(".")); } - _EOF_ - --$CC -o conftest conftest.c >/dev/null 2>/dev/null -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null - if [ $? -ne 0 ]; then - OPT="" - for lib in ndir dir ucb bsd BSD PW x dirent -@@ -583,9 +583,9 @@ fi - - echo Check for readlink - echo "int main(){ return readlink(); }" > conftest.c --$CC -o conftest conftest.c >/dev/null 2>/dev/null -+$CC $CFLAGS $LDFLAGS -o conftest conftest.c >/dev/null 2>/dev/null - if [ $? -ne 0 ]; then -- $CC -o conftest conftest.c -lseq >/dev/null 2>/dev/null -+ $CC $CFLAGS $LDFLAGS -o conftest conftest.c -lseq >/dev/null 2>/dev/null - [ $? -eq 0 ] && LFLAGS2="${LFLAGS2} -lseq" - fi - -@@ -661,7 +661,7 @@ elif [ -f /xenix ]; then - elif uname -X >/dev/null 2>/dev/null; then - # SCO shared library check - echo "int main() { return 0;}" > conftest.c -- $CC -o conftest conftest.c -lc_s -nointl >/dev/null 2> /dev/null -+ $CC $CFLAGS $LDFLAGS -o conftest conftest.c -lc_s -nointl >/dev/null 2> /dev/null - [ $? -eq 0 ] && LFLAGS2="-lc_s -nointl" - else - SYSTEM=`uname -s 2>/dev/null` || SYSTEM="unknown" --- -2.35.1 - diff --git a/meta/recipes-extended/zip/zip-3.0/0001-configure-use-correct-CPP.patch b/meta/recipes-extended/zip/zip-3.0/0001-configure-use-correct-CPP.patch deleted file mode 100644 index 02253f968c5..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/0001-configure-use-correct-CPP.patch +++ /dev/null @@ -1,47 +0,0 @@ -From 7a2729ee7f5d9b9d4a0d9b83fe641a2ab03c4ee0 Mon Sep 17 00:00:00 2001 -From: Joe Slater -Date: Thu, 24 Feb 2022 17:36:59 -0800 -Subject: [PATCH 1/2] configure: use correct CPP - -configure uses CPP to test that two assembler routines -can be built. Unfortunately, it will use /usr/bin/cpp -if it exists, invalidating the tests. We use the $CC -passed to configure. - -Upstream-Status: Inappropriate [openembedded specific] - -Signed-off-by: Joe Slater ---- - unix/configure | 15 +++++++++------ - 1 file changed, 9 insertions(+), 6 deletions(-) - -diff --git a/unix/configure b/unix/configure -index 73ba803..7e21070 100644 ---- a/unix/configure -+++ b/unix/configure -@@ -220,13 +220,16 @@ fi - echo Check for the C preprocessor - # on SVR4, cc -E does not produce correct assembler files. Need /lib/cpp. - CPP="${CC} -E" -+ -+# We should not change CPP for yocto builds. -+# - # solaris as(1) needs -P, maybe others as well ? --[ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P" --[ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp --[ -f /lib/cpp ] && CPP=/lib/cpp --[ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp --[ -f /xenix ] && CPP="${CC} -E" --[ -f /lynx.os ] && CPP="${CC} -E" -+# [ -f /usr/ccs/lib/cpp ] && CPP="/usr/ccs/lib/cpp -P" -+# [ -f /usr/lib/cpp ] && CPP=/usr/lib/cpp -+# [ -f /lib/cpp ] && CPP=/lib/cpp -+# [ -f /usr/bin/cpp ] && CPP=/usr/bin/cpp -+# [ -f /xenix ] && CPP="${CC} -E" -+# [ -f /lynx.os ] && CPP="${CC} -E" - - echo "#include " > conftest.c - $CPP conftest.c >/dev/null 2>/dev/null || CPP="${CC} -E" --- -2.24.1 - diff --git a/meta/recipes-extended/zip/zip-3.0/0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch b/meta/recipes-extended/zip/zip-3.0/0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch deleted file mode 100644 index d760dfcec5a..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 23b4ed82bff20c737fe2e95d5b035e92a9522ca2 Mon Sep 17 00:00:00 2001 -From: Ming Liu -Date: Thu, 15 May 2025 13:58:45 +0200 -Subject: [PATCH] fileio.c: fix a buffer overflow detected issue -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Fix a following issue: -| *** buffer overflow detected ***: terminated -| -| zip error: Interrupted (aborting) - -Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2165653 - -Upstream-Status: Inactive-Upstream [the fix is from Redhat but not the official project] - -Signed-off-by: Ming Liu ---- - fileio.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/fileio.c b/fileio.c -index 1847e62..5a2959d 100644 ---- a/fileio.c -+++ b/fileio.c -@@ -3502,7 +3502,7 @@ zwchar *local_to_wide_string(local_string) - if ((wc_string = (wchar_t *)malloc((wsize + 1) * sizeof(wchar_t))) == NULL) { - ZIPERR(ZE_MEM, "local_to_wide_string"); - } -- wsize = mbstowcs(wc_string, local_string, strlen(local_string) + 1); -+ wsize = mbstowcs(wc_string, local_string, wsize + 1); - wc_string[wsize] = (wchar_t) 0; - - /* in case wchar_t is not zwchar */ --- -2.43.0 - diff --git a/meta/recipes-extended/zip/zip-3.0/0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch b/meta/recipes-extended/zip/zip-3.0/0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch deleted file mode 100644 index 106f246a7ce..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch +++ /dev/null @@ -1,96 +0,0 @@ -From 9916fc6f1f93f3e092e3c6937c30dc8137c26d34 Mon Sep 17 00:00:00 2001 -From: Chen Qi -Date: Thu, 15 Jun 2023 18:31:26 +0800 -Subject: [PATCH] unix/configure: use _Static_assert to do correct detection - -We're doing cross compilation, running a cross-compiled problem -on host to detemine feature is not correct. Use _Static_assert -to do the detection correctly. - -Upstream-Status: Inactive-Upstream - -Signed-off-by: Chen Qi ---- - unix/configure | 42 ++++++++++++------------------------------ - 1 file changed, 12 insertions(+), 30 deletions(-) - -diff --git a/unix/configure b/unix/configure -index f2b3d02..f917086 100644 ---- a/unix/configure -+++ b/unix/configure -@@ -361,6 +361,10 @@ cat > conftest.c << _EOF_ - #include - #include - #include -+ -+_Static_assert(sizeof((struct stat){0}.st_uid) == 2, "sizeof st_uid is not 16 bit"); -+_Static_assert(sizeof((struct stat){0}.st_gid) == 2, "sizeof st_gid is not 16 bit"); -+ - int main() - { - struct stat s; -@@ -385,21 +389,7 @@ if [ $? -ne 0 ]; then - echo -- UID/GID test failed on compile - disabling old 16-bit UID/GID support - CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT" - else --# run it -- ./conftest -- r=$? -- if [ $r -eq 1 ]; then -- echo -- UID not 2 bytes - disabling old 16-bit UID/GID support -- CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT" -- elif [ $r -eq 2 ]; then -- echo -- GID not 2 bytes - disabling old 16-bit UID/GID support -- CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT" -- elif [ $r -eq 3 ]; then -- echo -- 16-bit UIDs and GIDs - keeping old 16-bit UID/GID support -- else -- echo -- test failed - conftest returned $r - disabling old 16-bit UID/GID support -- CFLAGS="${CFLAGS} -DUIDGID_NOT_16BIT" -- fi -+ echo -- 16-bit UIDs and GIDs - keeping old 16-bit UID/GID support - fi - - -@@ -417,6 +407,10 @@ cat > conftest.c << _EOF_ - #include - #include - #include -+ -+_Static_assert(sizeof(off_t) < 8, "sizeof off_t < 8 failed"); -+_Static_assert(sizeof((struct stat){0}.st_size) < 8, "sizeof st_size < 8 failed"); -+ - int main() - { - off_t offset; -@@ -436,24 +430,12 @@ _EOF_ - # compile it - $CC -o conftest conftest.c >/dev/null 2>/dev/null - if [ $? -ne 0 ]; then -- echo -- no Large File Support -+ echo -- yes we have Large File Support! -+ CFLAGS="${CFLAGS} -DLARGE_FILE_SUPPORT" - else --# run it -- ./conftest -- r=$? -- if [ $r -eq 1 ]; then -- echo -- no Large File Support - no 64-bit off_t -- elif [ $r -eq 2 ]; then -- echo -- no Large File Support - no 64-bit stat -- elif [ $r -eq 3 ]; then -- echo -- yes we have Large File Support! -- CFLAGS="${CFLAGS} -DLARGE_FILE_SUPPORT" -- else -- echo -- no Large File Support - conftest returned $r -- fi -+ echo -- no Large File Support - fi - -- - # Check for wide char for Unicode support - # Added 11/24/2005 EG - --- -2.34.1 - diff --git a/meta/recipes-extended/zip/zip-3.0/0002-configure-support-PIC-code-build.patch b/meta/recipes-extended/zip/zip-3.0/0002-configure-support-PIC-code-build.patch deleted file mode 100644 index 6e0879616a0..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/0002-configure-support-PIC-code-build.patch +++ /dev/null @@ -1,34 +0,0 @@ -From b0492506d2c28581193906e9d260d4f0451e2c39 Mon Sep 17 00:00:00 2001 -From: Joe Slater -Date: Thu, 24 Feb 2022 17:46:03 -0800 -Subject: [PATCH 2/2] configure: support PIC code build - -Disable building match.S. The code requires -relocation in .text. - -Upstream-Status: Inappropriate [openembedded specific] - -Signed-off-by: Joe Slater ---- - unix/configure | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -diff --git a/unix/configure b/unix/configure -index 7e21070..1bc698b 100644 ---- a/unix/configure -+++ b/unix/configure -@@ -242,8 +242,9 @@ if eval "$CPP match.S > _match.s 2>/dev/null"; then - if test ! -s _match.s || grep error < _match.s > /dev/null; then - : - elif eval "$CC -c _match.s >/dev/null 2>/dev/null" && [ -f _match.o ]; then -- CFLAGS="${CFLAGS} -DASMV" -- OBJA="match.o" -+ # disable match.S for PIC code -+ # CFLAGS="${CFLAGS} -DASMV" -+ # OBJA="match.o" - echo "int foo() { return 0;}" > conftest.c - $CC -c conftest.c >/dev/null 2>/dev/null - echo Check if compiler generates underlines --- -2.24.1 - diff --git a/meta/recipes-extended/zip/zip-3.0/10-remove-build-date.patch b/meta/recipes-extended/zip/zip-3.0/10-remove-build-date.patch deleted file mode 100644 index 6fd04df1c6f..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/10-remove-build-date.patch +++ /dev/null @@ -1,19 +0,0 @@ -From: Santiago Vila -Subject: Remove (optional) build date to make the build reproducible -Bug-Debian: http://bugs.debian.org/779042 - -Upstream-Status: Inactive-Upstream [no upstream] - -Signed-off-by: Joshua Watt - ---- a/unix/unix.c -+++ b/unix/unix.c -@@ -1020,7 +1020,7 @@ - - - /* Define the compile date string */ --#ifdef __DATE__ -+#if 0 - # define COMPILE_DATE " on " __DATE__ - #else - # define COMPILE_DATE "" diff --git a/meta/recipes-extended/zip/zip-3.0/CVE-2018-13410.patch b/meta/recipes-extended/zip/zip-3.0/CVE-2018-13410.patch deleted file mode 100644 index 81c1f13286e..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/CVE-2018-13410.patch +++ /dev/null @@ -1,24 +0,0 @@ -From: Florent 'Skia' Jacquet -Subject: Fix buffer overflow when using '-T -TT' -Bug-Debian: https://bugs.debian.org/1093629 -Bug-Ubuntu: https://launchpad.net/bugs/2093024 -Forwarded: https://sourceforge.net/p/infozip/bugs/81/ - -strlen(unzip_path) + strlen(zipname) + " " + "'" + "'" + '\0' -The additional space required in the `cmd` buffer is 4, not 3. - -CVE: CVE-2018-13410 -Upstream-Status: Inactive-Upstream [lastrelease: 2008] -Signed-off-by: Peter Marko - ---- a/zip.c -+++ b/zip.c -@@ -1437,7 +1437,7 @@ - /* Replace first {} with archive name. If no {} append name to string. */ - here = strstr(unzip_path, "{}"); - -- if ((cmd = malloc(strlen(unzip_path) + strlen(zipname) + 3)) == NULL) { -+ if ((cmd = malloc(strlen(unzip_path) + strlen(zipname) + 4)) == NULL) { - ziperr(ZE_MEM, "building command string for testing archive"); - } - diff --git a/meta/recipes-extended/zip/zip-3.0/CVE-2026-130335.patch b/meta/recipes-extended/zip/zip-3.0/CVE-2026-130335.patch deleted file mode 100644 index dc33f3c2b05..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/CVE-2026-130335.patch +++ /dev/null @@ -1,235 +0,0 @@ -From: Paul Marquess -Subject: Fix command injection issue -Bug-Debian: https://bugs.debian.org/1143866 -X-Debian-version: 3.0-16 - -CVE: CVE-2026-130335 -Upstream-Status: Inactive-Upstream [lastrelease: 2008] -Signed-off-by: Peter Marko - ---- a/zip.c -+++ b/zip.c -@@ -122,6 +122,7 @@ - - local void freeup OF((void)); - local int finish OF((int)); -+local char *quote_arg(char *instring); - #if (!defined(MACOS) && !defined(WINDLL)) - local void handler OF((int)); - local void license OF((void)); -@@ -1323,6 +1324,134 @@ - return 1; - } - -+ -+/* quote_arg() -+ * -+ * Add quotation and/or escapes to a shell (VMS: DCL) argument string -+ * appropriate to the local operating system or shell (Unix, Windows, -+ * etc.). This is mainly used to build the command line to pass to -+ * UnZip (or other application when -TT used) to test an archive. -+ * Return malloc()'d result. -+ * -+ * All: Add " at beginning and end. -+ * MSDOS: % -> "^%" -+ * " -> \"" -+ * Unix: ! -> "'!'" -+ * $ -> \$ -+ * \ -> \\ -+ * ` -> \` -+ * Non-VMS: " -> \" -+ * VMS: " -> """ -+ * -+ * On VMS, quoted double apostrophes are also special. Currently not -+ * handled. (How? Quotation marks are needed for (upper-)case -+ * preservation. Double apostrophes in quotation marks are interpreted -+ * (symbol evaluation). SMS sees no way to handle "fr''ed". "fr'""'ed" -+ * becomes >fr'"'ed<, for example.) Not a problem for file specs, but -+ * imposes a restriction on passwords. -+ */ -+#ifndef NO_PROTO -+local char *quote_arg(char *instring) -+#else -+local char *quote_arg(instring) -+ char *instring; -+#endif -+{ -+ int i; -+ int j; -+ char *tempstring; -+ char *outstring; -+ char c; -+ -+ if (instring == NULL) -+ return NULL; -+ -+# ifdef MSDOS -+# define QA_FACTOR 4 /* Worst case (MSDOS): % -> "^%" */ -+ -+# else /* not MSDOS */ -+# ifdef VMS -+# define QA_FACTOR 3 /* Worst case (VMS): " -> """ */ -+ -+# else /* not MSDOS or VMS */ -+# define QA_FACTOR 5 /* Worst case (Unix): ! -> "'!'" */ -+# endif /* VMS [else] */ -+# endif /* MSDOS [else] */ -+ -+# define QA_INCR 2 /* Surrounding quotation marks. */ -+ -+ i = QA_FACTOR * (int)strlen(instring) + QA_INCR + 1; -+ if ((tempstring = (char *)malloc(i)) == NULL) { -+ ZIPERR(ZE_MEM, "quote_arg"); -+ } -+ -+ j = 0; -+ -+ tempstring[j++] = '\"'; /* Surrounding quotation mark (start). */ -+ -+ for (i = 0; instring[i]; i++) { -+ c = instring[i]; -+ -+# ifdef MSDOS /* or Windows */ -+ if (c == '%') /* Percent. */ -+ { -+ tempstring[j++] = '"'; /* Add (closing) quotation mark. */ -+ tempstring[j++] = '^'; /* Add caret escape. */ -+ tempstring[j++] = '%'; /* Original character (%). */ -+ c = '"'; /* Prepare (re-opening) quotation mark. */ -+ } -+ else if (c == '"') /* Quotation mark. */ -+ { -+ tempstring[j++] = '\\'; /* Add backslash (escape). */ -+ tempstring[j++] = '"'; /* Add quote (acts as closing and literal). */ -+ } -+# else /* not def MSDOS */ -+ -+# ifdef VMS -+ if (c == '"') /* Quotation mark. */ -+ { -+ tempstring[j++] = '"'; /* Add two quotation marks. */ -+ tempstring[j++] = '"'; -+ } -+# else /* not def VMS */ -+ -+ /* UNIX is default for others */ -+ -+ if (c == '"') /* Quotation mark. */ -+ { -+ tempstring[j++] = '\\'; /* Add backslash (escape). */ -+ } -+ else if (c == '!') /* Exclamation. (Inefficient.) */ -+ { -+ tempstring[j++] = '"'; /* Add (closing) quotation mark. */ -+ tempstring[j++] = '\''; /* Add (opening) apostrophe. */ -+ tempstring[j++] = '!'; /* Original character (!). */ -+ tempstring[j++] = '\''; /* Add (closing) apostrophe. */ -+ c = '"'; /* Prepare (re-opening) quotation mark. */ -+ } -+ else if ((c == '$') || /* Dollar sign. */ -+ (c == '`') || /* Grave accent (backtick). */ -+ (c == '\\')) /* Backslash. */ -+ { -+ tempstring[j++] = '\\'; /* Add backslash (escape). */ -+ } -+ -+# endif /* def VMS [else] */ -+# endif /* def MSDOS [else] */ -+ -+ tempstring[j++] = c; /* Original (or other last) character. */ -+ } -+ -+ tempstring[j++] = '\"'; /* Surrounding quotation mark (end). */ -+ -+ tempstring[j] = '\0'; -+ /* outstring = string_dup(tempstring, "quote_arg", NO_FLUFF); */ -+ outstring = strdup(tempstring); -+ free(tempstring); -+ -+ return outstring; -+} -+ - local void check_zipfile(zipname, zippath) - char *zipname; - char *zippath; -@@ -1424,11 +1553,15 @@ - - #else /* (MSDOS && !__GO32__) || __human68k__ */ - char *cmd; -+ char *qzipname; - int result; - - /* Tell picky compilers to shut up about unused variables */ - zippath = zippath; - -+ /* Quote each arg (and add appropriate escapes). */ -+ qzipname = quote_arg(zipname); -+ - if (unzip_path) { - /* user gave us a path to some unzip (may not be UnZip) */ - char *here; -@@ -1437,7 +1570,7 @@ - /* Replace first {} with archive name. If no {} append name to string. */ - here = strstr(unzip_path, "{}"); - -- if ((cmd = malloc(strlen(unzip_path) + strlen(zipname) + 4)) == NULL) { -+ if ((cmd = malloc(strlen(unzip_path) + strlen(qzipname) + 4)) == NULL) { - ziperr(ZE_MEM, "building command string for testing archive"); - } - -@@ -1447,32 +1580,20 @@ - strcpy(cmd, unzip_path); - cmd[len] = '\0'; - strcat(cmd, " "); --# ifdef UNIX -- strcat(cmd, "'"); /* accept space or $ in name */ -- strcat(cmd, zipname); -- strcat(cmd, "'"); --# else -- strcat(cmd, zipname); --# endif -+ strcat(cmd, qzipname); - strcat(cmd, " "); - strcat(cmd, here + 2); - } else { - /* No {} so append temp name to end */ - strcpy(cmd, unzip_path); - strcat(cmd, " "); --# ifdef UNIX -- strcat(cmd, "'"); /* accept space or $ in name */ -- strcat(cmd, zipname); -- strcat(cmd, "'"); --# else -- strcat(cmd, zipname); --# endif -+ strcat(cmd, qzipname); - } - free(unzip_path); - unzip_path = NULL; - - } else { -- if ((cmd = malloc(20 + strlen(zipname))) == NULL) { -+ if ((cmd = malloc(20 + strlen(qzipname))) == NULL) { - ziperr(ZE_MEM, "building command string for testing archive"); - } - -@@ -1484,15 +1605,12 @@ - if (check_unzip_version("unzip") == 0) - ZIPERR(ZE_TEST, zipfile); - --# ifdef UNIX -- strcat(cmd, "'"); /* accept space or $ in name */ -- strcat(cmd, zipname); -- strcat(cmd, "'"); --# else -- strcat(cmd, zipname); --# endif -+ strcat(cmd, qzipname); - } - -+ if (qzipname) -+ free(qzipname); -+ - result = system(cmd); - # ifdef VMS - /* Convert success severity to 0, others to non-zero. */ diff --git a/meta/recipes-extended/zip/zip-3.0/fix-security-format.patch b/meta/recipes-extended/zip/zip-3.0/fix-security-format.patch deleted file mode 100644 index f85fddbc60b..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/fix-security-format.patch +++ /dev/null @@ -1,42 +0,0 @@ -zip: Fixing security formatting issues - -Fix security formatting issues related to printing without NULL argument - -zip.c: In function 'help_extended': -zip.c:1031:5: error: format not a string literal and no format arguments [-Werror=format-security] - printf(text[i]); - ^ -zip.c: In function 'version_info': -zip.c:1228:5: error: format not a string literal and no format arguments [-Werror=format-security] - printf(cryptnote[i]); - ^ - -[YOCTO #9552] -[https://bugzilla.yoctoproject.org/show_bug.cgi?id=9552] - -Upstream-Status: Inactive-Upstream [need a new release] - -Signed-off-by: Edwin Plauchu - -diff --git a/zip.c b/zip.c -index 439821f..d7da768 100644 ---- a/zip.c -+++ b/zip.c -@@ -1028,7 +1028,7 @@ local void help_extended() - - for (i = 0; i < sizeof(text)/sizeof(char *); i++) - { -- printf(text[i]); -+ fputs(text[i],stdout); - putchar('\n'); - } - #ifdef DOS -@@ -1225,7 +1225,7 @@ local void version_info() - CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE); - for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++) - { -- printf(cryptnote[i]); -+ fputs(cryptnote[i],stdout); - putchar('\n'); - } - ++i; /* crypt support means there IS at least one compilation option */ diff --git a/meta/recipes-extended/zip/zip-3.0/zipnote-crashes-with-segfault.patch b/meta/recipes-extended/zip/zip-3.0/zipnote-crashes-with-segfault.patch deleted file mode 100644 index 77ade40a04a..00000000000 --- a/meta/recipes-extended/zip/zip-3.0/zipnote-crashes-with-segfault.patch +++ /dev/null @@ -1,22 +0,0 @@ -Close the correct file descriptor - -https://bugs.archlinux.org/task/47713 - -Signed-off-by: Jate Sujjavanich - -Upstream-Status: Inactive-Upstream [no upstream] - -diff --git a/zipnote.c b/zipnote.c -index 5e02cb6..996f012 100644 ---- a/zipnote.c -+++ b/zipnote.c -@@ -661,7 +661,7 @@ char **argv; /* command line tokens */ - if ((r = zipcopy(z)) != ZE_OK) - ziperr(r, "was copying an entry"); - } -- fclose(x); -+ fclose(in_file); - - /* Write central directory and end of central directory with new comments */ - if ((c = zftello(y)) == (zoff_t)-1) /* get start of central */ - diff --git a/meta/recipes-extended/zip/zip_3.0.bb b/meta/recipes-extended/zip/zip_3.0.bb deleted file mode 100644 index fa85ed9699a..00000000000 --- a/meta/recipes-extended/zip/zip_3.0.bb +++ /dev/null @@ -1,55 +0,0 @@ -SUMMARY = "Compressor/archiver for creating and modifying .zip files" -HOMEPAGE = "http://www.info-zip.org" -DESCRIPTION = "Info-ZIP's purpose is to provide free, portable, high-quality versions of the Zip and UnZip compressor-archiver utilities that are compatible with the DOS-based PKZIP by PKWARE, Inc." -SECTION = "console/utils" - -LICENSE = "Info-ZIP" -LIC_FILES_CHKSUM = "file://LICENSE;md5=04d43c5d70b496c032308106e26ae17d" - -S = "${UNPACKDIR}/zip30" - -SRC_URI = "${SOURCEFORGE_MIRROR}/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz \ - file://fix-security-format.patch \ - file://10-remove-build-date.patch \ - file://zipnote-crashes-with-segfault.patch \ - file://0001-configure-use-correct-CPP.patch \ - file://0002-configure-support-PIC-code-build.patch \ - file://0001-configure-Use-CFLAGS-and-LDFLAGS-when-doing-link-tes.patch \ - file://0001-configure-Specify-correct-function-signatures-and-de.patch \ - file://0001-unix-configure-use-_Static_assert-to-do-correct-dete.patch \ - file://0001-configure-Include-dirent.h-for-closedir-opendir-APIs.patch \ - file://0001-fileio.c-fix-a-buffer-overflow-detected-issue.patch \ - file://CVE-2018-13410.patch \ - file://CVE-2026-130335.patch \ - " -UPSTREAM_VERSION_UNKNOWN = "1" - -SRC_URI[sha256sum] = "f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369" - -CVE_STATUS[CVE-2018-13684] = "cpe-incorrect: Not for zip but for smart contract implementation for it" - -# zip.inc sets CFLAGS, but what Makefile actually uses is -# CFLAGS_NOOPT. It will also force -O3 optimization, overriding -# whatever we set. -EXTRA_OEMAKE = "'CC=${CC}' 'BIND=${CC}' 'AS=${CC} -c' 'CPP=${CPP}' \ - 'CFLAGS=-I. -DUNIX ${CFLAGS}' \ - 'CFLAGS_NOOPT=-I. -DUNIX ${CFLAGS}' \ - 'INSTALL=install' 'INSTALL_D=install -d' \ - 'BINFLAGS=0755'" - -do_compile() { - oe_runmake -f unix/Makefile flags IZ_BZIP2=no_such_directory - sed -i 's#LFLAGS1=""#LFLAGS1="${LDFLAGS}"#' flags - oe_runmake -f unix/Makefile generic IZ_BZIP2=no_such_directory -} - -do_install() { - oe_runmake -f unix/Makefile prefix=${D}${prefix} \ - BINDIR=${D}${bindir} MANDIR=${D}${mandir}/man1 \ - install -} - -BBCLASSEXTEND = "native" - -# exclude version 2.3.2 which triggers a false positive -UPSTREAM_CHECK_REGEX = "^zip(?P(?!232).+)\.tgz"