]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
glib-2.0-native: Remove problematic path reference
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 May 2026 23:07:44 +0000 (00:07 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 May 2026 11:20:35 +0000 (12:20 +0100)
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>
meta/recipes-core/glib-2.0/glib.inc

index 349c33bd33ca6b0c19c10804b4ce3e287e188d50..7fcfd2bf38e404956269215508d6caae9410be7d 100644 (file)
@@ -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 () {