From c59883acaf26d9b1412921cb61907b30e6d90902 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 23 May 2020 08:51:53 +0100 Subject: sys-devel/binutils-config: bump up to 5.3.1, bug #724454 Single new change: - #724454: fix native link removal by cross-compilers Reported-by: Ionen Wolkens Closes: https://bugs.gentoo.org/724454 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich --- sys-devel/binutils-config/Manifest | 1 + .../binutils-config/binutils-config-5.3.1.ebuild | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 sys-devel/binutils-config/binutils-config-5.3.1.ebuild diff --git a/sys-devel/binutils-config/Manifest b/sys-devel/binutils-config/Manifest index f40e04ac4038..3743ada8f063 100644 --- a/sys-devel/binutils-config/Manifest +++ b/sys-devel/binutils-config/Manifest @@ -1,2 +1,3 @@ DIST binutils-config-5.2.1.tar.xz 6200 BLAKE2B e9b5c61e17aeae8b537c485dd555424136d1638182bb92f22f66eac27e18997d45b1a34b1362622bdc21d060ffac8627e9072107561b81c12ee579a55ef40313 SHA512 9ae130da747eaca8ca9717a69be053eba33946fc4101b77fd795d18202e9d6c27f169c29568b5c97b8f581a37f317b72d13b6d61267a61b117e970f3cfbe048b +DIST binutils-config-5.3.1.tar.xz 6688 BLAKE2B 3bc1b96a96b0c30e425f4ffd42f86a09e2a80cc3ad1dcf77d4b5d2d9eb3d6bc607f78dfff1ae888fe8abfe44405a1e4d1ab325aa92fc5889c18aa3187a506647 SHA512 c6d188b70935604a8a519c036dda210c20e5b6e916fab33e5026bd5c78adfff0a1aa85003759b751275576ff33471b25c920beb6b1c088115f28918389e09ce2 DIST binutils-config-5.3.tar.xz 6572 BLAKE2B ae3593e8576419f00ea8f471c6c93dccb90e4e87e682a028d2f9c42608f4269533f7322be5153ee178f3af89ae2270ffc4334903613e803735c748f88699c66f SHA512 31253f6ba4b1fdbf71c251066fed3ab9bd351b67bd4b12c134a8ba1c258ef0b4a8c571c981e23ab4b5f5aa9175ce151024a19729b6edb7ec61ad08ec7c262b24 diff --git a/sys-devel/binutils-config/binutils-config-5.3.1.ebuild b/sys-devel/binutils-config/binutils-config-5.3.1.ebuild new file mode 100644 index 000000000000..5f9cd23da4a1 --- /dev/null +++ b/sys-devel/binutils-config/binutils-config-5.3.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit prefix + +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/binutils-config.git" + inherit git-r3 +else + SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +DESCRIPTION="Utility to change the binutils version being used" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Toolchain" + +LICENSE="GPL-2" +SLOT="0" +IUSE="+native-symlinks" + +# We also RDEPEND on sys-apps/findutils which is in base @system +RDEPEND="sys-apps/gentoo-functions" + +src_compile() { + emake DESTDIR="${D}" PV="${PV}" USE_NATIVE_LINKS="$(usex native-symlinks)" +} + +src_install() { + emake DESTDIR="${D}" PV="${PV}" install + + use prefix && eprefixify "${ED}"/usr/bin/${PN} +} + +pkg_postinst() { + # Re-register all targets. USE flags or new versions can change + # installed symlinks. + local x + for x in $(binutils-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do + binutils-config ${x} + done +} -- cgit v1.2.3-18-g5258