From fce1d2bda04ffbe69e1834c6bcf74417f2bb72e3 Mon Sep 17 00:00:00 2001 From: Tupone Alfredo Date: Thu, 5 Sep 2019 09:08:06 +0200 Subject: [PATCH] eclass/ada.eclass: Better fix for empty unsupported Signed-off-by: Alfredo Tupone --- eclass/ada.eclass | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eclass/ada.eclass b/eclass/ada.eclass index 35ad080761dbe..338b73bab86bc 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