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: Tue, 20 Apr 2021 18:39:51
Message-Id: 1618943972.dffb1e2a2759dc0b8fde01b35f214ff611bd3f3f.dilfridge@gentoo
1 commit: dffb1e2a2759dc0b8fde01b35f214ff611bd3f3f
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 20 18:33:49 2021 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 20 18:39:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dffb1e2a
7
8 sys-libs/binutils-libs: remove old
9
10 Package-Manager: Portage-3.0.17, Repoman-3.0.2
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 sys-libs/binutils-libs/Manifest | 1 -
14 sys-libs/binutils-libs/binutils-libs-2.36.1.ebuild | 136 ---------------------
15 2 files changed, 137 deletions(-)
16
17 diff --git a/sys-libs/binutils-libs/Manifest b/sys-libs/binutils-libs/Manifest
18 index 75d5c804669..96ce2c62573 100644
19 --- a/sys-libs/binutils-libs/Manifest
20 +++ b/sys-libs/binutils-libs/Manifest
21 @@ -2,6 +2,5 @@ DIST binutils-2.34-patches-6.tar.xz 103028 BLAKE2B d0e866d0941d2b550c7d7f23530c6
22 DIST binutils-2.34.tar.xz 21637796 BLAKE2B 07dd23916a7d27f71c3f160c8c16abe2bd4fce294c738c665a012a3be6a87dbe8160d0c38740524f9025e01d438e99b2a94bcf9f9f79ee214f5dd033de8aad3d SHA512 2c7976939dcf5e8c5b7374cccd39bfe803b1bec73c6abfa0eb17c24e1942574c6bdb874c66a092a82adc443182eacd8a5a8001c19a76101f0c7ba40c27de0bbd
23 DIST binutils-2.35.2-patches-1.tar.xz 11836 BLAKE2B 0141349c9618992d1ab1e0309f7ed8fbc43b60a58be1dfed05eae8a8fee857241d9e112ae673da6fc9778767675f536ece818cb85567367bb1c8f87a0693623f SHA512 35de5f227c745c5fb800784fe657b2a6216faf43e2498e8481e7b0dc79b0d2f86b3b6a10b896e060319a77a51c61d2e1b7a951ae962b3a6ef8c1a2a261d9bb6c
24 DIST binutils-2.35.2.tar.xz 22056908 BLAKE2B 9c392e0db2b482442f9476f30bd80cf2796321cbf7be79cf21af7bef167b6074c4ae009dcf9b438d2f2f4a23381c935176b2cfa85de1a526ab46e0fd844a7ca5 SHA512 9974ede5978d32e0d68fef23da48fa00bd06b0bff7ec45b00ca075c126d6bbe0cf2defc03ecc3f17bc6cc85b64271a13009c4049d7ba17de26e84e3a6e2c0348
25 -DIST binutils-2.36.1-patches-1.tar.xz 11392 BLAKE2B 8112dda3f000d29952cbf58101f842ca519054bf9de6e22908881fe4d46cc1ea9a26db74ab00c64aedd3746eb058c19a978b8dc025ad8de07b6365c70a1803b2 SHA512 c6f5645b09d0c149f2eef8e992ff7181716dfb961f1155207a1349168f2d2fb76857cc224c27b4d764cfbc4ddec0630ef8c0a91d7bac489896f28de64651b367
26 DIST binutils-2.36.1-patches-3.tar.xz 32720 BLAKE2B 2a5a60168ec5ff612e7e58530092f306460cdb4a963320978dffcc22d73684486a14a5981f6eab2f7fc270def22cdc9954de455d680b2de4befc1ad4916347ba SHA512 e429cc82451675f14715d4e7640fe7b995495c8759a8e919c4291f8ca8358a663012f05c1ec6e60b1261114848379fefc9df723929770462dd676fa04fc7aa54
27 DIST binutils-2.36.1.tar.xz 22772248 BLAKE2B 03fbfbedd6dba2beaa836b1ed254eddd7a54a163d3061fd93edd2b9591cae24ba049b26658c524b5ccecc2f22d431dfa168218d2531aa356945c994fbbe896fa SHA512 cc24590bcead10b90763386b6f96bb027d7594c659c2d95174a6352e8b98465a50ec3e4088d0da038428abe059bbc4ae5f37b269f31a40fc048072c8a234f4e9
28
29 diff --git a/sys-libs/binutils-libs/binutils-libs-2.36.1.ebuild b/sys-libs/binutils-libs/binutils-libs-2.36.1.ebuild
30 deleted file mode 100644
31 index d827eb01108..00000000000
32 --- a/sys-libs/binutils-libs/binutils-libs-2.36.1.ebuild
33 +++ /dev/null
34 @@ -1,136 +0,0 @@
35 -# Copyright 1999-2021 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=7
39 -
40 -PATCH_VER=1
41 -PATCH_DEV=dilfridge
42 -
43 -inherit libtool 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:-slyfox}
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 - https://dev.gentoo.org/~${PATCH_DEV}/distfiles/${MY_PN}-${PATCH_BINUTILS_VER}-patches-${PATCH_VER}.tar.xz"
54 -
55 -LICENSE="|| ( GPL-3 LGPL-3 )"
56 -SLOT="0/${PV}"
57 -IUSE="64-bit-bfd cet multitarget nls static-libs"
58 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
59 -
60 -BDEPEND="nls? ( sys-devel/gettext )"
61 -DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]"
62 -# Need a newer binutils-config that'll reset include/lib symlinks for us.
63 -RDEPEND="${DEPEND}
64 - >=sys-devel/binutils-config-5
65 -"
66 -
67 -PATCHES=("${FILESDIR}"/${PN}-2.35.1-cet.patch)
68 -
69 -S="${WORKDIR}/${MY_P}"
70 -
71 -MULTILIB_WRAPPED_HEADERS=(
72 - /usr/include/bfd.h
73 -)
74 -
75 -src_prepare() {
76 - if [[ ! -z ${PATCH_VER} ]] ; then
77 - einfo "Applying binutils-${PATCH_BINUTILS_VER} patchset ${PATCH_VER}"
78 - eapply "${WORKDIR}/patch"/*.patch
79 - fi
80 -
81 - # Fix cross-compile relinking issue, bug #626402
82 - elibtoolize
83 -
84 - default
85 -}
86 -
87 -pkgversion() {
88 - printf "Gentoo ${PVR}"
89 - [[ -n ${PATCHVER} ]] && printf " p${PATCHVER}"
90 -}
91 -
92 -multilib_src_configure() {
93 - local myconf=(
94 - --enable-obsolete
95 - --enable-shared
96 - --enable-threads
97 - # Newer versions (>=2.24) make this an explicit option. #497268
98 - --enable-install-libiberty
99 - --disable-werror
100 - --with-bugurl="https://bugs.gentoo.org/"
101 - --with-pkgversion="$(pkgversion)"
102 - $(use_enable static-libs static)
103 - # The binutils eclass enables this flag for all bi-arch builds,
104 - # but other tools often don't care about that support. Put it
105 - # beyond a flag if people really want it, but otherwise leave
106 - # it disabled as it can slow things down on 32bit arches. #438522
107 - $(use_enable 64-bit-bfd)
108 - # This only disables building in the zlib subdir.
109 - # For binutils itself, it'll use the system version. #591516
110 - --without-zlib
111 - --with-system-zlib
112 - # We only care about the libs, so disable programs. #528088
113 - --disable-{binutils,etc,ld,gas,gold,gprof}
114 - # Disable modules that are in a combined binutils/gdb tree. #490566
115 - --disable-{gdb,libdecnumber,readline,sim}
116 - # Strip out broken static link flags.
117 - # https://gcc.gnu.org/PR56750
118 - --without-stage1-ldflags
119 - # We pull in all USE-flags that change ABI in an incompatible
120 - # way. #666100
121 - # USE=multitarget change size of global arrays
122 - # USE=64-bit-bfd changes data structures of exported API
123 - --with-extra-soversion-suffix=gentoo-${CATEGORY}-${PN}-$(usex multitarget mt st)-$(usex 64-bit-bfd 64 def)
124 -
125 - # avoid automagic dependency on (currently prefix) systems
126 - # systems with debuginfod library, bug #754753
127 - --without-debuginfod
128 -
129 - # Allow user to opt into CET for host libraries.
130 - # Ideally we would like automagic-or-disabled here.
131 - # But the check does not quite work on i686: bug #760926.
132 - $(use_enable cet)
133 - )
134 -
135 - # mips can't do hash-style=gnu ...
136 - if [[ $(tc-arch) != mips ]] ; then
137 - myconf+=( --enable-default-hash-style=gnu )
138 - fi
139 -
140 - use multitarget && myconf+=( --enable-targets=all --enable-64-bit-bfd )
141 -
142 - use nls \
143 - && myconf+=( --without-included-gettext ) \
144 - || myconf+=( --disable-nls )
145 -
146 - if [[ ${CHOST} == *-darwin* ]] && use nls ; then
147 - # fix underlinking in opcodes
148 - sed -i -e 's/@SHARED_LDFLAGS@/@SHARED_LDFLAGS@ -lintl/' \
149 - "${S}"/opcodes/Makefile.in || die
150 - fi
151 -
152 - ECONF_SOURCE=${S} \
153 - econf "${myconf[@]}"
154 -
155 - # Prevent makeinfo from running as we don't build docs here.
156 - # bug #622652
157 - sed -i \
158 - -e '/^MAKEINFO/s:=.*:= true:' \
159 - Makefile || die
160 -}
161 -
162 -multilib_src_install() {
163 - default
164 - # Provide libiberty.h directly.
165 - dosym libiberty/libiberty.h /usr/include/libiberty.h
166 -}
167 -
168 -multilib_src_install_all() {
169 - use static-libs || find "${ED}"/usr -name '*.la' -delete
170 -}