toolchain.eclass: allow applying patchsets to live ebuilds
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 11 Jan 2020 21:34:34 +0000 (21:34 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 11 Jan 2020 21:35:13 +0000 (21:35 +0000)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index 64c38828a2eb4e6291bfdfc372b9c3b5e0060f01..5f9bd7750dda96ab7a6be0f506d4da88fd4aa4c5 100644 (file)
@@ -438,9 +438,9 @@ toolchain_pkg_setup() {
 toolchain_src_unpack() {
        if [[ ${PV} == *9999* ]]; then
                git-r3_src_unpack
-       else
-               gcc_quick_unpack
        fi
+
+       gcc_quick_unpack
 }
 
 gcc_quick_unpack() {
@@ -455,6 +455,8 @@ gcc_quick_unpack() {
        # 'GCC_A_FAKEIT' to specify it's own source and binary tarballs.
        if [[ -n ${GCC_A_FAKEIT} ]] ; then
                unpack ${GCC_A_FAKEIT}
+       elif [[ ${PV} == *9999* ]]; then
+               : # sources comes from git, not tarball
        elif [[ -n ${PRERELEASE} ]] ; then
                unpack gcc-${PRERELEASE}.tar.bz2
        elif [[ -n ${SNAPSHOT} ]] ; then