You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emulation/ganeti/files/ganeti-2.15-disable-docs.patch

45 lines
1.8 KiB

--- a/Makefile.am 2020-08-04 18:21:12.395282115 +0000
+++ b/Makefile.am 2020-08-04 18:21:48.636729501 +0000
@@ -1160,41 +1160,6 @@
# has to exist in order for the sphinx module to be loaded
# successfully, but we certainly don't want the docs to be rebuilt if
# it changes
-doc/html/index.html doc/man-html/index.html: $(docinput) doc/conf.py \
- configure.ac $(RUN_IN_TEMPDIR) lib/build/sphinx_ext.py \
- lib/build/shell_example_lexer.py lib/ht.py \
- doc/css/style.css lib/rapi/connector.py lib/rapi/rlib2.py \
- autotools/sphinx-wrapper | $(built_python_sources)
- @test -n "$(SPHINX)" || \
- { echo 'sphinx-build' not found during configure; exit 1; }
-if !MANPAGES_IN_DOC
- if test -n '$(ENABLE_MANPAGES)'; then \
- echo 'Man pages in documentation were disabled at configure time' >&2; \
- exit 1; \
- fi
-endif
-## Sphinx provides little control over what content should be included. Some
-## mechanisms exist, but they all have drawbacks or actual issues. Since we
-## build two different versions of the documentation--once without man pages and
-## once, if enabled, with them--some control is necessary. xmpp-wrapper provides
-## us with this, but requires running in a temporary directory. It moves the
-## correct files into place depending on environment variables.
- dir=$(dir $@) && \
- @mkdir_p@ $$dir && \
- PYTHONPATH=. ENABLE_MANPAGES=$(ENABLE_MANPAGES) COPY_DOC=1 \
- HTML_THEME=$(SPHINX_HTML_THEME) \
- $(RUN_IN_TEMPDIR) autotools/sphinx-wrapper $(SPHINX) -q -W -b html \
- -d . \
- -D version="$(VERSION_MAJOR).$(VERSION_MINOR)" \
- -D release="$(PACKAGE_VERSION)" \
- -D graphviz_dot="$(DOT)" \
- doc $(CURDIR)/$$dir && \
- rm -f $$dir/.buildinfo $$dir/objects.inv
- touch $@
-
-doc/html: doc/html/index.html
-
-doc/man-html: doc/man-html/index.html
doc/install-quick.rst: INSTALL
doc/news.rst: NEWS