Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/ebuild-helpers/, man/, bin/
Date: Wed, 27 Mar 2013 08:58:57
Message-Id: 1364374716.11273a03c21fac1f2af89d89d6f2c1b9ba480043.zmedico@gentoo
1 commit: 11273a03c21fac1f2af89d89d6f2c1b9ba480043
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 27 08:58:36 2013 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 27 08:58:36 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=11273a03
7
8 Support RESTRICT=splitdebug
9
10 ---
11 bin/ebuild-helpers/prepstrip | 3 ++-
12 bin/repoman | 2 +-
13 man/ebuild.5 | 5 +++++
14 3 files changed, 8 insertions(+), 2 deletions(-)
15
16 diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip
17 index eda2212..66aa734 100755
18 --- a/bin/ebuild-helpers/prepstrip
19 +++ b/bin/ebuild-helpers/prepstrip
20 @@ -16,7 +16,7 @@ exp_tf() {
21 done
22 }
23 exp_tf FEATURES compressdebug installsources nostrip splitdebug xattr
24 -exp_tf RESTRICT binchecks installsources strip
25 +exp_tf RESTRICT binchecks installsources splitdebug strip
26
27 if ! ___eapi_has_prefix_variables; then
28 EPREFIX= ED=${D}
29 @@ -120,6 +120,7 @@ save_elf_sources() {
30 # Usage: save_elf_debug <elf> [splitdebug file]
31 save_elf_debug() {
32 ${FEATURES_splitdebug} || return 0
33 + ${RESTRICT_splitdebug} && return 0
34
35 # NOTE: Debug files must be installed in
36 # ${EPREFIX}/usr/lib/debug/${EPREFIX} (note that ${EPREFIX} occurs
37
38 diff --git a/bin/repoman b/bin/repoman
39 index a2be380..c55fb04 100755
40 --- a/bin/repoman
41 +++ b/bin/repoman
42 @@ -446,7 +446,7 @@ for x in missingvars:
43
44 valid_restrict = frozenset(["binchecks", "bindist",
45 "fetch", "installsources", "mirror",
46 - "primaryuri", "strip", "test", "userpriv"])
47 + "primaryuri", "splitdebug", "strip", "test", "userpriv"])
48
49 live_eclasses = frozenset([
50 "bzr",
51
52 diff --git a/man/ebuild.5 b/man/ebuild.5
53 index 7e858e0..749a3f3 100644
54 --- a/man/ebuild.5
55 +++ b/man/ebuild.5
56 @@ -676,6 +676,11 @@ files in \fBSRC_URI\fR will not be downloaded from the \fBGENTOO_MIRRORS\fR.
57 .I primaryuri
58 fetch from URIs in \fBSRC_URI\fR before \fBGENTOO_MIRRORS\fR.
59 .TP
60 +.I splitdebug
61 +Disables splitdebug for specific packages. This is for packages with
62 +binaries that trigger problems with splitdebug, such as file\-collisions
63 +between symlinks in /usr/lib/debug/.build-id (triggered by bundled libraries).
64 +.TP
65 .I strip
66 final binaries/libraries will not be stripped of debug symbols.
67 .TP