Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils-config/
Date: Sat, 23 May 2020 07:55:32
Message-Id: 1590220521.c59883acaf26d9b1412921cb61907b30e6d90902.slyfox@gentoo
1 commit: c59883acaf26d9b1412921cb61907b30e6d90902
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 23 07:51:53 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat May 23 07:55:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c59883ac
7
8 sys-devel/binutils-config: bump up to 5.3.1, bug #724454
9
10 Single new change:
11 - #724454: fix native link removal by cross-compilers
12
13 Reported-by: Ionen Wolkens
14 Closes: https://bugs.gentoo.org/724454
15 Package-Manager: Portage-2.3.99, Repoman-2.3.22
16 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
17
18 sys-devel/binutils-config/Manifest | 1 +
19 .../binutils-config/binutils-config-5.3.1.ebuild | 43 ++++++++++++++++++++++
20 2 files changed, 44 insertions(+)
21
22 diff --git a/sys-devel/binutils-config/Manifest b/sys-devel/binutils-config/Manifest
23 index f40e04ac403..3743ada8f06 100644
24 --- a/sys-devel/binutils-config/Manifest
25 +++ b/sys-devel/binutils-config/Manifest
26 @@ -1,2 +1,3 @@
27 DIST binutils-config-5.2.1.tar.xz 6200 BLAKE2B e9b5c61e17aeae8b537c485dd555424136d1638182bb92f22f66eac27e18997d45b1a34b1362622bdc21d060ffac8627e9072107561b81c12ee579a55ef40313 SHA512 9ae130da747eaca8ca9717a69be053eba33946fc4101b77fd795d18202e9d6c27f169c29568b5c97b8f581a37f317b72d13b6d61267a61b117e970f3cfbe048b
28 +DIST binutils-config-5.3.1.tar.xz 6688 BLAKE2B 3bc1b96a96b0c30e425f4ffd42f86a09e2a80cc3ad1dcf77d4b5d2d9eb3d6bc607f78dfff1ae888fe8abfe44405a1e4d1ab325aa92fc5889c18aa3187a506647 SHA512 c6d188b70935604a8a519c036dda210c20e5b6e916fab33e5026bd5c78adfff0a1aa85003759b751275576ff33471b25c920beb6b1c088115f28918389e09ce2
29 DIST binutils-config-5.3.tar.xz 6572 BLAKE2B ae3593e8576419f00ea8f471c6c93dccb90e4e87e682a028d2f9c42608f4269533f7322be5153ee178f3af89ae2270ffc4334903613e803735c748f88699c66f SHA512 31253f6ba4b1fdbf71c251066fed3ab9bd351b67bd4b12c134a8ba1c258ef0b4a8c571c981e23ab4b5f5aa9175ce151024a19729b6edb7ec61ad08ec7c262b24
30
31 diff --git a/sys-devel/binutils-config/binutils-config-5.3.1.ebuild b/sys-devel/binutils-config/binutils-config-5.3.1.ebuild
32 new file mode 100644
33 index 00000000000..5f9cd23da4a
34 --- /dev/null
35 +++ b/sys-devel/binutils-config/binutils-config-5.3.1.ebuild
36 @@ -0,0 +1,43 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit prefix
43 +
44 +if [[ ${PV} == 9999 ]]; then
45 + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/binutils-config.git"
46 + inherit git-r3
47 +else
48 + SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
49 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
50 +fi
51 +
52 +DESCRIPTION="Utility to change the binutils version being used"
53 +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Toolchain"
54 +
55 +LICENSE="GPL-2"
56 +SLOT="0"
57 +IUSE="+native-symlinks"
58 +
59 +# We also RDEPEND on sys-apps/findutils which is in base @system
60 +RDEPEND="sys-apps/gentoo-functions"
61 +
62 +src_compile() {
63 + emake DESTDIR="${D}" PV="${PV}" USE_NATIVE_LINKS="$(usex native-symlinks)"
64 +}
65 +
66 +src_install() {
67 + emake DESTDIR="${D}" PV="${PV}" install
68 +
69 + use prefix && eprefixify "${ED}"/usr/bin/${PN}
70 +}
71 +
72 +pkg_postinst() {
73 + # Re-register all targets. USE flags or new versions can change
74 + # installed symlinks.
75 + local x
76 + for x in $(binutils-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
77 + binutils-config ${x}
78 + done
79 +}