summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2017-09-03 20:51:01 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2017-09-09 23:21:23 +0200
commitad85a0fc3941ce75a9dd38f41fbfd939ce46522c (patch)
treefe595c466145e499d57391c94a38eef19a7bd177 /eclass/toolchain-glibc.eclass
parentsys-apps/sydbox: ptrace()-based sandbox from Exherbo (diff)
downloadgentoo-ad85a0fc3941ce75a9dd38f41fbfd939ce46522c.tar.gz
gentoo-ad85a0fc3941ce75a9dd38f41fbfd939ce46522c.tar.bz2
gentoo-ad85a0fc3941ce75a9dd38f41fbfd939ce46522c.zip
toolchain-glibc.eclass: Do not export any phases in EAPI=6. Well. Nearly.
Diffstat (limited to 'eclass/toolchain-glibc.eclass')
-rw-r--r--eclass/toolchain-glibc.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain-glibc.eclass b/eclass/toolchain-glibc.eclass
index 18c1e2f0a838..33f27ccf46eb 100644
--- a/eclass/toolchain-glibc.eclass
+++ b/eclass/toolchain-glibc.eclass
@@ -19,9 +19,10 @@ case ${EAPI:-0} in
src_install pkg_preinst pkg_postinst;;
2|3) EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure \
src_compile src_test src_install pkg_preinst pkg_postinst;;
- 4|5|6) EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare \
+ 4|5) EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare \
src_configure src_compile src_test src_install \
pkg_preinst pkg_postinst;;
+ 6) EXPORT_FUNCTIONS pkg_pretend;;
*) die "Unsupported EAPI=${EAPI}";;
esac
@@ -481,6 +482,12 @@ check_devpts() {
}
toolchain-glibc_pkg_pretend() {
+ if [[ ${EAPI:-0} == 6 ]]; then
+ eerror "We're moving code back to the ebuilds to get away from the ancient EAPI cruft."
+ eerror "From EAPI=6 on you'll have to define the phases in the glibc ebuilds."
+ die "Silly overlay authors..."
+ fi
+
# For older EAPIs, this is run in pkg_preinst.
if [[ ${EAPI:-0} != [0123] ]] ; then
check_devpts