summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-02-26 10:37:01 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2024-06-14 12:00:10 +0200
commit41faa907e3a36f4ed00aced3499d469abb865281 (patch)
treedc9015107df57cd3959451db61706022a897d5a2 /eclass
parentjava-utils-2.eclass: improve message of java-pkg_die (diff)
downloadgentoo-41faa907e3a36f4ed00aced3499d469abb865281.tar.gz
gentoo-41faa907e3a36f4ed00aced3499d469abb865281.tar.bz2
gentoo-41faa907e3a36f4ed00aced3499d469abb865281.zip
java-utils-2.eclass: eerror if java-utils-2 is inherited directly
Closes: https://bugs.gentoo.org/207098 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-utils-2.eclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index ac0c67942b41..bc6fe9086583 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -34,6 +34,12 @@ export WANT_JAVA_CONFIG="2"
has test ${JAVA_PKG_IUSE} && RESTRICT+=" !test? ( test )"
+# this eclass must be inherited after java-pkg-2 or java-pkg-opt-2
+# bug #207098
+if ! has java-pkg-2 ${INHERITED} && ! has java-pkg-opt-2 ${INHERITED}; then
+ eerror "java-utils-2 eclass must not be inherited directly."
+fi
+
# @VARIABLE: JAVA_PKG_E_DEPEND
# @INTERNAL
# @DESCRIPTION: