OSDN Git Service

scripts/sphinx-pre-install: get rid of RHEL7 explicity check
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 23:09:25 +0000 (20:09 -0300)
committerJonathan Corbet <corbet@lwn.net>
Thu, 30 May 2019 16:40:23 +0000 (10:40 -0600)
RHEL8 was already launched. This test won't get it, and will
do the wrong thing. Ok, we could fix it, but now we check
Sphinx version to ensure that it matches the minimal (1.3),
so there's no need for an explicit check there.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/sphinx-pre-install

index 11239eb..ded3e2e 100755 (executable)
@@ -581,19 +581,6 @@ sub check_needs()
                print "Unknown OS\n";
        }
 
-       # RHEL 7.x and clones have Sphinx version 1.1.x and incomplete texlive
-       if (($system_release =~ /Red Hat Enterprise Linux/) ||
-           ($system_release =~ /CentOS/) ||
-           ($system_release =~ /Scientific Linux/) ||
-           ($system_release =~ /Oracle Linux Server/)) {
-               $virtualenv = 1;
-               $pdf = 0;
-
-               printf("NOTE: On this distro, Sphinx and TexLive shipped versions are incompatible\n");
-               printf("with doc build. So, use Sphinx via a Python virtual environment.\n\n");
-               printf("This script can't install a TexLive version that would provide PDF.\n");
-       }
-
        # Check for needed programs/tools
        check_sphinx();
        check_perl_module("Pod::Usage", 0);