From: Tupone Alfredo Date: Thu, 5 Sep 2019 07:08:06 +0000 (+0200) Subject: eclass/ada.eclass: Better fix for empty unsupported X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=fce1d2bda04ffbe69e1834c6bcf74417f2bb72e3;p=gentoo.git eclass/ada.eclass: Better fix for empty unsupported Signed-off-by: Alfredo Tupone --- diff --git a/eclass/ada.eclass b/eclass/ada.eclass index 35ad080761db..338b73bab86b 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