diff mbox series

[wrynose,34/36] glib-2.0-native: Remove problematic path reference

Message ID 4d1ad9324758d2707ad7dc3b808c03d559c5ffeb.1781960051.git.yoann.congal@smile.fr
State New
Headers show
Series [wrynose,01/36] gcc: Upgrade GCC to 15.3 release | expand

Commit Message

Yoann Congal June 20, 2026, 12:59 p.m. UTC
From: Richard Purdie <richard.purdie@linuxfoundation.org>

The gdb helper scripts are installed to a path that matches the installed
binary path. Whilst technically correct, we relocate native tools and this
path isn't relocated correctly.

The paths mean the build directory leaks into sstate objects and native
sstate objects can have differing path contents as a result, which causes
problems.

Whilst we could relocate it, gdb would not be searching in these paths for
helpers anyway so the tools aren't needed and we can simply remove them in
the native case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 117ed64803dc2c8176125835b2bbcc08225f45da)
[YC: This is part of the fix for [YOCTO #16281]]
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 meta/recipes-core/glib-2.0/glib.inc | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index ae40b7f41f3..dee94ec0600 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -124,6 +124,8 @@  do_install:append () {
 do_install:append:class-native () {
 	# Link gio-querymodules into ${bindir} as otherwise tools like meson won't find it
         ln -rs ${D}${libexecdir}/gio-querymodules ${D}${bindir}
+	# Remove gdb plugins as we'd never use them for native and they encode system build paths into their location
+	rm ${D}${datadir}/gdb -rf
 }
 
 do_install:append:class-target () {