Gentoo Archives: gentoo-commits

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