diff mbox series

[wrynose,19/52] classes/base: add explicit bzip2-native dependency for unpacking .bz2

Message ID 8e4d03a616246eaab9f15b4140c95ca9b709b89e.1778198557.git.yoann.congal@smile.fr
State New
Headers show
Series [wrynose,01/52] shadow: set CVE_PRODUCT | expand

Commit Message

Yoann Congal May 8, 2026, 7:11 a.m. UTC
From: Ross Burton <ross.burton@arm.com>

Currently this is in ASSUME_PROVIDED and HOSTTOOLS so doesn't have any
effect, but declaring the dependency is the right thing to do.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 05e14c476823b7598ed063c5ef758d94cdc222fb)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 meta/classes-global/base.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index f2e8326e39a..62f2814bb71 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -657,6 +657,10 @@  python () {
         if path.endswith('.lz4'):
             d.appendVarFlag('do_unpack', 'depends', ' lz4-native:do_populate_sysroot')
 
+        # *.bz2 should DEPEND on bzip2-native for unpacking
+        elif path.endswith('.bz2'):
+            d.appendVarFlag('do_unpack', 'depends', ' bzip2-native:do_populate_sysroot')
+
         # *.zst should DEPEND on zstd-native for unpacking
         elif path.endswith('.zst'):
             d.appendVarFlag('do_unpack', 'depends', ' zstd-native:do_populate_sysroot')