commit:     c74fc9aee7ab5777cf3fd2f2c3ed744dc79c0be8
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  9 08:02:11 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 17 19:00:36 2025 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=c74fc9ae

EAPI 9 bans domo

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 bin/eapi.sh             | 1 +
 bin/ebuild-helpers/domo | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/bin/eapi.sh b/bin/eapi.sh
index 892742c5d1..272d9e4a74 100644
--- a/bin/eapi.sh
+++ b/bin/eapi.sh
@@ -30,6 +30,7 @@ ___eapi_has_dohard()             [[ ${1-${EAPI-0}} == [0-3] ]]
 ___eapi_has_doheader()           [[ ${1-${EAPI-0}} != [0-4] ]]
 ___eapi_has_dohtml()             [[ ${1-${EAPI-0}} == [0-6] ]]
 ___eapi_has_dolib_libopts()      [[ ${1-${EAPI-0}} == [0-6] ]]
+___eapi_has_domo()               [[ ${1-${EAPI-0}} == [0-8] ]]
 ___eapi_has_dosed()              [[ ${1-${EAPI-0}} == [0-3] ]]
 ___eapi_has_dostrip()            [[ ${1-${EAPI-0}} != [0-6] ]]
 ___eapi_has_eapply()             [[ ${1-${EAPI-0}} != [0-5] ]]

diff --git a/bin/ebuild-helpers/domo b/bin/ebuild-helpers/domo
index e261da955e..c95fc38009 100755
--- a/bin/ebuild-helpers/domo
+++ b/bin/ebuild-helpers/domo
@@ -1,9 +1,14 @@
 #!/usr/bin/env bash
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 source "${PORTAGE_BIN_PATH:?}"/isolated-functions.sh || exit
 
+if ! ___eapi_has_domo; then
+       die "'${0##*/}' has been banned for EAPI '${EAPI}'"
+       exit 1
+fi
+
 mynum=${#}
 if [ ${mynum} -lt 1 ] ; then
        __helpers_die "${0}: at least one argument needed"

Reply via email to