From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6088E1382C5 for ; Fri, 22 May 2020 13:38:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A349E082B; Fri, 22 May 2020 13:38:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CCAEE082B for ; Fri, 22 May 2020 13:38:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7307C34F200 for ; Fri, 22 May 2020 13:37:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0D18B23E for ; Fri, 22 May 2020 13:37:55 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1590154668.455b48c17d7a98aa173b2260523f00a604b44ef3.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/binutils-config/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-devel/binutils-config/binutils-config-9999.ebuild X-VCS-Directories: sys-devel/binutils-config/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 455b48c17d7a98aa173b2260523f00a604b44ef3 X-VCS-Branch: master Date: Fri, 22 May 2020 13:37:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 41d6fa41-38b3-4717-8a01-4742535b182c X-Archives-Hash: a6b30bb77fdd80e19348678fb6a583b5 commit: 455b48c17d7a98aa173b2260523f00a604b44ef3 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri May 22 13:37:31 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri May 22 13:37:48 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=455b48c1 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 gentoo.org> sys-devel/binutils-config/binutils-config-9999.ebuild | 17 +++++++---------- 1 file 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 fdc08708627..d284d9330ec 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 }