commit:     35fb22a523f8a0019be5a3171a1a81f5041a915f
Author:     Austin English <austin.m.english <AT> sony <DOT> com>
AuthorDate: Wed Aug  5 00:24:32 2020 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Aug  5 01:07:20 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35fb22a5

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 <AT> sony.com>
Closes: https://github.com/gentoo/gentoo/pull/17003
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 .../ganeti/files/ganeti-2.15-disable-docs.patch    | 44 ++++++++++++++++++++++
 app-emulation/ganeti/ganeti-2.15.2-r11.ebuild      |  1 +
 2 files changed, 45 insertions(+)

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 00000000000..adc2813d6a3
--- /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 13b15c79546..0bd0b47f753 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

Reply via email to