summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <austin.m.english@sony.com>2020-08-04 19:24:32 -0500
committerPatrick McLean <chutzpah@gentoo.org>2020-08-04 18:07:20 -0700
commit35fb22a523f8a0019be5a3171a1a81f5041a915f (patch)
tree33c7df389147651b24c0845effc42920acb1c553 /app-emulation
parentdev-libs/jsoncpp: arm64 stable (bug #734538) (diff)
downloadgentoo-35fb22a523f8a0019be5a3171a1a81f5041a915f.tar.gz
gentoo-35fb22a523f8a0019be5a3171a1a81f5041a915f.tar.bz2
gentoo-35fb22a523f8a0019be5a3171a1a81f5041a915f.zip
app-emulation/ganeti: disable rebuilding manpages
Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Austin English <austin.m.english@sony.com> Closes: https://github.com/gentoo/gentoo/pull/17003 Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/ganeti/files/ganeti-2.15-disable-docs.patch44
-rw-r--r--app-emulation/ganeti/ganeti-2.15.2-r11.ebuild1
2 files changed, 45 insertions, 0 deletions
diff --git a/app-emulation/ganeti/files/ganeti-2.15-disable-docs.patch b/app-emulation/ganeti/files/ganeti-2.15-disable-docs.patch
new file mode 100644
index 000000000000..adc2813d6a30
--- /dev/null
+++ b/app-emulation/ganeti/files/ganeti-2.15-disable-docs.patch
@@ -0,0 +1,44 @@
+--- 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
diff --git a/app-emulation/ganeti/ganeti-2.15.2-r11.ebuild b/app-emulation/ganeti/ganeti-2.15.2-r11.ebuild
index 13b15c795463..0bd0b47f753a 100644
--- a/app-emulation/ganeti/ganeti-2.15.2-r11.ebuild
+++ b/app-emulation/ganeti/ganeti-2.15.2-r11.ebuild
@@ -20,6 +20,7 @@ SRC_URI="
KEYWORDS="~amd64 ~x86"
PATCHES=(
"${FILESDIR}"/ganeti-2.15-use-balloon-device.patch
+ "${FILESDIR}"/ganeti-2.15-disable-docs.patch
"${WORKDIR}"/debian/patches/do-not-backup-export-dir.patch
"${WORKDIR}"/debian/patches/Makefile.am-use-C.UTF-8
"${WORKDIR}"/debian/patches/relax-deps