commit: 94105a4ed58bb5977ccbbcbe1084f04e3218e08a
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 19 22:07:27 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 19 22:10:41 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94105a4e
findlib.eclass: define IUSE="ocamlopt"
Fixes failures such as:
```
dev-ml/camlbz2-0.7.0::gentoo (masked by: invalid: RDEPEND: USE flag 'ocamlopt'
referenced in conditional 'ocamlopt?' in atom 'dev-lang/ocaml:=[ocamlopt?]' is
not in IUSE)
```
in findlib.eclass consumers lacking IUSE="ocamlopt".
Fixes: f498bcbd7c3fd328bd5f66f3286521b6db926f5e
Signed-off-by: Sam James <sam <AT> gentoo.org>
eclass/findlib.eclass | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/eclass/findlib.eclass b/eclass/findlib.eclass
index 9c19ca96dda..fd5442b99d5 100644
--- a/eclass/findlib.eclass
+++ b/eclass/findlib.eclass
@@ -1,5 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
+# Copyright 1999-2021 Gentoo Author# Distributed under the terms of the GNU
General Public License v2
# @ECLASS: findlib.eclass
# @MAINTAINER:
@@ -13,6 +12,9 @@
# Do not complain about CFLAGS etc since ML projects do not use them.
QA_FLAGS_IGNORED='.*'
+# Required to use the ocamlopt? dep in RDEPEND below
+IUSE="ocamlopt"
+
# From this findlib version, there is proper stublibs support.
DEPEND=">=dev-ml/findlib-1.0.4-r1"
[[ ${FINDLIB_USE} ]] && DEPEND="${FINDLIB_USE}? ( ${DEPEND} )"