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