diff mbox series

[v2,3/8] classes/base: depend on libarchive-native when unpacking zip files

Message ID 20261204131519.3476966-3-ross.burton@arm.com
State New
Headers show
Series [v2,1/8] classes/python_pep517: use Python's unzip module to manually install wheels | expand

Commit Message

Ross Burton Dec. 4, 2026, 1:15 p.m. UTC
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 <ross.burton@arm.com>
---
 meta/classes-global/base.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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'):