Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/
Date: Sun, 01 Jul 2018 20:37:12
Message-Id: 1530477418.e3a0ad152f42c3f4cf02a47d37116320fcae1a48.slyfox@gentoo
1 commit: e3a0ad152f42c3f4cf02a47d37116320fcae1a48
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 1 20:36:48 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 1 20:36:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3a0ad15
7
8 sys-devel/gdb: sync live ebuild with 8.1-r2
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 sys-devel/gdb/gdb-9999.ebuild | 23 +++++++++++++++++------
13 1 file changed, 17 insertions(+), 6 deletions(-)
14
15 diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild
16 index 69024483547..6795087ec18 100644
17 --- a/sys-devel/gdb/gdb-9999.ebuild
18 +++ b/sys-devel/gdb/gdb-9999.ebuild
19 @@ -68,8 +68,10 @@ REQUIRED_USE="
20 || ( client server )
21 "
22
23 -RDEPEND="server? ( !dev-util/gdbserver )
24 +RDEPEND="
25 + server? ( !dev-util/gdbserver )
26 client? (
27 + dev-libs/mpfr:0=
28 >=sys-libs/ncurses-5.2-r2:0=
29 sys-libs/readline:0=
30 lzma? ( app-arch/xz-utils )
31 @@ -167,6 +169,11 @@ src_configure() {
32 $(use_with python python "${EPYTHON}")
33 )
34 fi
35 + if use sparc-solaris || use x86-solaris ; then
36 + # disable largefile support
37 + # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html
38 + myconf+=( --disable-largefile )
39 + fi
40
41 econf "${myconf[@]}"
42 }
43 @@ -176,22 +183,26 @@ src_test() {
44 }
45
46 src_install() {
47 - use server && ! use client && cd gdb/gdbserver
48 + if use server && ! use client; then
49 + cd gdb/gdbserver || die
50 + fi
51 default
52 - use client && find "${ED}"/usr -name libiberty.a -delete
53 - cd "${S}"
54 + if use client; then
55 + find "${ED}"/usr -name libiberty.a -delete || die
56 + fi
57 + cd "${S}" || die
58
59 # Delete translations that conflict with binutils-libs. #528088
60 # Note: Should figure out how to store these in an internal gdb dir.
61 if use nls ; then
62 find "${ED}" \
63 -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
64 - -delete
65 + -delete || die
66 fi
67
68 # Don't install docs when building a cross-gdb
69 if [[ ${CTARGET} != ${CHOST} ]] ; then
70 - rm -r "${ED}"/usr/share/{doc,info,locale}
71 + rm -rf "${ED}"/usr/share/{doc,info,locale} || die
72 local f
73 for f in "${ED}"/usr/share/man/*/* ; do
74 if [[ ${f##*/} != ${CTARGET}-* ]] ; then