From 21049b7dd9e07fc5320d8e28348d8e1b46dc5bc5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 26 Sep 2015 13:38:21 -0400 Subject: [PATCH] sys-devel/gdb: stop installing bfd/opcodes translations #528088 The binutils-libs package will install the canonical files for the various binutils libraries and that includes translations. Delete the copies in gdb until we can figure out how to localize them. --- sys-devel/gdb/{gdb-7.10.ebuild => gdb-7.10-r1.ebuild} | 8 ++++++++ sys-devel/gdb/gdb-9999.ebuild | 8 ++++++++ 2 files changed, 16 insertions(+) rename sys-devel/gdb/{gdb-7.10.ebuild => gdb-7.10-r1.ebuild} (96%) diff --git a/sys-devel/gdb/gdb-7.10.ebuild b/sys-devel/gdb/gdb-7.10-r1.ebuild similarity index 96% rename from sys-devel/gdb/gdb-7.10.ebuild rename to sys-devel/gdb/gdb-7.10-r1.ebuild index 5cd44b4cff8b..ec3031d7d1c2 100644 --- a/sys-devel/gdb/gdb-7.10.ebuild +++ b/sys-devel/gdb/gdb-7.10-r1.ebuild @@ -170,6 +170,14 @@ src_install() { use client && find "${ED}"/usr -name libiberty.a -delete cd "${S}" + # Delete translations that conflict with binutils-libs. #528088 + # Note: Should figure out how to store these in an internal gdb dir. + if use nls ; then + find "${ED}" \ + -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ + -delete + fi + # Don't install docs when building a cross-gdb if [[ ${CTARGET} != ${CHOST} ]] ; then rm -r "${ED}"/usr/share/{doc,info,locale} diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild index 5cd44b4cff8b..ec3031d7d1c2 100644 --- a/sys-devel/gdb/gdb-9999.ebuild +++ b/sys-devel/gdb/gdb-9999.ebuild @@ -170,6 +170,14 @@ src_install() { use client && find "${ED}"/usr -name libiberty.a -delete cd "${S}" + # Delete translations that conflict with binutils-libs. #528088 + # Note: Should figure out how to store these in an internal gdb dir. + if use nls ; then + find "${ED}" \ + -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \ + -delete + fi + # Don't install docs when building a cross-gdb if [[ ${CTARGET} != ${CHOST} ]] ; then rm -r "${ED}"/usr/share/{doc,info,locale} -- 2.26.2