commit: a5baf0d41176e39527ef8da20e74c8b8565bd9c5 Author: Brett A C Sheffield <bacs <AT> librecast <DOT> net> AuthorDate: Mon Feb 16 20:14:39 2026 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Feb 17 03:25:01 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5baf0d4
www-servers/varnish: fix configure errors When calling out from configure to python to check compiler flags, make output from wflags.py consistent with the rest of autotools output rather than printing scary compiler errors. Link: https://code.vinyl-cache.org/vinyl-cache/vinyl-cache/pulls/4451 Closes: https://bugs.gentoo.org/882725 Signed-off-by: Brett A C Sheffield <bacs <AT> librecast.net> Part-of: https://codeberg.org/gentoo/gentoo/pulls/72 Merges: https://codeberg.org/gentoo/gentoo/pulls/72 Signed-off-by: Sam James <sam <AT> gentoo.org> ...figure-make-python-output-match-autotools.patch | 45 ++++++++++++++++++++++ www-servers/varnish/varnish-8.0.0-r1.ebuild | 5 ++- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/www-servers/varnish/files/varnish-8.0.0-configure-make-python-output-match-autotools.patch b/www-servers/varnish/files/varnish-8.0.0-configure-make-python-output-match-autotools.patch new file mode 100644 index 000000000000..abbfe79d8214 --- /dev/null +++ b/www-servers/varnish/files/varnish-8.0.0-configure-make-python-output-match-autotools.patch @@ -0,0 +1,45 @@ +# https://bugs.gentoo.org/882725 +# https://code.vinyl-cache.org/vinyl-cache/vinyl-cache/pulls/4451 + +From 3565765b8b2fbc854432fa0ce7b5ca2facc0a7b8 Mon Sep 17 00:00:00 2001 +From: Brett A C Sheffield <[email protected]> +Date: Mon, 16 Feb 2026 19:50:32 +0100 +Subject: [PATCH] configure: make python output match autotools + +When calling out from configure to python to check compiler flags, make +output from wflags.py consistent with the rest of autotools output +rather than printing scary compiler errors. +--- + wflags.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/wflags.py b/wflags.py +index 1c1da40d0..da799f9cd 100644 +--- a/wflags.py ++++ b/wflags.py +@@ -108,19 +108,19 @@ def main(): + + use_flags = [] + for i in DESIRABLE_OPTIONS + DESIRABLE_WFLAGS + UNDESIRABLE_WFLAGS: ++ sys.stderr.write("checking whether C compiler accepts " + i + "... ") + j = cc(compiler, i, obj_file.name, src_file.name) + if not j: + use_flags.append(i) ++ sys.stderr.write("yes\n") + else: +- sys.stderr.write(compiler + " cannot " + i + '\n') ++ sys.stderr.write(" no\n") + if b'error: unrecognized command line option' in j: + # LLVM + pass + elif b'warning: unknown warning option' in j: + # GCC + pass +- else: +- sys.stderr.write("\n\t" + j.decode('utf8') + '\n') + print(" ".join(use_flags)) + + if __name__ == "__main__": +-- +2.52.0 + diff --git a/www-servers/varnish/varnish-8.0.0-r1.ebuild b/www-servers/varnish/varnish-8.0.0-r1.ebuild index c1199cc593cc..a62c6d02b1cf 100644 --- a/www-servers/varnish/varnish-8.0.0-r1.ebuild +++ b/www-servers/varnish/varnish-8.0.0-r1.ebuild @@ -42,7 +42,10 @@ DEPEND=" REQUIRED_USE="${PYTHON_REQUIRED_USE}" -PATCHES=( "${FILESDIR}/${PN}-7.1.2-disable-tests.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-7.1.2-disable-tests.patch" + "${FILESDIR}/${PN}-8.0.0-configure-make-python-output-match-autotools.patch" # Bug: 882725 +) src_prepare() { default
