]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - scripts/sphinx-pre-install
scripts/sphinx-pre-install: add minimum support for RHEL
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Jul 2017 12:09:24 +0000 (09:09 -0300)
committerJonathan Corbet <corbet@lwn.net>
Mon, 7 Aug 2017 20:26:41 +0000 (14:26 -0600)
commit9b756a9d07fd34be189ccc3d3fc6dfc686e532fb
tree4f08f1a02675c6bf54002ec9cbc9b7aabc2114b4
parent3d91a353674c9cb38431d631598c9ed15d22fbc8
scripts/sphinx-pre-install: add minimum support for RHEL

RHEL 7.x and clone distros are shipped with Sphinx 1.1.x,
with is incompatible with Kernel ReST markups.

So, on those systems, the only alternative is to install
it via a Python virtual environment.

While seeking for "pip" on CentOS 7.3, I noticed that it
is not really needed, as python-virtualenv has its version
packaged there already. So, remove this from the list of
requirements for all distributions.

With regards to PDF, we need at least texlive-tabulary
extension, but that is not shipped there (at least on
CentOS). So, disable PDF packages as a whole.

Please notice, however, that texlive + amsmath is needed for
ReST to properly handle ReST ".. math::" tags. Yet, Sphinx
fall back to display the LaTeX math expressions as-is, if
such extension is not available.

So, let's just disable all texlive packages as a whole.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/sphinx-pre-install