diff mbox series

erofs-utils: add lzma PACKAGECONFIG and enable it by default

Message ID 20261126132412.2581866-1-sean@geanix.com
State New
Headers show
Series erofs-utils: add lzma PACKAGECONFIG and enable it by default | expand

Commit Message

Sean Nyekjaer Nov. 26, 2026, 1:24 p.m. UTC
configure enables LZMA support whenever it finds liblzma, but the recipe
doesn't depend on xz. erofs-utils-native gets it only by accident:
util-linux-libuuid unpacks a .tar.xz, so xz-native is added to its
do_unpack and ends up in the native sysroot. Target and nativesdk builds
never find liblzma, so their mkfs.erofs can't create LZMA compressed
images, e.g. the Compression=lzma DDIs of meta-oe's
discoverable-disk-image class.

Add an lzma PACKAGECONFIG and enable it by default, which keeps native
as it is and makes target and nativesdk match it.

AI-Generated: Claude Opus 5.5 (Claude Code)
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
---
 meta/recipes-devtools/erofs-utils/erofs-utils_1.9.4.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/erofs-utils/erofs-utils_1.9.4.bb b/meta/recipes-devtools/erofs-utils/erofs-utils_1.9.4.bb
index 9c0db7c2c0..1b05b3dbf7 100644
--- a/meta/recipes-devtools/erofs-utils/erofs-utils_1.9.4.bb
+++ b/meta/recipes-devtools/erofs-utils/erofs-utils_1.9.4.bb
@@ -13,8 +13,9 @@  DEPENDS = "util-linux-libuuid"
 
 inherit pkgconfig autotools
 
-PACKAGECONFIG ??= "lz4 zlib"
+PACKAGECONFIG ??= "lz4 lzma zlib"
 PACKAGECONFIG[lz4] = "--enable-lz4,--disable-lz4,lz4"
+PACKAGECONFIG[lzma] = "--enable-lzma,--disable-lzma,xz"
 PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib"
 
 # Would otherwise query the system the build is running on