1 |
commit: bc3f30eb173bbacabbbbac9f58d4dd6603631d61 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 1 21:11:50 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 1 22:00:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc3f30eb |
7 |
|
8 |
sys-libs/binutils-libs: bump up to 2.34 |
9 |
|
10 |
Package-Manager: Portage-2.3.86, Repoman-2.3.20 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
sys-libs/binutils-libs/Manifest | 2 + |
14 |
sys-libs/binutils-libs/binutils-libs-2.34.ebuild | 123 +++++++++++++++++++++++ |
15 |
2 files changed, 125 insertions(+) |
16 |
|
17 |
diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest |
18 |
index 3da38fd53fa..00d58647ea8 100644 |
19 |
--- a/sys-libs/binutils-libs/Manifest |
20 |
+++ b/sys-libs/binutils-libs/Manifest |
21 |
@@ -3,3 +3,5 @@ DIST binutils-2.32.tar.xz 20774880 BLAKE2B d1bdbd9c8487c091665c197974ce4bdf520b7 |
22 |
DIST binutils-2.33.1-patches-1.tar.xz 17944 BLAKE2B 811ad416fe9c059f645856a3123ed32303afe1d0f166a15cb6de0673b5494fdcc4c165da4a68eb7ab73f007618e3a97a5578c4b47de21e57fe501d6a21b6d595 SHA512 63b439637206d21e46d2b79383b38da2b28365a0fdea1f5ac3b665cd05e0b55cd1d7763c05567a5f7ae2c645d2ae639a27e465d535b928d9f8f0e6b94f31e1f7 |
23 |
DIST binutils-2.33.1-patches-2.tar.xz 18636 BLAKE2B 0e0757329b6a83aeff4f4c450c95e73fd48fcc89f83e63f294568632bee0972552cf2f57494352c5d9a7c16a51cdbc4108b38fa6028d4388c8e76046b3da9212 SHA512 d982f68d1f5fdb384309a2a1b7426bf840a90e7a85b37229b4223b62c36cab9dd9ec0c08382c85c68adf996dec21133df3180a2fc649363adae8645f8282f71d |
24 |
DIST binutils-2.33.1.tar.xz 21490848 BLAKE2B c336a8412938dc8c224f40a763a8bea9937cca0462a8fb80e62f14aabe590107fc061a3f4b9327e1f4652cb026384d36a91b4766d4d469d2d0680932874b638c SHA512 b7a6767c6c7ca6b5cafa7080e6820b7bb3a53b7148348c438d99905defbdf0d30c9744a484ee01c9441a8153901808513366b15ba9533e20c9673c262ade36ac |
25 |
+DIST binutils-2.34-patches-1.tar.xz 20388 BLAKE2B 8828505f62259a307de445357320827e7f6bc416a7f4c72140add505f62eef3928c7daec13be158b52c2a7a1d989f539025e4be6ec27ef80ede81477a42c5042 SHA512 951dffcc30ad5706dc48e71995217655c5d96472446ab66a357f19486b57d1868143a9809887eab7ba8c42c33124f8b37d3bab6618388ea8a08b4399d348a645 |
26 |
+DIST binutils-2.34.tar.xz 21637796 BLAKE2B 07dd23916a7d27f71c3f160c8c16abe2bd4fce294c738c665a012a3be6a87dbe8160d0c38740524f9025e01d438e99b2a94bcf9f9f79ee214f5dd033de8aad3d SHA512 2c7976939dcf5e8c5b7374cccd39bfe803b1bec73c6abfa0eb17c24e1942574c6bdb874c66a092a82adc443182eacd8a5a8001c19a76101f0c7ba40c27de0bbd |
27 |
|
28 |
diff --git a/sys-libs/binutils-libs/binutils-libs-2.34.ebuild b/sys-libs/binutils-libs/binutils-libs-2.34.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..8cd6943af76 |
31 |
--- /dev/null |
32 |
+++ b/sys-libs/binutils-libs/binutils-libs-2.34.ebuild |
33 |
@@ -0,0 +1,123 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PATCH_VER=1 |
40 |
+PATCH_DEV=slyfox |
41 |
+ |
42 |
+inherit eutils libtool toolchain-funcs multilib-minimal |
43 |
+ |
44 |
+MY_PN="binutils" |
45 |
+MY_P="${MY_PN}-${PV}" |
46 |
+PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} |
47 |
+PATCH_DEV=${PATCH_DEV:-slyfox} |
48 |
+ |
49 |
+DESCRIPTION="Core binutils libraries (libbfd, libopcodes, libiberty) for external packages" |
50 |
+HOMEPAGE="https://sourceware.org/binutils/" |
51 |
+SRC_URI="mirror://gnu/binutils/${MY_P}.tar.xz |
52 |
+ https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${MY_PN}-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz" |
53 |
+ |
54 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
55 |
+SLOT="0/${PV}" |
56 |
+IUSE="64-bit-bfd multitarget nls static-libs" |
57 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" |
58 |
+ |
59 |
+COMMON_DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" |
60 |
+DEPEND="${COMMON_DEPEND} |
61 |
+ nls? ( sys-devel/gettext )" |
62 |
+# Need a newer binutils-config that'll reset include/lib symlinks for us. |
63 |
+RDEPEND="${COMMON_DEPEND} |
64 |
+ >=sys-devel/binutils-config-5 |
65 |
+ nls? ( !<sys-devel/gdb-7.10-r1[nls] )" |
66 |
+ |
67 |
+S="${WORKDIR}/${MY_P}" |
68 |
+ |
69 |
+MULTILIB_WRAPPED_HEADERS=( |
70 |
+ /usr/include/bfd.h |
71 |
+) |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ if [[ ! -z ${PATCH_VER} ]] ; then |
75 |
+ # Use upstream patch to enable development mode |
76 |
+ rm -v "${WORKDIR}/patch"/0000-Gentoo-Git-is-development.patch || die |
77 |
+ |
78 |
+ einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}" |
79 |
+ eapply "${WORKDIR}/patch"/*.patch |
80 |
+ fi |
81 |
+ |
82 |
+ # Fix cross-compile relinking issue, bug #626402 |
83 |
+ elibtoolize |
84 |
+ |
85 |
+ default |
86 |
+} |
87 |
+ |
88 |
+pkgversion() { |
89 |
+ printf "Gentoo ${PVR}" |
90 |
+ [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}" |
91 |
+} |
92 |
+ |
93 |
+multilib_src_configure() { |
94 |
+ local myconf=( |
95 |
+ --enable-obsolete |
96 |
+ --enable-shared |
97 |
+ --enable-threads |
98 |
+ # Newer versions (>=2.24) make this an explicit option. #497268 |
99 |
+ --enable-install-libiberty |
100 |
+ --disable-werror |
101 |
+ --with-bugurl="https://bugs.gentoo.org/" |
102 |
+ --with-pkgversion="$(pkgversion)" |
103 |
+ $(use_enable static-libs static) |
104 |
+ # The binutils eclass enables this flag for all bi-arch builds, |
105 |
+ # but other tools often don't care about that support. Put it |
106 |
+ # beyond a flag if people really want it, but otherwise leave |
107 |
+ # it disabled as it can slow things down on 32bit arches. #438522 |
108 |
+ $(use_enable 64-bit-bfd) |
109 |
+ # This only disables building in the zlib subdir. |
110 |
+ # For binutils itself, it'll use the system version. #591516 |
111 |
+ --without-zlib |
112 |
+ --with-system-zlib |
113 |
+ # We only care about the libs, so disable programs. #528088 |
114 |
+ --disable-{binutils,etc,ld,gas,gold,gprof} |
115 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
116 |
+ --disable-{gdb,libdecnumber,readline,sim} |
117 |
+ # Strip out broken static link flags. |
118 |
+ # https://gcc.gnu.org/PR56750 |
119 |
+ --without-stage1-ldflags |
120 |
+ # We pull in all USE-flags that change ABI in an incompatible |
121 |
+ # way. #666100 |
122 |
+ # USE=multitarget change size of global arrays |
123 |
+ # USE=64-bit-bfd changes data structures of exported API |
124 |
+ --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st)-$(usex 64-bit-bfd 64 def) |
125 |
+ ) |
126 |
+ |
127 |
+ # mips can't do hash-style=gnu ... |
128 |
+ if [[ $(tc-arch) != mips ]] ; then |
129 |
+ myconf+=( --enable-default-hash-style=gnu ) |
130 |
+ fi |
131 |
+ |
132 |
+ use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
133 |
+ |
134 |
+ use nls \ |
135 |
+ && myconf+=( --without-included-gettext ) \ |
136 |
+ || myconf+=( --disable-nls ) |
137 |
+ |
138 |
+ ECONF_SOURCE=${S} \ |
139 |
+ econf "${myconf[@]}" |
140 |
+ |
141 |
+ # Prevent makeinfo from running as we don't build docs here. |
142 |
+ # bug #622652 |
143 |
+ sed -i \ |
144 |
+ -e '/^MAKEINFO/s:=.*:= true:' \ |
145 |
+ Makefile || die |
146 |
+} |
147 |
+ |
148 |
+multilib_src_install() { |
149 |
+ default |
150 |
+ # Provide libiberty.h directly. |
151 |
+ dosym libiberty/libiberty.h /usr/include/libiberty.h |
152 |
+} |
153 |
+ |
154 |
+multilib_src_install_all() { |
155 |
+ use static-libs || find "${ED}"/usr -name '*.la' -delete |
156 |
+} |