summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-02-09 11:54:40 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-02-09 12:06:31 +0000
commit722c36ec62b4db40c5fa0567d34dd1ec8dd089d2 (patch)
treeca805839803320e41b6b77dad6df64cf45377c0c /eclass/toolchain.eclass
parentnet-libs/liblockfile: Drop unused inherit (diff)
downloadgentoo-722c36ec62b4db40c5fa0567d34dd1ec8dd089d2.tar.gz
gentoo-722c36ec62b4db40c5fa0567d34dd1ec8dd089d2.tar.bz2
gentoo-722c36ec62b4db40c5fa0567d34dd1ec8dd089d2.zip
toolchain.eclass: drop GCC_A_FAKEIT and gcc_quick_unpack()
gnal-gpl was the only user of GCC_A_FAKEIT as it provided modified gcc tarballs. It was migrated to GCC_TARBALL_SRC_URI to override default tarball. Bug: https://bugs.gentoo.org/706588 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass55
1 files changed, 1 insertions, 54 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index ef23d8b0b67e..e280ee07eb64 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -450,60 +450,7 @@ toolchain_src_unpack() {
git-r3_src_unpack
fi
- if [[ -n ${GCC_A_FAKEIT} ]] ; then
- eerror "Please migrate from 'GCC_A_FAKEIT' to 'default_src_unpack()'"
- gcc_quick_unpack
- else
- # Just unpack every tarball from SRC_URI
- default_src_unpack
- fi
-}
-
-gcc_quick_unpack() {
- pushd "${WORKDIR}" > /dev/null
- export PATCH_GCC_VER=${PATCH_GCC_VER:-${GCC_RELEASE_VER}}
- export UCLIBC_GCC_VER=${UCLIBC_GCC_VER:-${PATCH_GCC_VER}}
- export PIE_GCC_VER=${PIE_GCC_VER:-${GCC_RELEASE_VER}}
- export HTB_GCC_VER=${HTB_GCC_VER:-${GCC_RELEASE_VER}}
- export SPECS_GCC_VER=${SPECS_GCC_VER:-${GCC_RELEASE_VER}}
-
- # Injection point for more tarballs. dev-lang/gnat-gpl uses
- # 'GCC_A_FAKEIT' to specify it's own source and binary tarballs.
- if [[ -n ${GCC_A_FAKEIT} ]] ; then
- unpack ${GCC_A_FAKEIT}
- elif tc_is_live ; then
- : # sources comes from git, not tarball
- elif [[ -n ${SNAPSHOT} ]] ; then
- unpack gcc-${SNAPSHOT}.tar.xz
- else
- if tc_version_is_between 5.5 6 || tc_version_is_between 6.4 7 || tc_version_is_at_least 7.2 ; then
- unpack gcc-${GCC_RELEASE_VER}.tar.xz
- else
- unpack gcc-${GCC_RELEASE_VER}.tar.bz2
- fi
- fi
-
- [[ -n ${PATCH_VER} ]] && \
- unpack gcc-${PATCH_GCC_VER}-patches-${PATCH_VER}.tar.bz2
-
- [[ -n ${UCLIBC_VER} ]] && \
- unpack gcc-${UCLIBC_GCC_VER}-uclibc-patches-${UCLIBC_VER}.tar.bz2
-
- if want_pie ; then
- if [[ -n ${PIE_CORE} ]] ; then
- unpack ${PIE_CORE}
- else
- unpack gcc-${PIE_GCC_VER}-piepatches-v${PIE_VER}.tar.bz2
- fi
- [[ -n ${SPECS_VER} ]] && \
- unpack gcc-${SPECS_GCC_VER}-specs-${SPECS_VER}.tar.bz2
- fi
-
- use_if_iuse boundschecking && unpack "bounds-checking-gcc-${HTB_GCC_VER}-${HTB_VER}.patch.bz2"
-
- [[ -n ${CYGWINPORTS_GITREV} ]] && use elibc_Cygwin && unpack "gcc-cygwinports-${CYGWINPORTS_GITREV}.tar.gz"
-
- popd > /dev/null
+ default_src_unpack
}
#---->> src_prepare <<----