diff options
author | 2020-05-22 14:37:31 +0100 | |
---|---|---|
committer | 2020-05-22 14:37:48 +0100 | |
commit | 455b48c17d7a98aa173b2260523f00a604b44ef3 (patch) | |
tree | 3f633c5d37b84e6d05cbe67ac0bbdc1dc058ee2a /sys-devel/binutils-config | |
parent | sys-libs/freeipmi: Removed old (diff) | |
download | gentoo-455b48c17d7a98aa173b2260523f00a604b44ef3.tar.gz gentoo-455b48c17d7a98aa173b2260523f00a604b44ef3.tar.bz2 gentoo-455b48c17d7a98aa173b2260523f00a604b44ef3.zip |
sys-devel/binutils-config: always reregster all toolchains
New binutils-config version can affects list and positions
of symlinks installed. Always perform reregistration.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'sys-devel/binutils-config')
-rw-r--r-- | sys-devel/binutils-config/binutils-config-9999.ebuild | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sys-devel/binutils-config/binutils-config-9999.ebuild b/sys-devel/binutils-config/binutils-config-9999.ebuild index fdc087086271..d284d9330ece 100644 --- a/sys-devel/binutils-config/binutils-config-9999.ebuild +++ b/sys-devel/binutils-config/binutils-config-9999.ebuild @@ -33,14 +33,11 @@ src_install() { use prefix && eprefixify "${ED}"/usr/bin/${PN} } -pkg_preinst() { - # Force a refresh when upgrading from an older version that symlinked - # in all the libs & includes that binutils-libs handles. #528088 - if has_version "<${CATEGORY}/${PN}-5" ; then - local bc current - bc="${ED}/usr/bin/binutils-config" - if current=$("${bc}" -c) ; then - "${bc}" "${current}" - fi - fi +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 } |