1 |
commit: 1c87f200a2569b61fce857dad622dc99de8e9f26 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 21:35:07 2018 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 21:35:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c87f200 |
7 |
|
8 |
sys-libs/binutils-libs: Revision bump, 2.30 pachset 2 |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
sys-libs/binutils-libs/Manifest | 1 + |
13 |
.../binutils-libs/binutils-libs-2.30-r2.ebuild | 107 +++++++++++++++++++++ |
14 |
2 files changed, 108 insertions(+) |
15 |
|
16 |
diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest |
17 |
index 9ebac18fe17..edadd3e3c5b 100644 |
18 |
--- a/sys-libs/binutils-libs/Manifest |
19 |
+++ b/sys-libs/binutils-libs/Manifest |
20 |
@@ -7,4 +7,5 @@ DIST binutils-2.28.1.tar.bz2 28120394 BLAKE2B 3a0ed2bcf0c859638546b7460d9e6f0a55 |
21 |
DIST binutils-2.29.1-patches-2.tar.xz 18528 BLAKE2B 514496d6c9609362782d66b6cecbe3fe617f96dfb86e174a80d0b9113cbd4fce9d760fa61660ba2cfafbe1e482e955391cb8d3ef78d2c166c82796416a7ee106 SHA512 b60a3af9cd6a681f32a59fc4a30602ee1290f75cc93c8ad38ab0de17a7f30538a751b801dbaf079e3d514b9671e34e91742c4c9c953a8c9794505b571b7e80f0 |
22 |
DIST binutils-2.29.1.tar.bz2 29123355 BLAKE2B 83de518a27bae0f13c57b1979493dd7f7cabae424cff5e8495d1f064da24b6ef9e1c19d1d1adad2dca7142372782023f66b4b4223170a49b96ba3834266fe878 SHA512 4063d34555526922376ccceb3f14b43e287442e82a8038cf50f4f51ad97d438c672c0e310ca4b856c9aff5aa9911073e256e8298a7a3f1844eeb60b90d955592 |
23 |
DIST binutils-2.30-patches-1.tar.xz 13884 BLAKE2B 86d160144e4ae3213838ccd07d008a96f210dbe8d894f2043420bd0003f8e0611564f77dadf60780da61278bbac41130922703fef69ba8ac451bcae5d9c65cf4 SHA512 cf38328bac920c1159e73727a9bb46bd462fa60650c90ee8a3d6221d447c678fdd79c6886efc52e35897d535dd717c1dc363bcb3f201aacd15ace078694456da |
24 |
+DIST binutils-2.30-patches-2.tar.xz 490272 BLAKE2B a28a5b5bb8faa33fec269f2c69d6ed0e4e7d5a9169861aa4b3c45511794e1e749c216862a8258c2029f1b40c511dcb2a0aeaecda57e75d52418f10d6f345718f SHA512 1686d5b58ee968f2000647acab2bee4c263d1c85fd43fed8c820fccfc0d7024a01211e7853cd5ce452fa90da500bc17309edf6dbc901c7fd6fc7b3e3d6f42581 |
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-r2.ebuild b/sys-libs/binutils-libs/binutils-libs-2.30-r2.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..2434d85063c |
30 |
--- /dev/null |
31 |
+++ b/sys-libs/binutils-libs/binutils-libs-2.30-r2.ebuild |
32 |
@@ -0,0 +1,107 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+PATCH_VER=2 |
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-${PATCH_VER}.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="~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" |
56 |
+KEYWORDS="" |
57 |
+IUSE="64-bit-bfd multitarget nls static-libs" |
58 |
+ |
59 |
+COMMON_DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]" |
60 |
+DEPEND="${COMMON_DEPEND} |
61 |
+ >=sys-apps/texinfo-4.7 |
62 |
+ nls? ( sys-devel/gettext )" |
63 |
+# Need a newer binutils-config that'll reset include/lib symlinks for us. |
64 |
+RDEPEND="${COMMON_DEPEND} |
65 |
+ >=sys-devel/binutils-config-5 |
66 |
+ nls? ( !<sys-devel/gdb-7.10-r1[nls] )" |
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 |
+ default |
80 |
+} |
81 |
+ |
82 |
+pkgversion() { |
83 |
+ printf "Gentoo ${PVR}" |
84 |
+ [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}" |
85 |
+} |
86 |
+ |
87 |
+multilib_src_configure() { |
88 |
+ local myconf=( |
89 |
+ --enable-obsolete |
90 |
+ --enable-shared |
91 |
+ --enable-threads |
92 |
+ # Newer versions (>=2.24) make this an explicit option. #497268 |
93 |
+ --enable-install-libiberty |
94 |
+ --disable-werror |
95 |
+ --with-bugurl="https://bugs.gentoo.org/" |
96 |
+ --with-pkgversion="$(pkgversion)" |
97 |
+ $(use_enable static-libs static) |
98 |
+ # The binutils eclass enables this flag for all bi-arch builds, |
99 |
+ # but other tools often don't care about that support. Put it |
100 |
+ # beyond a flag if people really want it, but otherwise leave |
101 |
+ # it disabled as it can slow things down on 32bit arches. #438522 |
102 |
+ $(use_enable 64-bit-bfd) |
103 |
+ # This only disables building in the zlib subdir. |
104 |
+ # For binutils itself, it'll use the system version. #591516 |
105 |
+ --without-zlib |
106 |
+ --with-system-zlib |
107 |
+ # We only care about the libs, so disable programs. #528088 |
108 |
+ --disable-{binutils,etc,ld,gas,gold,gprof} |
109 |
+ # Disable modules that are in a combined binutils/gdb tree. #490566 |
110 |
+ --disable-{gdb,libdecnumber,readline,sim} |
111 |
+ # Strip out broken static link flags. |
112 |
+ # https://gcc.gnu.org/PR56750 |
113 |
+ --without-stage1-ldflags |
114 |
+ ) |
115 |
+ |
116 |
+ # mips can't do hash-style=gnu ... |
117 |
+ if [[ $(tc-arch) != mips ]] ; then |
118 |
+ myconf+=( --enable-default-hash-style=gnu ) |
119 |
+ fi |
120 |
+ |
121 |
+ use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd ) |
122 |
+ |
123 |
+ use nls \ |
124 |
+ && myconf+=( --without-included-gettext ) \ |
125 |
+ || myconf+=( --disable-nls ) |
126 |
+ |
127 |
+ ECONF_SOURCE=${S} \ |
128 |
+ econf "${myconf[@]}" |
129 |
+} |
130 |
+ |
131 |
+multilib_src_install() { |
132 |
+ default |
133 |
+ # Provide libiberty.h directly. |
134 |
+ dosym libiberty/libiberty.h /usr/include/libiberty.h |
135 |
+} |
136 |
+ |
137 |
+multilib_src_install_all() { |
138 |
+ use static-libs || find "${ED}"/usr -name '*.la' -delete |
139 |
+} |