diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2017-08-03 15:44:21 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2017-08-03 16:26:58 -0400 |
commit | 9187b3174d1c221800e4afbf4df0ff7072ade139 (patch) | |
tree | 43d03f6eb4f4d6b9251fa30ac949491dc66c8ca8 /eclass/toolchain.eclass | |
parent | app-text/recode: clean up old. (diff) | |
download | gentoo-9187b3174d1c221800e4afbf4df0ff7072ade139.tar.gz gentoo-9187b3174d1c221800e4afbf4df0ff7072ade139.tar.bz2 gentoo-9187b3174d1c221800e4afbf4df0ff7072ade139.zip |
toolchain.eclass: upstream now uses .xz compressed tarballs
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index db6e643148c2..ae2db7f0a442 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -320,7 +320,11 @@ get_gcc_src_uri() { elif [[ -n ${SNAPSHOT} ]] ; then GCC_SRC_URI="ftp://gcc.gnu.org/pub/gcc/snapshots/${SNAPSHOT}/gcc-${SNAPSHOT}.tar.bz2" else - GCC_SRC_URI="mirror://gnu/gcc/gcc-${GCC_PV}/gcc-${GCC_RELEASE_VER}.tar.bz2" + if tc_version_is_between 5.5 6 || tc_version_is_between 6.4 7 || tc_version_is_at_least 7.2 ; then + GCC_SRC_URI="mirror://gnu/gcc/gcc-${GCC_PV}/gcc-${GCC_RELEASE_VER}.tar.xz" + else + GCC_SRC_URI="mirror://gnu/gcc/gcc-${GCC_PV}/gcc-${GCC_RELEASE_VER}.tar.bz2" + fi # we want all branch updates to be against the main release [[ -n ${BRANCH_UPDATE} ]] && \ GCC_SRC_URI+=" $(gentoo_urls gcc-${GCC_RELEASE_VER}-branch-update-${BRANCH_UPDATE}.patch.bz2)" @@ -424,7 +428,11 @@ gcc_quick_unpack() { elif [[ -n ${SNAPSHOT} ]] ; then unpack gcc-${SNAPSHOT}.tar.bz2 elif [[ ${PV} != *9999* ]] ; then - unpack gcc-${GCC_RELEASE_VER}.tar.bz2 + 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 # We want branch updates to be against a release tarball if [[ -n ${BRANCH_UPDATE} ]] ; then pushd "${S}" > /dev/null |