Skip to contentSkip to conversation

classes/base: add explicit bzip2-native dependency for unpacking .bz2

PATCH New Ross Burton 1 participant 1 message Apr 23

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 classes/base: add explicit bzip2-native dependency for unpacking .bz2

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

---
 meta/classes-global/base.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes-global/base.bbclass +4 -0
index 76fd0ac046a..319bf02d81e 100644
@@ -662,6 +662,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')
Signature · 1 line
2.43.0