Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/binutils-libs/
Date: Fri, 07 Dec 2018 21:59:10
Message-Id: 1544219939.d99decfcc3340a594944f129b2280d4d0abc0c48.dilfridge@gentoo
1 commit: d99decfcc3340a594944f129b2280d4d0abc0c48
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 7 21:58:43 2018 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 7 21:58:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d99decfc
7
8 sys-libs/binutils-libs: Patchlevel bump
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 sys-libs/binutils-libs/Manifest | 1 +
14 .../binutils-libs/binutils-libs-2.31.1-r2.ebuild | 114 +++++++++++++++++++++
15 2 files changed, 115 insertions(+)
16
17 diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest
18 index ddca182e6a9..ad30b2d7d09 100644
19 --- a/sys-libs/binutils-libs/Manifest
20 +++ b/sys-libs/binutils-libs/Manifest
21 @@ -12,4 +12,5 @@ DIST binutils-2.30-patches-5.tar.xz 590864 BLAKE2B 71de4d08f92ab1898ad576a21763f
22 DIST binutils-2.30.tar.xz 20286700 BLAKE2B 2dd5436a15a601011a1950e6082ec00082f5916fb82ce95ceab424fd8dc19f6daa7ac32a149f222ccdcc603354165cc206fde070eaa44fe2cc5e57486efc7868 SHA512 e747ea20d8d79fcd21b9d9f6695059caa7189d60f19256da398e34b789fea9a133c32b192e9693b5828d27683739b0198431bf8b3e39fb3b04884cf89d9aa839
23 DIST binutils-2.31.1-patches-2.tar.xz 11232 BLAKE2B b8ac65872017c063650d4e04855efa3fd3e9faa566e81fa9fb3ae777c1337627023c1af85b708a7933b577a69652451ff488340d7cc9f035d3a3a655da0fc8d6 SHA512 2d0ee2e727586fc39cdb8abc7251c12dd350d18dd84103ddacc08978db48d45445c05b7ea5f095842f6e0350db94d593270b23a38920a01ca59c363decaa2a58
24 DIST binutils-2.31.1-patches-3.tar.xz 12640 BLAKE2B 3444b219dd02ad513e6c36214d649a8a74638382103c88ec8de76a579be0ee13f8d1450e3b8d82dfddad55f2f851b32aee910a99230c7d8673f8426fc79a4cd9 SHA512 67b23c17518305561d190a15cba4a1af18a0a3cf1d7e62583ac7667d2fa40e7c7ec024cc981009d5d1caf1939633ab55fc0a198b69af02dc7841be43ff1acd13
25 +DIST binutils-2.31.1-patches-4.tar.xz 63460 BLAKE2B 6507d03a3b75fe4b65b3c58377baaf377e07aa3e5dee4f6f4cd25336f53a15b4249e72a107213062611c8674be2bcd478a8f1406940385e0b0e58ad5a7c61cc0 SHA512 aa9f2a5b9c2189c528f34c55cd2609eae5fb47e46b51a8f9aa595b0a1e2c3f103880dcc8f07e48b10971d669e4c2a7ce8a41be4763a1ebf9e956e3f1eade8f22
26 DIST binutils-2.31.1.tar.xz 20467996 BLAKE2B 6b914df1fbb7cf54f2159f71b2c2b09f3f6a569b7a3cb4cf9790d0a3733a7548bc0ea32334a178ed3b56e8b97656ae99c7abaf212601beeaeae9a0884c0f6051 SHA512 0fca326feb1d5f5fe505a827b20237fe3ec9c13eaf7ec7e35847fd71184f605ba1cefe1314b1b8f8a29c0aa9d88162849ee1c1a3e70c2f7407d88339b17edb30
27
28 diff --git a/sys-libs/binutils-libs/binutils-libs-2.31.1-r2.ebuild b/sys-libs/binutils-libs/binutils-libs-2.31.1-r2.ebuild
29 new file mode 100644
30 index 00000000000..d5a1cdf072d
31 --- /dev/null
32 +++ b/sys-libs/binutils-libs/binutils-libs-2.31.1-r2.ebuild
33 @@ -0,0 +1,114 @@
34 +# Copyright 1999-2018 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +PATCH_VER=4
40 +PATCH_DEV=dilfridge
41 +
42 +inherit eutils toolchain-funcs multilib-minimal
43 +
44 +MY_PN="binutils"
45 +MY_P="${MY_PN}-${PV}"
46 +PATCH_BINUTILS_VER=${PATCH_BINUTILS_VER:-${PV}}
47 +PATCH_DEV=${PATCH_DEV:-slyfox}
48 +
49 +DESCRIPTION="Core binutils libraries (libbfd, libopcodes, libiberty) for external packages"
50 +HOMEPAGE="https://sourceware.org/binutils/"
51 +SRC_URI="mirror://gnu/binutils/${MY_P}.tar.xz
52 + https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${MY_PN}-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
53 +
54 +LICENSE="|| ( GPL-3 LGPL-3 )"
55 +# The shared lib SONAMEs use the ${PV} in them.
56 +# -r1 is a one-off subslot bump where SONAME changed for bug #666100
57 +SLOT="0/${PV}-r1"
58 +IUSE="64-bit-bfd multitarget nls static-libs"
59 +#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
60 +KEYWORDS=""
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 + # We pull in all USE-flags that change ABI in an incompatible
118 + # way. #666100
119 + # USE=multitarget change size of global arrays
120 + # USE=64-bit-bfd changes data structures of exported API
121 + --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st)-$(usex 64-bit-bfd 64 def)
122 + )
123 +
124 + # mips can't do hash-style=gnu ...
125 + if [[ $(tc-arch) != mips ]] ; then
126 + myconf+=( --enable-default-hash-style=gnu )
127 + fi
128 +
129 + use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd )
130 +
131 + use nls \
132 + && myconf+=( --without-included-gettext ) \
133 + || myconf+=( --disable-nls )
134 +
135 + ECONF_SOURCE=${S} \
136 + econf "${myconf[@]}"
137 +}
138 +
139 +multilib_src_install() {
140 + default
141 + # Provide libiberty.h directly.
142 + dosym libiberty/libiberty.h /usr/include/libiberty.h
143 +}
144 +
145 +multilib_src_install_all() {
146 + use static-libs || find "${ED}"/usr -name '*.la' -delete
147 +}