Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot
@ 2013-04-24 15:15 Phil Blundell
  0 siblings, 0 replies; only message in thread
From: Phil Blundell @ 2013-04-24 15:15 UTC (permalink / raw)
  To: openembedded-core

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
paths.

Signed-off-by: Phil Blundell <philb@gnu.org>
---
 meta/recipes-devtools/gdb/gdb-cross.inc |    2 ++
 1 file changed, 2 insertions(+)

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






^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-24 15:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 15:15 [PATCH] gdb-cross: Adjust ${datadir} to avoid file conflicts in sysroot Phil Blundell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox