1 |
commit: f83b96090862935847fca846d82c7e93f61b0b1a |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 2 00:07:16 2017 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 2 00:07:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f83b9609 |
7 |
|
8 |
sys-libs/binutils-libs: version bump to 2.28.1, patchset 1.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
sys-libs/binutils-libs/Manifest | 2 + |
13 |
sys-libs/binutils-libs/binutils-libs-2.28.1.ebuild | 96 ++++++++++++++++++++++ |
14 |
2 files changed, 98 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest |
17 |
index d19ce933d9d..18f2ee864df 100644 |
18 |
--- a/sys-libs/binutils-libs/Manifest |
19 |
+++ b/sys-libs/binutils-libs/Manifest |
20 |
@@ -3,4 +3,6 @@ DIST binutils-2.25.1.tar.bz2 24163561 SHA256 b5b14added7d78a8d1ca70b5cb75fef57ce |
21 |
DIST binutils-2.27-patches-1.0.tar.xz 8852 SHA256 07be45786e1e56498aad2c52a43d4104ccd0ded3c6a84a930486bc418d7fa36d SHA512 489b5fff87886682d8e98eafa2f082e6dcf811d2a693b6c41d76bd1ac50815a6e7d26fb7c9e3811c2d8e0e1dc307557e6ffe46d1d0f7caeb581060cf14bda899 WHIRLPOOL cf73342292a6dd8450a420f62a6a28e1ae38eed2c0b62643619ac002f3e9233ba5a0df19deb862167e88bd2c4a7ef4e002fe4d76f971eba876014d145dc30171 |
22 |
DIST binutils-2.27.tar.bz2 26099568 SHA256 369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88 SHA512 cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12cc842822bfc402836be86f479660cef3791aa62f3753d8a1a6f564cb WHIRLPOOL d3204b4900529f697285fb1fe622ecc949c43f064e6b83a1cecb1ea8810a214842c729266c9a44537dc0a86d6d2b3ac100f54c721cc284e54f9d6feb90930d15 |
23 |
DIST binutils-2.28-patches-1.2.tar.xz 17572 SHA256 d3fd98b218b0469f216a65676fdc899b9d777ea2d2f4b83af3d7fa6bbd36ca41 SHA512 00453fc1e3290868c23e2ca32214b5229fca23d4a551e4e136a62946b584992e9ef3f3e07819e35fb4eb83f083145330078db2631d5a089da7b5129d234aa856 WHIRLPOOL e52ca6eb5cc03fb0c3ebe27366019d38628a88d949dff873dc646ea1354ec432080818ddb212a6e94148bee3b230288eb245a5472c9c6e6ae9a5bdd162578cc4 |
24 |
+DIST binutils-2.28.1-patches-1.0.tar.xz 19772 SHA256 50cfce6ef7f546dcdb983a8b632507b5cdd51095e4acf1f15bfcd68027d438a4 SHA512 c2c7d22e1013e79040c4dcb4d70649e78a070976ba3a4bc2ceb4805827b9d93eea1805c85db4fcb6b31be5218c3d7b42a4990437a7c01dc01fd7e9dedb606828 WHIRLPOOL 2369fce643cc9b83724b486521621d744de0eaf3d95fdd34c7f1c785bc400f3ed31ae6105001870f33539664d84dd9caae854725e20007f136929d2ece755247 |
25 |
+DIST binutils-2.28.1.tar.bz2 28120394 SHA256 6924999be62d4464458eb53c11f27277cfb63755df8c1cd47b8d15d02c1942ea SHA512 5ec5212497b0fa8324f6a0884c284cb71c01942bbd39356d1ae745a5c9d97274c10f9d9c723f4bef6f0217662dfcd0c36e4e955a7599b11217658dc7b97553eb WHIRLPOOL 5c616f719827e5da7db23e89c761323cd4828b4779e79c3983d3ea429bce57ed40219982c478237b4dd728b77bae0a6447d912d96490ed1f5fc279ba5fd73bc6 |
26 |
DIST binutils-2.28.tar.bz2 26556365 SHA256 6297433ee120b11b4b0a1c8f3512d7d73501753142ab9e2daa13c5a3edd32a72 SHA512 ede2e4e59a800260eea8c14eafbaee94e30abadafd5c419a3370f9f62213cf027d6400a1d4970b6958bd4d220e675dcd483a708107016e7abd5c99d7392ba8fd WHIRLPOOL 7fb876668c4fd8b10641fb8d831e7d23723ccb9b1051650c76a3a99696d37d120ef969e3c1cc144b0ffd765ef8e8698fe553c39cc65d0b9499a87d4886d6419d |
27 |
|
28 |
diff --git a/sys-libs/binutils-libs/binutils-libs-2.28.1.ebuild b/sys-libs/binutils-libs/binutils-libs-2.28.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..53813859e77 |
31 |
--- /dev/null |
32 |
+++ b/sys-libs/binutils-libs/binutils-libs-2.28.1.ebuild |
33 |
@@ -0,0 +1,96 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="5" |
38 |
+ |
39 |
+PATCHVER="1.0" |
40 |
+ |
41 |
+inherit eutils toolchain-funcs multilib-minimal |
42 |
+ |
43 |
+MY_PN="binutils" |
44 |
+MY_P="${MY_PN}-${PV}" |
45 |
+ |
46 |
+DESCRIPTION="Core binutils libraries (libbfd, libopcodes, libiberty) for external packages" |
47 |
+HOMEPAGE="https://sourceware.org/binutils/" |
48 |
+SRC_URI="mirror://gnu/binutils/${MY_P}.tar.bz2 |
49 |
+ mirror://gentoo/${MY_P}-patches-${PATCHVER}.tar.xz" |
50 |
+ |
51 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
52 |
+# The shared lib SONAMEs use the ${PV} in them. |
53 |
+SLOT="0/${PV}" |
54 |
+# KEYWORDS="alpha amd64 arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd -sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
55 |
+KEYWORDS="" |
56 |
+IUSE="64-bit-bfd multitarget nls static-libs" |
57 |
+ |
58 |
+COMMON_DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" |
59 |
+DEPEND="${COMMON_DEPEND} |
60 |
+ >=sys-apps/texinfo-4.7 |
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 |
+ EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
75 |
+} |
76 |
+ |
77 |
+pkgversion() { |
78 |
+ printf "Gentoo ${PVR}" |
79 |
+ [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}" |
80 |
+} |
81 |
+ |
82 |
+multilib_src_configure() { |
83 |
+ local myconf=( |
84 |
+ --enable-obsolete |
85 |
+ --enable-shared |
86 |
+ --enable-threads |
87 |
+ # Newer versions (>=2.24) make this an explicit option. #497268 |
88 |
+ --enable-install-libiberty |
89 |
+ --disable-werror |
90 |
+ --with-bugurl="https://bugs.gentoo.org/" |
91 |
+ --with-pkgversion="$(pkgversion)" |
92 |
+ $(use_enable static-libs static) |
93 |
+ # The binutils eclass enables this flag for all bi-arch builds, |
94 |
+ # but other tools often don't care about that support. Put it |
95 |
+ # beyond a flag if people really want it, but otherwise leave |
96 |
+ # it disabled as it can slow things down on 32bit arches. #438522 |
97 |
+ $(use_enable 64-bit-bfd) |
98 |
+ # This only disables building in the zlib subdir. |
99 |
+ # For binutils itself, it'll use the system version. #591516 |
100 |
+ --without-zlib |
101 |
+ --with-system-zlib |
102 |
+ # We only care about the libs, so disable programs. #528088 |
103 |
+ --disable-{binutils,etc,ld,gas,gold,gprof} |
104 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
105 |
+ --disable-{gdb,libdecnumber,readline,sim} |
106 |
+ # Strip out broken static link flags. |
107 |
+ # https://gcc.gnu.org/PR56750 |
108 |
+ --without-stage1-ldflags |
109 |
+ ) |
110 |
+ |
111 |
+ use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
112 |
+ |
113 |
+ use nls \ |
114 |
+ && myconf+=( --without-included-gettext ) \ |
115 |
+ || myconf+=( --disable-nls ) |
116 |
+ |
117 |
+ ECONF_SOURCE=${S} \ |
118 |
+ econf "${myconf[@]}" |
119 |
+} |
120 |
+ |
121 |
+multilib_src_install() { |
122 |
+ default |
123 |
+ # Provide libiberty.h directly. |
124 |
+ dosym libiberty/libiberty.h /usr/include/libiberty.h |
125 |
+} |
126 |
+ |
127 |
+multilib_src_install_all() { |
128 |
+ use static-libs || find "${ED}"/usr -name '*.la' -delete |
129 |
+} |