Patchwork gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot

mail settings
Submitter Phil Blundell
Date April 24, 2013, 3:15 p.m.
Message ID <1366816554.14512.45.camel@phil-desktop.brightsign>
Download mbox | patch
Permalink /patch/48747/
State Accepted
Commit 3e87aba1ee2ca0e39ba66fb7cba52e48df499c23
Headers show


Phil Blundell - April 24, 2013, 3:15 p.m.
GDB wants to install a bunch of files in ${datadir}/gdb/python/gdb
and ${datadir}/gdb/syscalls.  These pathnames are invariant with
TARGET_ARCH which means that if you build gdb multiple times for
different targets they will all try to write to the same location
and you get a lot of warning spew about manifest conflicts.

Prevent this by factoring the target specification into ${datadir}
so that different copies of GDB install their files into different

Signed-off-by: Phil Blundell <>
 meta/recipes-devtools/gdb/ |    2 ++
 1 file changed, 2 insertions(+)


diff --git a/meta/recipes-devtools/gdb/ b/meta/recipes-devtools/gdb/
index 33feb58..a92d032 100644
--- a/meta/recipes-devtools/gdb/
+++ b/meta/recipes-devtools/gdb/
@@ -10,3 +10,5 @@  GDBPROPREFIX = ""
 inherit cross
 inherit gettext
+datadir .= "/gdb-${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"