diff mbox series

[meta-oe,2/2] libjxl: drop the sizeless-vectors PACKAGECONFIG

Message ID 20260916173011.2907064-2-f_l_k@t-online.de
State New
Headers show
Series [meta-oe,1/2] libjxl: do not build the SVE targets on tunes without SVE | expand

Commit Message

Markus Volk Sept. 16, 2026, 5:30 p.m. UTC
JPEGXL_ENABLE_SIZELESS_VECTORS no longer exists: 0.11 read it, 0.12 does
not, so cmake reports it as an unused command line variable. Per target
JPEGXL_ENABLE_HWY_* switches took its place.

The riscv removal it carried is gone with it, and nothing is lost. In 0.11
the option defaulted to off and disabled SVE and RVV; enabling it, as the
recipe did, is what pulled RVV in and broke riscv in the first place. In
0.12 RVV is listed in JPEGXL_HWY_TARGETS_OFF_BY_DEFAULT, so it is not built
on any architecture -- an aarch64 build passes HWY_RVV in HWY_DISABLED_TARGETS
without any help from the recipe.

Built libjxl for raspberrypi4-64 from a clean state and checked that the
x86-64 configuration no longer carries the dead define.

AI-Generated: Uses Claude Code (Claude Opus 5)
---
 meta-oe/recipes-multimedia/libjxl/libjxl_0.12.0.bb | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-multimedia/libjxl/libjxl_0.12.0.bb b/meta-oe/recipes-multimedia/libjxl/libjxl_0.12.0.bb
index 1207fef856..2ca52147be 100644
--- a/meta-oe/recipes-multimedia/libjxl/libjxl_0.12.0.bb
+++ b/meta-oe/recipes-multimedia/libjxl/libjxl_0.12.0.bb
@@ -40,17 +40,10 @@  EXTRA_OECMAKE = " \
 EXTRA_OECMAKE:append:aarch64 = " ${@bb.utils.contains('TUNE_FEATURES', 'sve', '', '-DJPEGXL_ENABLE_HWY_SVE=OFF -DJPEGXL_ENABLE_HWY_SVE_256=OFF', d)}"
 EXTRA_OECMAKE:append:aarch64 = " ${@bb.utils.contains('TUNE_FEATURES', 'sve2', '', '-DJPEGXL_ENABLE_HWY_SVE2=OFF -DJPEGXL_ENABLE_HWY_SVE2_128=OFF', d)}"
 
-PACKAGECONFIG ?= "mime gdk-pixbuf-loader sizeless-vectors"
-# libjxl/0.10.2/recipe-sysroot/usr/include/hwy/ops/rvv-inl.h:591:17: error: use
-# of undeclared identifier '__riscv_vsetvlmax_e8mf8'
-#  591 | HWY_RVV_FOREACH(HWY_RVV_LANES, Lanes, setvlmax_e, _ALL)
-#      |                 ^
-PACKAGECONFIG:remove:riscv64 = "sizeless-vectors"
-PACKAGECONFIG:remove:riscv32 = "sizeless-vectors"
+PACKAGECONFIG ?= "mime gdk-pixbuf-loader"
 PACKAGECONFIG[gdk-pixbuf-loader] = "-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=ON,-DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=OFF,gdk-pixbuf"
 PACKAGECONFIG[gimp] = "-DJPEGXL_ENABLE_PLUGIN_GIMP210=ON,-DJPEGXL_ENABLE_PLUGIN_GIMP210=OFF,gimp"
 PACKAGECONFIG[mime] = "-DJPEGXL_ENABLE_PLUGIN_MIME=ON,-DJPEGXL_ENABLE_PLUGIN_MIME=OFF"
-PACKAGECONFIG[sizeless-vectors] = "-DJPEGXL_ENABLE_SIZELESS_VECTORS=ON,-DJPEGXL_ENABLE_SIZELESS_VECTORS=OFF"
 
 # lcms/src/cmsps2.c
 # error: out of range pc-relative fixup value