diff mbox series

xkeyboard-config: Turn absolute symlinks into relative

Message ID 20250917204110.3420962-1-raj.khem@gmail.com
State New
Headers show
Series xkeyboard-config: Turn absolute symlinks into relative | expand

Commit Message

Khem Raj Sept. 17, 2025, 8:41 p.m. UTC
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

Suggested-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb
index 857ccc75160..5153b76d98b 100644
--- a/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb
+++ b/meta/recipes-graphics/xorg-lib/xkeyboard-config_2.45.bb
@@ -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"