commit:     97214ef7618a46554ee41c475c041536dda31aa2
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri May 22 20:35:47 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri May 22 20:35:56 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97214ef7

sys-devel/gcc-config: always regenerate ccache cache

USE flag change or code updates can change contents n /usr/bin.
The change adds ccache link regeneration.

Bug: https://bugs.gentoo.org/724454
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-devel/gcc-config/gcc-config-9999.ebuild | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/sys-devel/gcc-config/gcc-config-9999.ebuild 
b/sys-devel/gcc-config/gcc-config-9999.ebuild
index b599996f2b3..e4f08729165 100644
--- a/sys-devel/gcc-config/gcc-config-9999.ebuild
+++ b/sys-devel/gcc-config/gcc-config-9999.ebuild
@@ -38,12 +38,14 @@ src_install() {
 }
 
 pkg_postinst() {
-       # Scrub eselect-compiler remains
-       rm -f "${ROOT}"/etc/env.d/05compiler &
+       # Scrub eselect-compiler remains.
+       # To be removed in 2021.
+       rm -f "${ROOT}"/etc/env.d/05compiler
 
        # We not longer use the /usr/include/g++-v3 hacks, as
        # it is not needed ...
-       rm -f "${ROOT}"/usr/include/g++{,-v3} &
+       # To be removed in 2021.
+       rm -f "${ROOT}"/usr/include/g++{,-v3}
 
        # Do we have a valid multi ver setup ?
        local x
@@ -51,5 +53,8 @@ pkg_postinst() {
                gcc-config ${x}
        done
 
-       wait
+       # USE flag change can add or delete files in /usr/bin worth recaching
+       if [[ ! ${ROOT%/} && -f 
${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
+               eselect compiler-shadow update all
+       fi
 }

Reply via email to