Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/
Date: Sat, 26 Sep 2015 18:15:24
Message-Id: 1443291306.21049b7dd9e07fc5320d8e28348d8e1b46dc5bc5.vapier@gentoo
1 commit: 21049b7dd9e07fc5320d8e28348d8e1b46dc5bc5
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 26 17:38:21 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 26 18:15:06 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21049b7d
7
8 sys-devel/gdb: stop installing bfd/opcodes translations #528088
9
10 The binutils-libs package will install the canonical files for the
11 various binutils libraries and that includes translations. Delete
12 the copies in gdb until we can figure out how to localize them.
13
14 sys-devel/gdb/{gdb-7.10.ebuild => gdb-7.10-r1.ebuild} | 8 ++++++++
15 sys-devel/gdb/gdb-9999.ebuild | 8 ++++++++
16 2 files changed, 16 insertions(+)
17
18 diff --git a/sys-devel/gdb/gdb-7.10.ebuild b/sys-devel/gdb/gdb-7.10-r1.ebuild
19 similarity index 96%
20 rename from sys-devel/gdb/gdb-7.10.ebuild
21 rename to sys-devel/gdb/gdb-7.10-r1.ebuild
22 index 5cd44b4..ec3031d 100644
23 --- a/sys-devel/gdb/gdb-7.10.ebuild
24 +++ b/sys-devel/gdb/gdb-7.10-r1.ebuild
25 @@ -170,6 +170,14 @@ src_install() {
26 use client && find "${ED}"/usr -name libiberty.a -delete
27 cd "${S}"
28
29 + # Delete translations that conflict with binutils-libs. #528088
30 + # Note: Should figure out how to store these in an internal gdb dir.
31 + if use nls ; then
32 + find "${ED}" \
33 + -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
34 + -delete
35 + fi
36 +
37 # Don't install docs when building a cross-gdb
38 if [[ ${CTARGET} != ${CHOST} ]] ; then
39 rm -r "${ED}"/usr/share/{doc,info,locale}
40
41 diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild
42 index 5cd44b4..ec3031d 100644
43 --- a/sys-devel/gdb/gdb-9999.ebuild
44 +++ b/sys-devel/gdb/gdb-9999.ebuild
45 @@ -170,6 +170,14 @@ src_install() {
46 use client && find "${ED}"/usr -name libiberty.a -delete
47 cd "${S}"
48
49 + # Delete translations that conflict with binutils-libs. #528088
50 + # Note: Should figure out how to store these in an internal gdb dir.
51 + if use nls ; then
52 + find "${ED}" \
53 + -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
54 + -delete
55 + fi
56 +
57 # Don't install docs when building a cross-gdb
58 if [[ ${CTARGET} != ${CHOST} ]] ; then
59 rm -r "${ED}"/usr/share/{doc,info,locale}