1 |
commit: 97eeefa14525993fb698c164a716268ac96a75d5 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 12 21:04:26 2018 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 12 21:06:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97eeefa1 |
7 |
|
8 |
sys-libs/binutils-libs: Revision bump, patchset 3 |
9 |
|
10 |
Few upstream commits. Mostly a re-do of the Gentoo-specific |
11 |
testsuite patches. |
12 |
|
13 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
14 |
|
15 |
sys-libs/binutils-libs/Manifest | 1 + |
16 |
.../binutils-libs/binutils-libs-2.30-r3.ebuild | 107 +++++++++++++++++++++ |
17 |
2 files changed, 108 insertions(+) |
18 |
|
19 |
diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest |
20 |
index 561ed50d9db..33489ea2951 100644 |
21 |
--- a/sys-libs/binutils-libs/Manifest |
22 |
+++ b/sys-libs/binutils-libs/Manifest |
23 |
@@ -7,4 +7,5 @@ DIST binutils-2.28.1.tar.bz2 28120394 BLAKE2B 3a0ed2bcf0c859638546b7460d9e6f0a55 |
24 |
DIST binutils-2.29.1-patches-2.tar.xz 18528 BLAKE2B 514496d6c9609362782d66b6cecbe3fe617f96dfb86e174a80d0b9113cbd4fce9d760fa61660ba2cfafbe1e482e955391cb8d3ef78d2c166c82796416a7ee106 SHA512 b60a3af9cd6a681f32a59fc4a30602ee1290f75cc93c8ad38ab0de17a7f30538a751b801dbaf079e3d514b9671e34e91742c4c9c953a8c9794505b571b7e80f0 |
25 |
DIST binutils-2.29.1.tar.bz2 29123355 BLAKE2B 83de518a27bae0f13c57b1979493dd7f7cabae424cff5e8495d1f064da24b6ef9e1c19d1d1adad2dca7142372782023f66b4b4223170a49b96ba3834266fe878 SHA512 4063d34555526922376ccceb3f14b43e287442e82a8038cf50f4f51ad97d438c672c0e310ca4b856c9aff5aa9911073e256e8298a7a3f1844eeb60b90d955592 |
26 |
DIST binutils-2.30-patches-2.tar.xz 490272 BLAKE2B a28a5b5bb8faa33fec269f2c69d6ed0e4e7d5a9169861aa4b3c45511794e1e749c216862a8258c2029f1b40c511dcb2a0aeaecda57e75d52418f10d6f345718f SHA512 1686d5b58ee968f2000647acab2bee4c263d1c85fd43fed8c820fccfc0d7024a01211e7853cd5ce452fa90da500bc17309edf6dbc901c7fd6fc7b3e3d6f42581 |
27 |
+DIST binutils-2.30-patches-3.tar.xz 548804 BLAKE2B 428a1750233ae3f019e20cb5ed1d8e6fe6455181e8f5961dbfe7b66493d1c42050f889e45c02c1fc1a84d545c9e61f81ad6ffd5afc0b1099a702ccc7637c3abe SHA512 c91e902d1d9fc2e9782df04c93173c3207c771f1c063e2ff12c9336593c954ea3f1b2474a8fc045927d72fe18f7401874059599d100c4a1fd152081f05913d03 |
28 |
DIST binutils-2.30.tar.xz 20286700 BLAKE2B 2dd5436a15a601011a1950e6082ec00082f5916fb82ce95ceab424fd8dc19f6daa7ac32a149f222ccdcc603354165cc206fde070eaa44fe2cc5e57486efc7868 SHA512 e747ea20d8d79fcd21b9d9f6695059caa7189d60f19256da398e34b789fea9a133c32b192e9693b5828d27683739b0198431bf8b3e39fb3b04884cf89d9aa839 |
29 |
|
30 |
diff --git a/sys-libs/binutils-libs/binutils-libs-2.30-r3.ebuild b/sys-libs/binutils-libs/binutils-libs-2.30-r3.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..c8cf60752c4 |
33 |
--- /dev/null |
34 |
+++ b/sys-libs/binutils-libs/binutils-libs-2.30-r3.ebuild |
35 |
@@ -0,0 +1,107 @@ |
36 |
+# Copyright 1999-2018 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+PATCH_VER=3 |
42 |
+ |
43 |
+inherit eutils toolchain-funcs multilib-minimal |
44 |
+ |
45 |
+MY_PN="binutils" |
46 |
+MY_P="${MY_PN}-${PV}" |
47 |
+PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}} |
48 |
+PATCH_DEV=${PATCH_DEV:-dilfridge} |
49 |
+ |
50 |
+DESCRIPTION="Core binutils libraries (libbfd, libopcodes, libiberty) for external packages" |
51 |
+HOMEPAGE="https://sourceware.org/binutils/" |
52 |
+SRC_URI="mirror://gnu/binutils/${MY_P}.tar.xz |
53 |
+ mirror://gentoo/${MY_PN}-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz" |
54 |
+ |
55 |
+LICENSE="|| ( GPL-3 LGPL-3 )" |
56 |
+# The shared lib SONAMEs use the ${PV} in them. |
57 |
+SLOT="0/${PV}" |
58 |
+#KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
59 |
+KEYWORDS="" |
60 |
+IUSE="64-bit-bfd multitarget nls static-libs" |
61 |
+ |
62 |
+COMMON_DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" |
63 |
+DEPEND="${COMMON_DEPEND} |
64 |
+ >=sys-apps/texinfo-4.7 |
65 |
+ nls? ( sys-devel/gettext )" |
66 |
+# Need a newer binutils-config that'll reset include/lib symlinks for us. |
67 |
+RDEPEND="${COMMON_DEPEND} |
68 |
+ >=sys-devel/binutils-config-5 |
69 |
+ nls? ( !<sys-devel/gdb-7.10-r1[nls] )" |
70 |
+ |
71 |
+S="${WORKDIR}/${MY_P}" |
72 |
+ |
73 |
+MULTILIB_WRAPPED_HEADERS=( |
74 |
+ /usr/include/bfd.h |
75 |
+) |
76 |
+ |
77 |
+src_prepare() { |
78 |
+ if [[ ! -z ${PATCH_VER} ]] ; then |
79 |
+ einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}" |
80 |
+ eapply "${WORKDIR}/patch"/*.patch |
81 |
+ fi |
82 |
+ default |
83 |
+} |
84 |
+ |
85 |
+pkgversion() { |
86 |
+ printf "Gentoo ${PVR}" |
87 |
+ [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}" |
88 |
+} |
89 |
+ |
90 |
+multilib_src_configure() { |
91 |
+ local myconf=( |
92 |
+ --enable-obsolete |
93 |
+ --enable-shared |
94 |
+ --enable-threads |
95 |
+ # Newer versions (>=2.24) make this an explicit option. #497268 |
96 |
+ --enable-install-libiberty |
97 |
+ --disable-werror |
98 |
+ --with-bugurl="https://bugs.gentoo.org/" |
99 |
+ --with-pkgversion="$(pkgversion)" |
100 |
+ $(use_enable static-libs static) |
101 |
+ # The binutils eclass enables this flag for all bi-arch builds, |
102 |
+ # but other tools often don't care about that support. Put it |
103 |
+ # beyond a flag if people really want it, but otherwise leave |
104 |
+ # it disabled as it can slow things down on 32bit arches. #438522 |
105 |
+ $(use_enable 64-bit-bfd) |
106 |
+ # This only disables building in the zlib subdir. |
107 |
+ # For binutils itself, it'll use the system version. #591516 |
108 |
+ --without-zlib |
109 |
+ --with-system-zlib |
110 |
+ # We only care about the libs, so disable programs. #528088 |
111 |
+ --disable-{binutils,etc,ld,gas,gold,gprof} |
112 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
113 |
+ --disable-{gdb,libdecnumber,readline,sim} |
114 |
+ # Strip out broken static link flags. |
115 |
+ # https://gcc.gnu.org/PR56750 |
116 |
+ --without-stage1-ldflags |
117 |
+ ) |
118 |
+ |
119 |
+ # mips can't do hash-style=gnu ... |
120 |
+ if [[ $(tc-arch) != mips ]] ; then |
121 |
+ myconf+=( --enable-default-hash-style=gnu ) |
122 |
+ fi |
123 |
+ |
124 |
+ use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
125 |
+ |
126 |
+ use nls \ |
127 |
+ && myconf+=( --without-included-gettext ) \ |
128 |
+ || myconf+=( --disable-nls ) |
129 |
+ |
130 |
+ ECONF_SOURCE=${S} \ |
131 |
+ econf "${myconf[@]}" |
132 |
+} |
133 |
+ |
134 |
+multilib_src_install() { |
135 |
+ default |
136 |
+ # Provide libiberty.h directly. |
137 |
+ dosym libiberty/libiberty.h /usr/include/libiberty.h |
138 |
+} |
139 |
+ |
140 |
+multilib_src_install_all() { |
141 |
+ use static-libs || find "${ED}"/usr -name '*.la' -delete |
142 |
+} |