mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 18:47:16 -08:00
ea50752eb91aa2e66b15afc77a64603ec36c09eb
Existing use implies a desire to: - treat leading "-" as optional - query the value of a "flag" - query the entire arg of a "-flag" or "-flag=" or really anything other than "flag" where CFLAGS has "-flag=*" But unfortunately we also do odd things like match `get-flag -g` to retrieve -grecord-gcc-switches or -fno-gnu-keywords etc. It's a rough substring match and really we want to match flag *names*. It is also a bit awkward to do "-flag=" and then trim off the flag name by hand. Update the algorithm to allow for this. Given it's a big change to usability, require users to opt in to the new algorithm by migrating their ebuilds to EAPI 9 and testing there. They could have been relying on what I called a bug. Some things that will definitely break, but I cannot conceive of why one would do it: - FLAGS="-fno-gnu-keywords"; get-flag -g Gross misuse. - FLAGS="-flto-incremental=/path"; get-flag "-flto-inc*=" omitting the = works fine, what is the goal here??? Acked-by: Sam James <sam@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
…
…
…
…
…
Description
No description provided
9.8 GiB
Languages
Shell
98%
Roff
1.3%
Emacs Lisp
0.2%
C
0.1%