commit:     dfcb2b58bf94dc20eed8aa9780fc64df70710b6e
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 19 18:55:57 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Oct 19 21:20:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfcb2b58

toolchain.eclass: port to EAPI=7

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 eclass/toolchain.eclass                         | 6 ++++--
 sys-devel/gcc/files/gcc-configure-texinfo.patch | 4 ++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 32483555b05..6f70d806100 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 # Maintainer: Toolchain Ninjas <[email protected]>
-# @SUPPORTED_EAPIS: 5 6
+# @SUPPORTED_EAPIS: 5 6 7
 
 DESCRIPTION="The GNU Compiler Collection"
 HOMEPAGE="https://gcc.gnu.org/";
@@ -27,6 +27,7 @@ FEATURES=${FEATURES/multilib-strict/}
 case ${EAPI:-0} in
        0|1|2|3|4*) die "Need to upgrade to at least EAPI=5" ;;
        5*|6) inherit eapi7-ver ;;
+       7) ;;
        *) die "I don't speak EAPI ${EAPI}." ;;
 esac
 EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \
@@ -512,6 +513,7 @@ tc_apply_patches() {
                # Note: even for EAPI=6 we used 'epatch' semantics. To avoid
                # breaking existing ebuilds use 'eapply' only in EAPI=7 or 
later.
                5*|6) epatch "$@" ;;
+               7) eapply "$@" ;;
                *) die "Update apply_patches() for ${EAPI}." ;;
        esac
 }
@@ -527,7 +529,7 @@ toolchain_src_prepare() {
 
        case ${EAPI:-0} in
                5*) epatch_user;;
-               6) eapply_user ;;
+               6|7) eapply_user ;;
                *) die "Update toolchain_src_prepare() for ${EAPI}." ;;
        esac
 

diff --git a/sys-devel/gcc/files/gcc-configure-texinfo.patch 
b/sys-devel/gcc/files/gcc-configure-texinfo.patch
index ddc098ddbd5..99e90998a46 100644
--- a/sys-devel/gcc/files/gcc-configure-texinfo.patch
+++ b/sys-devel/gcc/files/gcc-configure-texinfo.patch
@@ -4,8 +4,8 @@ that it violates the cheesy version grep.
 
 http://bugs.gentoo.org/198182
 
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -3573,6 +3573,6 @@
        :
      else

Reply via email to