commit: fce1d2bda04ffbe69e1834c6bcf74417f2bb72e3
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 5 07:08:06 2019 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep 5 07:09:49 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fce1d2bd
eclass/ada.eclass: Better fix for empty unsupported
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
eclass/ada.eclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 35ad080761d..338b73bab86 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -258,10 +258,14 @@ _ada_single_set_globals() {
local unflags=( "${_ADA_UNSUPPORTED_IMPLS[@]/#/-ada_target_}" )
local allflags=( ${flags[@]} ${unflags[@]} )
- local optflags=${allflags[@]/%/(-)?}
+ local optflags=${flags[@]/%/(-)?}
IUSE="${allflags[*]}"
+ if [[ ${#_ADA_UNSUPPORTED_IMPLS[@]} -gt 0 ]]; then
+ optflags+=,${unflags[@]/%/(-)}
+ fi
+
local deps requse usedep
if [[ ${#_ADA_SUPPORTED_IMPLS[@]} -eq 1 ]]; then
# There is only one supported implementation; set IUSE and other