1 |
commit: e3db9ab7035d02c9e902615b8745b86cd2360638 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 7 19:43:06 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 7 19:43:06 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e3db9ab7 |
7 |
|
8 |
sys-devel/binutils-config: stop breaking our gcc installs |
9 |
|
10 |
Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6 |
11 |
|
12 |
sys-devel/binutils-config/Manifest | 2 - |
13 |
.../binutils-config/binutils-config-5-r03.1.ebuild | 78 ---------------------- |
14 |
...r03.2.ebuild => binutils-config-5-r03.5.ebuild} | 9 +-- |
15 |
sys-devel/binutils-config/files/binutils-config-5 | 7 +- |
16 |
4 files changed, 10 insertions(+), 86 deletions(-) |
17 |
|
18 |
diff --git a/sys-devel/binutils-config/Manifest b/sys-devel/binutils-config/Manifest |
19 |
index 290abb8cfc..a28d45bba6 100644 |
20 |
--- a/sys-devel/binutils-config/Manifest |
21 |
+++ b/sys-devel/binutils-config/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST binutils-config-ldwrapper-5.3.1.c 8342 BLAKE2B 18658a8188acfcd7494981bd60f53590f5610c7ffd9173f223da740c09acd9ed40aaf911faa6f9a517e5e8779cbaaea9d4398679b7a3037655a7994d9c319345 SHA512 af21c1b9bb465990e8490641023403ec27e31bd69f94fc86572392285a540ddc25d59fd8f682c0cb2d2a84c5e33fea08bd0ec2cb52861147075ccfd5e18067b0 |
24 |
-DIST binutils-config-ldwrapper-5.3.2.c 11791 BLAKE2B 7284c1f201b581b87a3dccfd9c572e0e03fa81af1c72fcd4edce15c53c04329316aa20a1135f7b728e35b3551ebb418eacc599da6a4803924dfddf7fbccaf1be SHA512 5e0917d50ba1cb0daee71bdd225809579bfc0a129c7bed234346f17a21aec6a0cddde35d5bc598924e840c45d6f9e738fd09f969904ca5df6041d38e5e0f0c2e |
25 |
DIST binutils-config-ldwrapper-5.3.4.c 13467 BLAKE2B 132c497c59c1315c4d9e85c842fa5636aac5d96aa2db69e1f677c31cd8a509653589c178058285c4e2e72d5095734f6849969f9ff99edfe1794c69733b60047c SHA512 cd4f33e37b2cd9e66d2e80aec28bec56e3d5383f15018b20c1afccd00e74d5f8ac2c6c2d8dde0de4be36aeec1237e2cc9b07326bceb24b2ca819e54c65ae6478 |
26 |
|
27 |
diff --git a/sys-devel/binutils-config/binutils-config-5-r03.1.ebuild b/sys-devel/binutils-config/binutils-config-5-r03.1.ebuild |
28 |
deleted file mode 100644 |
29 |
index c42663d6d1..0000000000 |
30 |
--- a/sys-devel/binutils-config/binutils-config-5-r03.1.ebuild |
31 |
+++ /dev/null |
32 |
@@ -1,78 +0,0 @@ |
33 |
-# Copyright 1999-2017 Gentoo Foundation |
34 |
-# Distributed under the terms of the GNU General Public License v2 |
35 |
- |
36 |
-EAPI="5" |
37 |
- |
38 |
-inherit eutils prefix |
39 |
- |
40 |
-DESCRIPTION="Utility to change the binutils version being used" |
41 |
-HOMEPAGE="https://www.gentoo.org/" |
42 |
-GIT_REV="d469b099b5e8aed45ff2edf78f91822b805440d3" |
43 |
-WRAPPER_REV="${PV}.3.1" |
44 |
-SRC_URI="https://gitweb.gentoo.org/repo/proj/prefix.git/plain/sys-devel/binutils-config/files/ldwrapper.c?id=${GIT_REV} -> ${PN}-ldwrapper-${WRAPPER_REV}.c" |
45 |
- |
46 |
-LICENSE="GPL-2" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
-IUSE="" |
50 |
- |
51 |
-# We also RDEPEND on sys-apps/findutils which is in base @system |
52 |
-RDEPEND="sys-apps/gentoo-functions |
53 |
- !<app-admin/eselect-1.4.5" |
54 |
- |
55 |
-S=${WORKDIR} |
56 |
- |
57 |
-# NOTE: the ld wrapper is only enabled on rpath versions of prefix. |
58 |
-src_prepare() { |
59 |
- cp "${FILESDIR}"/${PN}-${PV} ./${PN} || die |
60 |
- if use prefix-guest; then |
61 |
- epatch "${FILESDIR}/${PN}-5-ldwrapper.patch" |
62 |
- fi |
63 |
- eprefixify ${PN} |
64 |
-} |
65 |
- |
66 |
-src_configure() { |
67 |
- : |
68 |
-} |
69 |
- |
70 |
-src_compile() { |
71 |
- use prefix-guest || return |
72 |
- local args=( |
73 |
- $(tc-getCC) |
74 |
- ${CPPFLAGS} |
75 |
- ${CFLAGS} |
76 |
- -o ldwrapper "${DISTDIR}"/${PN}-ldwrapper-${WRAPPER_REV}.c |
77 |
- -DEPREFIX=\"${EPREFIX}\" |
78 |
- -DCHOST=\"${CHOST}\" |
79 |
- $([[ ${CHOST} == *-darwin* ]] && echo -DTARGET_DARWIN) |
80 |
- $([[ ${CHOST} == *-aix* ]] && echo -DTARGET_AIX) |
81 |
- ${LDFLAGS} |
82 |
- ) |
83 |
- echo ${args[*]} |
84 |
- "${args[@]}" || die |
85 |
-} |
86 |
- |
87 |
-src_install() { |
88 |
- dobin ${PN} |
89 |
- use prefix && eprefixify "${ED}"/usr/bin/${PN} |
90 |
- sed -i "s:@PV@:${PVR}:g" "${ED}"/usr/bin/${PN} || die |
91 |
- doman "${FILESDIR}"/${PN}.8 |
92 |
- |
93 |
- dodir /usr/$(get_libdir)/misc/binutils-config |
94 |
- mv "${S}"/ldwrapper "${ED}"/usr/$(get_libdir)/misc/binutils-config/ |
95 |
- |
96 |
- insinto /usr/share/eselect/modules |
97 |
- doins "${FILESDIR}"/binutils.eselect |
98 |
-} |
99 |
- |
100 |
-pkg_preinst() { |
101 |
- # Force a refresh when upgrading from an older version that symlinked |
102 |
- # in all the libs & includes that binutils-libs handles. #528088 |
103 |
- if has_version "<${CATEGORY}/${PN}-5" ; then |
104 |
- local bc current |
105 |
- bc="${ED}/usr/bin/binutils-config" |
106 |
- if current=$("${bc}" -c) ; then |
107 |
- "${bc}" "${current}" |
108 |
- fi |
109 |
- fi |
110 |
-} |
111 |
|
112 |
diff --git a/sys-devel/binutils-config/binutils-config-5-r03.2.ebuild b/sys-devel/binutils-config/binutils-config-5-r03.5.ebuild |
113 |
similarity index 93% |
114 |
rename from sys-devel/binutils-config/binutils-config-5-r03.2.ebuild |
115 |
rename to sys-devel/binutils-config/binutils-config-5-r03.5.ebuild |
116 |
index f6ea065833..a00860e6b2 100644 |
117 |
--- a/sys-devel/binutils-config/binutils-config-5-r03.2.ebuild |
118 |
+++ b/sys-devel/binutils-config/binutils-config-5-r03.5.ebuild |
119 |
@@ -1,14 +1,14 @@ |
120 |
-# Copyright 1999-2017 Gentoo Foundation |
121 |
+# Copyright 1999-2018 Gentoo Foundation |
122 |
# Distributed under the terms of the GNU General Public License v2 |
123 |
|
124 |
-EAPI="5" |
125 |
+EAPI="6" |
126 |
|
127 |
inherit eutils prefix |
128 |
|
129 |
DESCRIPTION="Utility to change the binutils version being used" |
130 |
HOMEPAGE="https://www.gentoo.org/" |
131 |
-GIT_REV="e30f557eb73bff37366a44ebbbf4efdc0c616c58" |
132 |
-WRAPPER_REV="${PV}.3.2" |
133 |
+GIT_REV="edc0d44f70c27daebcc080ac5d08e8e191bccd95" |
134 |
+WRAPPER_REV="${PV}.3.4" |
135 |
SRC_URI="https://gitweb.gentoo.org/repo/proj/prefix.git/plain/sys-devel/binutils-config/files/ldwrapper.c?id=${GIT_REV} -> ${PN}-ldwrapper-${WRAPPER_REV}.c" |
136 |
|
137 |
LICENSE="GPL-2" |
138 |
@@ -29,6 +29,7 @@ src_prepare() { |
139 |
epatch "${FILESDIR}/${PN}-5-ldwrapper.patch" |
140 |
fi |
141 |
eprefixify ${PN} |
142 |
+ eapply_user |
143 |
} |
144 |
|
145 |
src_configure() { |
146 |
|
147 |
diff --git a/sys-devel/binutils-config/files/binutils-config-5 b/sys-devel/binutils-config/files/binutils-config-5 |
148 |
index e6c5fac002..46eb2b21c4 100755 |
149 |
--- a/sys-devel/binutils-config/files/binutils-config-5 |
150 |
+++ b/sys-devel/binutils-config/files/binutils-config-5 |
151 |
@@ -1,5 +1,5 @@ |
152 |
#!/bin/bash |
153 |
-# Copyright 1999-2017 Gentoo Foundation |
154 |
+# Copyright 1999-2018 Gentoo Foundation |
155 |
# Distributed under the terms of the GNU General Public License v2 |
156 |
|
157 |
# Format of /etc/env.d/binutils/: |
158 |
@@ -159,7 +159,10 @@ switch_profile() { |
159 |
mkdir -p "${dstlib}" |
160 |
rm -rf "${ROOT}/${BINPATH_LINKS}"/ldscripts |
161 |
atomic_ln "${LIBPATH}/ldscripts" "${dstlib}" "ldscripts" |
162 |
- find -L "${dstlib}" -xtype l -name 'lib*' -exec rm -f {} + |
163 |
+ # PREFIX LOCAL: we have gcc under dstlib here, and wiping symlinks |
164 |
+ # is a very bad idea there, or our symlinked sonames disappear! |
165 |
+ find -L "${dstlib}"/ldscripts -xtype l -name 'lib*' -exec rm -f {} + |
166 |
+ # END PREFIX LOCAL |
167 |
|
168 |
# |
169 |
# Clean out old generated include symlinks |