1 |
commit: b87b13c3b0edf5ed13942b6f0357777c16314f6b |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 28 14:22:30 2018 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 28 14:23:10 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b87b13c3 |
7 |
|
8 |
sys-libs/binutils-libs: Version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.20, Repoman-2.3.6 |
11 |
|
12 |
sys-libs/binutils-libs/Manifest | 2 + |
13 |
sys-libs/binutils-libs/binutils-libs-2.30.ebuild | 106 +++++++++++++++++++++++ |
14 |
2 files changed, 108 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest |
17 |
index 3f097f3fa0c..9ebac18fe17 100644 |
18 |
--- a/sys-libs/binutils-libs/Manifest |
19 |
+++ b/sys-libs/binutils-libs/Manifest |
20 |
@@ -6,3 +6,5 @@ DIST binutils-2.28.1-patches-1.0.tar.xz 19772 BLAKE2B 146b393b49ba868c7c064c5827 |
21 |
DIST binutils-2.28.1.tar.bz2 28120394 BLAKE2B 3a0ed2bcf0c859638546b7460d9e6f0a55518402ff0c65c90ce462a318f5ae6690961616d188ce6cf0271c9f2fb8b7902782d32cf0e711068c53d3d06956d89e SHA512 5ec5212497b0fa8324f6a0884c284cb71c01942bbd39356d1ae745a5c9d97274c10f9d9c723f4bef6f0217662dfcd0c36e4e955a7599b11217658dc7b97553eb |
22 |
DIST binutils-2.29.1-patches-2.tar.xz 18528 BLAKE2B 514496d6c9609362782d66b6cecbe3fe617f96dfb86e174a80d0b9113cbd4fce9d760fa61660ba2cfafbe1e482e955391cb8d3ef78d2c166c82796416a7ee106 SHA512 b60a3af9cd6a681f32a59fc4a30602ee1290f75cc93c8ad38ab0de17a7f30538a751b801dbaf079e3d514b9671e34e91742c4c9c953a8c9794505b571b7e80f0 |
23 |
DIST binutils-2.29.1.tar.bz2 29123355 BLAKE2B 83de518a27bae0f13c57b1979493dd7f7cabae424cff5e8495d1f064da24b6ef9e1c19d1d1adad2dca7142372782023f66b4b4223170a49b96ba3834266fe878 SHA512 4063d34555526922376ccceb3f14b43e287442e82a8038cf50f4f51ad97d438c672c0e310ca4b856c9aff5aa9911073e256e8298a7a3f1844eeb60b90d955592 |
24 |
+DIST binutils-2.30-patches-1.tar.xz 13884 BLAKE2B 86d160144e4ae3213838ccd07d008a96f210dbe8d894f2043420bd0003f8e0611564f77dadf60780da61278bbac41130922703fef69ba8ac451bcae5d9c65cf4 SHA512 cf38328bac920c1159e73727a9bb46bd462fa60650c90ee8a3d6221d447c678fdd79c6886efc52e35897d535dd717c1dc363bcb3f201aacd15ace078694456da |
25 |
+DIST binutils-2.30.tar.xz 20286700 BLAKE2B 2dd5436a15a601011a1950e6082ec00082f5916fb82ce95ceab424fd8dc19f6daa7ac32a149f222ccdcc603354165cc206fde070eaa44fe2cc5e57486efc7868 SHA512 e747ea20d8d79fcd21b9d9f6695059caa7189d60f19256da398e34b789fea9a133c32b192e9693b5828d27683739b0198431bf8b3e39fb3b04884cf89d9aa839 |
26 |
|
27 |
diff --git a/sys-libs/binutils-libs/binutils-libs-2.30.ebuild b/sys-libs/binutils-libs/binutils-libs-2.30.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..37d5be63f2f |
30 |
--- /dev/null |
31 |
+++ b/sys-libs/binutils-libs/binutils-libs-2.30.ebuild |
32 |
@@ -0,0 +1,106 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PATCHVER=1 |
39 |
+ |
40 |
+inherit eutils toolchain-funcs multilib-minimal |
41 |
+ |
42 |
+MY_PN="binutils" |
43 |
+MY_P="${MY_PN}-${PV}" |
44 |
+PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} |
45 |
+PATCH_DEV=${PATCH_DEV:-dilfridge} |
46 |
+ |
47 |
+DESCRIPTION="Core binutils libraries (libbfd, libopcodes, libiberty) for external packages" |
48 |
+HOMEPAGE="https://sourceware.org/binutils/" |
49 |
+SRC_URI="mirror://gnu/binutils/${MY_P}.tar.xz |
50 |
+ mirror://gentoo/${MY_PN}-${PATCH_BINUTILS_VER}-patches-${PATCHVER}.tar.xz" |
51 |
+ |
52 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
53 |
+# The shared lib SONAMEs use the ${PV} in them. |
54 |
+SLOT="0/${PV}" |
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 |
+ if [[ ! -z ${PATCH_VER} ]] ; then |
75 |
+ einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}" |
76 |
+ eapply "${WORKDIR}/patch"/*.patch |
77 |
+ fi |
78 |
+ default |
79 |
+} |
80 |
+ |
81 |
+pkgversion() { |
82 |
+ printf "Gentoo ${PVR}" |
83 |
+ [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}" |
84 |
+} |
85 |
+ |
86 |
+multilib_src_configure() { |
87 |
+ local myconf=( |
88 |
+ --enable-obsolete |
89 |
+ --enable-shared |
90 |
+ --enable-threads |
91 |
+ # Newer versions (>=2.24) make this an explicit option. #497268 |
92 |
+ --enable-install-libiberty |
93 |
+ --disable-werror |
94 |
+ --with-bugurl="https://bugs.gentoo.org/" |
95 |
+ --with-pkgversion="$(pkgversion)" |
96 |
+ $(use_enable static-libs static) |
97 |
+ # The binutils eclass enables this flag for all bi-arch builds, |
98 |
+ # but other tools often don't care about that support. Put it |
99 |
+ # beyond a flag if people really want it, but otherwise leave |
100 |
+ # it disabled as it can slow things down on 32bit arches. #438522 |
101 |
+ $(use_enable 64-bit-bfd) |
102 |
+ # This only disables building in the zlib subdir. |
103 |
+ # For binutils itself, it'll use the system version. #591516 |
104 |
+ --without-zlib |
105 |
+ --with-system-zlib |
106 |
+ # We only care about the libs, so disable programs. #528088 |
107 |
+ --disable-{binutils,etc,ld,gas,gold,gprof} |
108 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
109 |
+ --disable-{gdb,libdecnumber,readline,sim} |
110 |
+ # Strip out broken static link flags. |
111 |
+ # https://gcc.gnu.org/PR56750 |
112 |
+ --without-stage1-ldflags |
113 |
+ ) |
114 |
+ |
115 |
+ # mips can't do hash-style=gnu ... |
116 |
+ if [[ $(tc-arch) != mips ]] ; then |
117 |
+ myconf+=( --enable-default-hash-style=gnu ) |
118 |
+ fi |
119 |
+ |
120 |
+ use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
121 |
+ |
122 |
+ use nls \ |
123 |
+ && myconf+=( --without-included-gettext ) \ |
124 |
+ || myconf+=( --disable-nls ) |
125 |
+ |
126 |
+ ECONF_SOURCE=${S} \ |
127 |
+ econf "${myconf[@]}" |
128 |
+} |
129 |
+ |
130 |
+multilib_src_install() { |
131 |
+ default |
132 |
+ # Provide libiberty.h directly. |
133 |
+ dosym libiberty/libiberty.h /usr/include/libiberty.h |
134 |
+} |
135 |
+ |
136 |
+multilib_src_install_all() { |
137 |
+ use static-libs || find "${ED}"/usr -name '*.la' -delete |
138 |
+} |