From 0755fcf420d120b978cf6cf9364a26c6c0e67c0b Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Sat, 7 Nov 2020 15:25:16 +0100 Subject: Remove -* from flag list as being very dangerous. (Bug 722856) Signed-off-by: Sven Eden --- Portage.pm | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Portage.pm b/Portage.pm index 3b1791e..706af38 100644 --- a/Portage.pm +++ b/Portage.pm @@ -431,22 +431,9 @@ sub _determine_profiles # No parameters accepted sub _final_cleaning { - # The "disable all" flag is truncated to '*' by the parsing, but - # it has to read '-*'. - _add_temp("-*", "global"); - - $_use_temp->{'-*'}{global}{descr} = "{Never enable any flags other than those specified in make.conf}"; - $_use_temp->{'-*'}{global}{conf} = 0; ## Can never be -1 - - # Set it from the truncated config: - if (defined($_use_temp->{'*'}{global})) { - $_use_temp->{'*'}{global}{conf} > -1 - and $_use_temp->{'-*'}{global}{conf} = 1; - } - # The following use flags are dangerous or internal only # and must no be available using ufed: - defined($_use_temp->{"*"}) and delete($_use_temp->{"*"}); + defined($_use_temp->{"*"}) and delete($_use_temp->{"*"}); ## USE="-*" defined($_use_temp->{"bootstrap"}) and delete($_use_temp->{"bootstrap"}); defined($_use_temp->{"build"}) and delete($_use_temp->{"build"}); defined($_use_temp->{"livecd"}) and delete($_use_temp->{"livecd"}); -- cgit v1.2.3-65-gdbad