Skip to contentSkip to conversation

xkeyboard-config: Turn absolute symlinks into relative

PATCH New Khem Raj 1 participant 1 message Sep 17, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 xkeyboard-config: Turn absolute symlinks into relative

Native builds encode symlinks pointing to absolute paths into build native sysroot which gets into sstate artifacts and an error is rightly generated

ERROR: xkeyboard-config-native-2.45-r0 do_populate_sysroot: sstate found an absolute path symlink /mnt/b/yoe/master/build/tmp/work/x86_64-linux/xkeyboard-config-native/2.45/sysroot-destdir/mnt/b/yoe/master/build/tmp/work/x86_64-linux/xkeyboard-config-native/2.45/recipe-sysroot-native/usr/share/X11/xkb pointing at /mnt/b/yoe/master/build/tmp/work/x86_64-linux/xkeyboard-config-native/2.45/recipe-sysroot-native/usr/share/xkeyboard-config-2. Please replace this with a relative link.
ERROR: xkeyboard-config-native-2.45-r0 do_populate_sysroot: Failing task due to absolute path symlinks

Turn these symlinks to be relative inside D which will reflect correclty without need for absolute path prefix

---
 meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb +1 -1
index 857ccc75160..5153b76d98b 100644
@@ -20,7 +20,7 @@ DEPENDS = "util-macros libxslt-native"
 
 FILES:${PN} += "${datadir}/X11/xkb ${datadir}/xkeyboard-config-2"
 
-inherit meson pkgconfig gettext python3native
+inherit meson pkgconfig gettext python3native relative_symlinks
 
 EXTRA_OEMESON += "-Dxorg-rules-symlinks=true"