Gentoo Archives: gentoo-pms

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-pms@l.g.o
Cc: "Ulrich Müller" <ulm@g.o>, David Seifert <soap@g.o>
Subject: [gentoo-pms] [PATCH] pkg-mgr-commands.tex: econf matches configure --help output better
Date: Wed, 01 Mar 2023 07:46:37
Message-Id: 20230301074630.25317-1-ulm@gentoo.org
1 Following the previous change for --disable-static (commit e0aa80c),
2 check for proper end of string for all option names beginning with
3 "with", "disable" or "enable". This will mainly affect --with-sysroot,
4 where false positives have been observed.
5
6 Bug: https://bugs.gentoo.org/815169
7 Suggested-by: David Seifert <soap@g.o>
8 Signed-off-by: Ulrich Müller <ulm@g.o>
9 ---
10 pkg-mgr-commands.tex | 7 +++++--
11 1 file changed, 5 insertions(+), 2 deletions(-)
12
13 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
14 index 95caa0b..4fac077 100644
15 --- a/pkg-mgr-commands.tex
16 +++ b/pkg-mgr-commands.tex
17 @@ -343,10 +343,13 @@ commands once the current phase function has returned.
18 occurs in the output of \t{configure -{}-help}.
19 \item \t{-{}-disable-static}, if the EAPI is listed in table~\ref{tab:econf-options-table}
20 as using it. This option will only be passed if both strings \t{-{}-enable-static} and
21 - \t{-{}-enable-shared} occur in the output of \t{configure -{}-help}, and if neither of them
22 - is immediately followed by any of the characters \t{[A-Za-z0-9+_.-]}.
23 + \t{-{}-enable-shared} occur in the output of \t{configure -{}-help}.
24 \end{itemize}
25
26 + For the option names beginning with \t{with-}, \t{disable-} or \t{enable-}, a string in
27 + \t{configure -{}-help} output matches only if it is not immediately followed by any of the
28 + characters \t{[A-Za-z0-9+_.-]}.
29 +
30 \ChangeWhenAddingAnEAPI{8}
31 \begin{centertable}{Extra \t{econf} arguments for EAPIs}
32 \label{tab:econf-options-table}
33 --
34 2.39.2