From patchwork Fri Dec 4 17:22:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 107346 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2125.1796404931357556198 for ; Fri, 04 Dec 2026 09:22:11 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=CT6ngdLP; 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 51D9714BF; Fri, 4 Dec 2026 09:22:07 -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 9BAFD3F86F; Fri, 4 Dec 2026 09:22:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796404930; bh=YqF834bbPHQO63Nwh9SmibJtuXP70nlAjew23NlBlu4=; h=From:To:Cc:Subject:Date:From; b=CT6ngdLPIfsUekuUtwo+7vjW7PuJtBv0gEb0jbYFsMqtjeYQKU8+WqWXYAjcLEWjG fgPAhuX4wXG4Gm0fkxN3uTnjTXZhhPVCSwerGqdbctiyuyWleJXirOewS/SxwHRMyB H67o4/xEc//Qrqs/xDqb9ntjN1pSzwvtMkPZ/yac= From: Ross Burton To: openembedded-core@lists.openembedded.org Cc: egyszeregy@freemail.hu Subject: [PATCH] populate_sdk_base: remove 7zip support Date: Fri, 4 Dec 2026 17:22:03 +0000 Message-ID: <20261204172203.2881301-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 17:22:13 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/252005 This was quite broken, I started to fix it but it doesn't look like it ever actually worked. From trivial to fatal: - The error message if you set an invalid SDK_ARCHIVE_TYPE says "7z" but the correct value is "7zip" - 7zip isn't told to follow links, so best-case it duplicated files but also dangling links (as are in parts of the sysroot) cause failure - The temporary archive is a .7z file, but the self-extracting wrapper creation looked for .7zip - The SDK unpack code didn't handle 7z and tried to use tar+xz. This code is untested and broken, so remove it. Signed-off-by: Ross Burton --- meta/classes-recipe/populate_sdk_base.bbclass | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/meta/classes-recipe/populate_sdk_base.bbclass b/meta/classes-recipe/populate_sdk_base.bbclass index 35d2f203399..906ae94787c 100644 --- a/meta/classes-recipe/populate_sdk_base.bbclass +++ b/meta/classes-recipe/populate_sdk_base.bbclass @@ -92,8 +92,6 @@ SDK_ARCHIVE_TYPE ?= "tar.xz" SDK_XZ_COMPRESSION_LEVEL ?= "-9" SDK_XZ_OPTIONS ?= "${XZ_DEFAULTS} ${SDK_XZ_COMPRESSION_LEVEL}" SDK_ZIP_OPTIONS ?= "-y" -SDK_7ZIP_OPTIONS ?= "-mx=9 -mm=BZip2" -SDK_7ZIP_TYPE ?= "7z" SDK_ZSTD_COMPRESSION_LEVEL ?= "-17" # To support different sdk type according to SDK_ARCHIVE_TYPE, now support zip and tar.xz @@ -103,9 +101,6 @@ python () { # 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} .') - 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} .') elif d.getVar('SDK_ARCHIVE_TYPE') == 'tar.zst': d.setVar('SDK_ARCHIVE_DEPENDS', 'zstd-native') d.setVar('SDK_ARCHIVE_CMD', @@ -115,7 +110,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, tar.xz, tar.zst" % d.getVar('SDK_ARCHIVE_TYPE')) } SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}"