Skip to contentSkip to conversation

configure: record sphinx output

PATCH In review Olaf Hering 2 participants 2 messages Mar 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: record sphinx output

If configure fails to run due to errors in the expected sphinx environment no helpful message is recorded. Write all of the output to config.log to assist with debugging.

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index 12dbb0c76b..55086b0280 100755
@@ -4908,7 +4908,7 @@ has_sphinx_build() {
     # sphinx-build doesn't exist at all or if it is too old.
     mkdir -p "$TMPDIR1/sphinx"
     touch "$TMPDIR1/sphinx/index.rst"
-    "$sphinx_build" -c "$source_path/docs" -b html "$TMPDIR1/sphinx" "$TMPDIR1/sphinx/out" >/dev/null 2>&1
+    "$sphinx_build" -c "$source_path/docs" -b html "$TMPDIR1/sphinx" "$TMPDIR1/sphinx/out" >> config.log 2>&1
 }
 
 # Check if tools are available to build documentation.
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Olaf Hering

If configure fails to run due to errors in the expected sphinx environment no helpful message is recorded. Write all of the output to config.log to assist with debugging.

---
  configure | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
configure +0 -0
index 12dbb0c76b..55086b0280 100755

configure has_sphinx_build() { · line 4914

Quoted 8 lines
configure +1 -1
@@ -4908,7 +4908,7 @@ has_sphinx_build() {
      # sphinx-build doesn't exist at all or if it is too old.
      mkdir -p "$TMPDIR1/sphinx"
      touch "$TMPDIR1/sphinx/index.rst"
-    "$sphinx_build" -c "$source_path/docs" -b html "$TMPDIR1/sphinx" "$TMPDIR1/sphinx/out" >/dev/null 2>&1
+    "$sphinx_build" -c "$source_path/docs" -b html "$TMPDIR1/sphinx" "$TMPDIR1/sphinx/out" >> config.log 2>&1
  }
 
  # Check if tools are available to build documentation.