From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: bin/, /
Date: Tue, 18 Apr 2023 15:22:08 +0000 (UTC) [thread overview]
Message-ID: <1681816670.bea9ef3e0947bfdaaba2c5e5d4abb72292ee048e.ulm@gentoo> (raw)
commit: bea9ef3e0947bfdaaba2c5e5d4abb72292ee048e
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 1 08:09:28 2023 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Apr 18 11:17:50 2023 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=bea9ef3e
econf: Match configure --help output better
Check for proper end of string for all option names beginning with
"with", "disable" or "enable".
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
NEWS | 5 +++++
bin/phase-helpers.sh | 10 ++++++----
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/NEWS b/NEWS
index 4a41fc0c6..e60262509 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,11 @@ Features:
- -Wimplicit-int
- -Wstring-compare
+Bug fixes:
+* econf now checks for proper end of string in "configure --help" output for
+ all options starting with "--with-", "--disable-" or "--enable-", in order
+ to pass them to configure. This follows a change in PMS (bug #815169).
+
portage-3.0.46 (2023-04-07)
---------------
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index a0fe599fd..cc3f85faa 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
if ___eapi_has_DESTTREE_INSDESTTREE; then
@@ -643,13 +643,15 @@ econf() {
fi
if ___eapi_econf_passes_--disable-dependency-tracking; then
- if [[ ${conf_help} == *--disable-dependency-tracking* ]]; then
+ if [[ ${conf_help} == \
+ *--disable-dependency-tracking[^A-Za-z0-9+_.-]* ]]; then
conf_args+=( --disable-dependency-tracking )
fi
fi
if ___eapi_econf_passes_--disable-silent-rules; then
- if [[ ${conf_help} == *--disable-silent-rules* ]]; then
+ if [[ ${conf_help} == \
+ *--disable-silent-rules[^A-Za-z0-9+_.-]* ]]; then
conf_args+=( --disable-silent-rules )
fi
fi
@@ -672,7 +674,7 @@ econf() {
fi
if ___eapi_econf_passes_--with-sysroot; then
- if [[ ${conf_help} == *--with-sysroot* ]]; then
+ if [[ ${conf_help} == *--with-sysroot[^A-Za-z0-9+_.-]* ]]; then
conf_args+=( --with-sysroot="${ESYSROOT:-/}" )
fi
fi
next reply other threads:[~2023-04-18 15:22 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-18 15:22 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-21 12:22 [gentoo-commits] proj/portage:master commit in: bin/, / Ulrich Müller
2024-11-04 20:52 Zac Medico
2023-08-02 6:31 Sam James
2023-06-09 13:03 Sam James
2023-05-14 5:04 Ulrich Müller
2023-05-01 7:21 Sam James
2023-04-09 6:52 Sam James
2022-11-30 22:29 Sam James
2022-11-30 1:22 Sam James
2022-10-04 0:25 Sam James
2022-09-29 20:45 Sam James
2022-09-29 20:45 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1681816670.bea9ef3e0947bfdaaba2c5e5d4abb72292ee048e.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox