From 4dfd22e23c88f1b38003e2ef5fdf710cf02b97b3 Mon Sep 17 00:00:00 2001
From: Christian Heimes <cheimes@redhat.com>
Date: Mon, 29 Feb 2016 09:10:54 +0100
Subject: [PATCH 52/55] Fail builds when sphinx-builder fails

sphinx-builder just reports errors to stderr but doesn't signal build
failures in its return code. The -W option turns any warning into a
non-null exit code.

Comment out html_static_path. It doesn't exist, is not used but emits a
warning which is then turned into an error.
---
 base/common/python/CMakeLists.txt | 2 ++
 base/common/python/conf.py        | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/base/common/python/CMakeLists.txt b/base/common/python/CMakeLists.txt
index 7c2fad86919a328ab4f507b610ffa26c087da49b..d667421bfb3d42577ee11a21d919a65ff6828633 100644
--- a/base/common/python/CMakeLists.txt
+++ b/base/common/python/CMakeLists.txt
@@ -19,6 +19,7 @@ add_custom_target(dogtag_python_client_docs ALL
         -c "${CMAKE_CURRENT_BINARY_DIR}"
         -w "${CMAKE_CURRENT_BINARY_DIR}/python-client-lib-html.log"
         -a
+        -W
         "${CMAKE_CURRENT_SOURCE_DIR}"
         "${CMAKE_CURRENT_BINARY_DIR}/html"
     COMMENT "Building Python Client Library HTML documentation")
@@ -29,6 +30,7 @@ add_custom_target(dogtag_python_client_man_docs ALL
         -c "${CMAKE_CURRENT_BINARY_DIR}"
         -w "${CMAKE_CURRENT_BINARY_DIR}/python-client-lib-man.log"
         -a
+        -W
         "${CMAKE_CURRENT_SOURCE_DIR}"
         "${CMAKE_CURRENT_BINARY_DIR}/man"
     COMMENT "Building Python Client Library manual pages")
diff --git a/base/common/python/conf.py b/base/common/python/conf.py
index 0f81c95dccfec5e7ef5de13f9c4927c130718895..f076cf919b1c2718a439ca5aca56002bb4f74ccf 100644
--- a/base/common/python/conf.py
+++ b/base/common/python/conf.py
@@ -122,7 +122,7 @@ html_theme = 'default'
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
+#html_static_path = ['_static']
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.
-- 
2.5.0

