From bd86b7efb2d9cef2077bb8c701b8ae6c4919f5d9 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 3 Mar 2026 09:58:54 +0100 Subject: [PATCH] gh-145455: Show output of blurb & sphinx-build version commands In gh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Switch `blurb` to output a version on a single line (`--version` rather than `help`), and don't redirect stderr, to show warnings and failures. Also, don't redirect stdout. This results in two extra lines with version info, which get drowned in typical Sphinx output, and can be helpful when debugging. --- Doc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/Makefile b/Doc/Makefile index d39c2fe3c3f22a..5b7fdf8ec08ed4 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -58,7 +58,7 @@ build: @if [ -f ../Misc/NEWS ] ; then \ echo "Using existing Misc/NEWS file"; \ cp ../Misc/NEWS build/NEWS; \ - elif $(BLURB) help >/dev/null 2>&1 && $(SPHINXBUILD) --version >/dev/null 2>&1; then \ + elif $(BLURB) --version && $(SPHINXBUILD) --version ; then \ if [ -d ../Misc/NEWS.d ]; then \ echo "Building NEWS from Misc/NEWS.d with blurb"; \ $(BLURB) merge -f build/NEWS; \