1 |
commit: a6f8fa331710b45c4755939b8e15d17e4639d327 |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 3 18:30:06 2017 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 3 18:30:38 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6f8fa33 |
7 |
|
8 |
sys-libs/binutils-libs: version bump to 2.28 |
9 |
|
10 |
sys-libs/binutils-libs/Manifest | 2 + |
11 |
sys-libs/binutils-libs/binutils-libs-2.28.ebuild | 94 ++++++++++++++++++++++++ |
12 |
2 files changed, 96 insertions(+) |
13 |
|
14 |
diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest |
15 |
index 89d042eaf7a..ef96c018250 100644 |
16 |
--- a/sys-libs/binutils-libs/Manifest |
17 |
+++ b/sys-libs/binutils-libs/Manifest |
18 |
@@ -2,3 +2,5 @@ DIST binutils-2.25.1-patches-1.1.tar.xz 18724 SHA256 3d4c0ab2d45d3a952f60246fa5a |
19 |
DIST binutils-2.25.1.tar.bz2 24163561 SHA256 b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22 SHA512 0b36dda0e6d32cd25613c0e64b56b28312515c54d6a159efd3db9a86717f114ab0a0a1f69d08975084d55713ebaeab64e4085c9b3d1c3fa86712869f80eb954d WHIRLPOOL daa804331ee880296c2fe29fd9b8a52cc695629d4bbe0b9889d96ffc54d330f00fac3f3cb12b3aaf6b7505521ef499c53760912cd7c9bb54f2d5e288224bd1eb |
20 |
DIST binutils-2.27-patches-1.0.tar.xz 8852 SHA256 07be45786e1e56498aad2c52a43d4104ccd0ded3c6a84a930486bc418d7fa36d SHA512 489b5fff87886682d8e98eafa2f082e6dcf811d2a693b6c41d76bd1ac50815a6e7d26fb7c9e3811c2d8e0e1dc307557e6ffe46d1d0f7caeb581060cf14bda899 WHIRLPOOL cf73342292a6dd8450a420f62a6a28e1ae38eed2c0b62643619ac002f3e9233ba5a0df19deb862167e88bd2c4a7ef4e002fe4d76f971eba876014d145dc30171 |
21 |
DIST binutils-2.27.tar.bz2 26099568 SHA256 369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88 SHA512 cf276f84935312361a2ca077e04d0b469d23a3aed979d8ba5d92ea590904ffb2c2e7ed12cc842822bfc402836be86f479660cef3791aa62f3753d8a1a6f564cb WHIRLPOOL d3204b4900529f697285fb1fe622ecc949c43f064e6b83a1cecb1ea8810a214842c729266c9a44537dc0a86d6d2b3ac100f54c721cc284e54f9d6feb90930d15 |
22 |
+DIST binutils-2.28-patches-1.0.tar.xz 8860 SHA256 4349c2fb3a351b57cf9403b2a97e5f89a43d94af6d9666ede27dc5fdfcbaa12a SHA512 4dea18c47b393cb764981a5c5e41131f03ff1d48ad97d806a6d9e20353b34edd6818903dc7e9d386778e0d2df0a664f78272e60b83c10b818319e3978ff5391d WHIRLPOOL f742438e00bd5862f6501e5aac7ea93c64f5a7f493b880d0cfd0b79e6f357781b6e317cd87e3100038426708c24a8e2c077ed2ae46e54fcf0172509da5950c09 |
23 |
+DIST binutils-2.28.tar.bz2 26556365 SHA256 6297433ee120b11b4b0a1c8f3512d7d73501753142ab9e2daa13c5a3edd32a72 SHA512 ede2e4e59a800260eea8c14eafbaee94e30abadafd5c419a3370f9f62213cf027d6400a1d4970b6958bd4d220e675dcd483a708107016e7abd5c99d7392ba8fd WHIRLPOOL 7fb876668c4fd8b10641fb8d831e7d23723ccb9b1051650c76a3a99696d37d120ef969e3c1cc144b0ffd765ef8e8698fe553c39cc65d0b9499a87d4886d6419d |
24 |
|
25 |
diff --git a/sys-libs/binutils-libs/binutils-libs-2.28.ebuild b/sys-libs/binutils-libs/binutils-libs-2.28.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..85c6abe7a8a |
28 |
--- /dev/null |
29 |
+++ b/sys-libs/binutils-libs/binutils-libs-2.28.ebuild |
30 |
@@ -0,0 +1,94 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="5" |
35 |
+ |
36 |
+PATCHVER="1.0" |
37 |
+ |
38 |
+inherit eutils toolchain-funcs multilib-minimal |
39 |
+ |
40 |
+MY_PN="binutils" |
41 |
+MY_P="${MY_PN}-${PV}" |
42 |
+ |
43 |
+DESCRIPTION="Core binutils libraries (libbfd, libopcodes, libiberty) for external packages" |
44 |
+HOMEPAGE="https://sourceware.org/binutils/" |
45 |
+SRC_URI="mirror://gnu/binutils/${MY_P}.tar.bz2 |
46 |
+ mirror://gentoo/${MY_P}-patches-${PATCHVER}.tar.xz" |
47 |
+ |
48 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
49 |
+# The shared lib SONAMEs use the ${PV} in them. |
50 |
+SLOT="0/${PV}" |
51 |
+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" |
52 |
+IUSE="64-bit-bfd multitarget nls static-libs" |
53 |
+ |
54 |
+COMMON_DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" |
55 |
+DEPEND="${COMMON_DEPEND} |
56 |
+ nls? ( sys-devel/gettext )" |
57 |
+# Need a newer binutils-config that'll reset include/lib symlinks for us. |
58 |
+RDEPEND="${COMMON_DEPEND} |
59 |
+ >=sys-devel/binutils-config-5 |
60 |
+ nls? ( !<sys-devel/gdb-7.10-r1[nls] )" |
61 |
+ |
62 |
+S="${WORKDIR}/${MY_P}" |
63 |
+ |
64 |
+MULTILIB_WRAPPED_HEADERS=( |
65 |
+ /usr/include/bfd.h |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch |
70 |
+} |
71 |
+ |
72 |
+pkgversion() { |
73 |
+ printf "Gentoo ${PVR}" |
74 |
+ [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}" |
75 |
+} |
76 |
+ |
77 |
+multilib_src_configure() { |
78 |
+ local myconf=( |
79 |
+ --enable-obsolete |
80 |
+ --enable-shared |
81 |
+ --enable-threads |
82 |
+ # Newer versions (>=2.24) make this an explicit option. #497268 |
83 |
+ --enable-install-libiberty |
84 |
+ --disable-werror |
85 |
+ --with-bugurl="https://bugs.gentoo.org/" |
86 |
+ --with-pkgversion="$(pkgversion)" |
87 |
+ $(use_enable static-libs static) |
88 |
+ # The binutils eclass enables this flag for all bi-arch builds, |
89 |
+ # but other tools often don't care about that support. Put it |
90 |
+ # beyond a flag if people really want it, but otherwise leave |
91 |
+ # it disabled as it can slow things down on 32bit arches. #438522 |
92 |
+ $(use_enable 64-bit-bfd) |
93 |
+ # This only disables building in the zlib subdir. |
94 |
+ # For binutils itself, it'll use the system version. #591516 |
95 |
+ --without-zlib |
96 |
+ --with-system-zlib |
97 |
+ # We only care about the libs, so disable programs. #528088 |
98 |
+ --disable-{binutils,etc,ld,gas,gold,gprof} |
99 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
100 |
+ --disable-{gdb,libdecnumber,readline,sim} |
101 |
+ # Strip out broken static link flags. |
102 |
+ # https://gcc.gnu.org/PR56750 |
103 |
+ --without-stage1-ldflags |
104 |
+ ) |
105 |
+ |
106 |
+ use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
107 |
+ |
108 |
+ use nls \ |
109 |
+ && myconf+=( --without-included-gettext ) \ |
110 |
+ || myconf+=( --disable-nls ) |
111 |
+ |
112 |
+ ECONF_SOURCE=${S} \ |
113 |
+ econf "${myconf[@]}" |
114 |
+} |
115 |
+ |
116 |
+multilib_src_install() { |
117 |
+ default |
118 |
+ # Provide libiberty.h directly. |
119 |
+ dosym libiberty/libiberty.h /usr/include/libiberty.h |
120 |
+} |
121 |
+ |
122 |
+multilib_src_install_all() { |
123 |
+ use static-libs || find "${ED}"/usr -name '*.la' -delete |
124 |
+} |