summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-17 23:46:39 +0200
committerJonathan Corbet <corbet@lwn.net>2017-07-23 23:51:30 +0200
commit5d88953c32a64737a7879d9ff1263dc622f9aee0 (patch)
tree49b2fe74f5d7426667dc3f2e4e797a7abf758462 /scripts
parentsphinx-pre-install: use a requirements file (diff)
downloadlinux-5d88953c32a64737a7879d9ff1263dc622f9aee0.tar.xz
linux-5d88953c32a64737a7879d9ff1263dc622f9aee0.zip
sphinx-pre-install: check for the need of graphviz-gd
On newer versions of graphviz packaging on Fedora, it is needed to install a separate package for PDF support. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sphinx-pre-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install
index 230d9cc7ee1d..817241c674d3 100755
--- a/scripts/sphinx-pre-install
+++ b/scripts/sphinx-pre-install
@@ -285,6 +285,10 @@ sub give_redhat_hints()
"xelatex" => "texlive-xetex-bin",
);
+ my @fedora26_opt_pkgs = (
+ "graphviz-gd", # Fedora 26: needed for PDF support
+ );
+
my @fedora_tex_pkgs = (
"texlive-collection-fontsrecommended",
"texlive-collection-latex",
@@ -293,6 +297,11 @@ sub give_redhat_hints()
"dejavu-sans-mono-fonts",
);
+ my $release;
+
+ $release = $1 if ($system_release =~ /Fedora\s+release\s+(\d+)/);
+
+ check_rpm_missing(\@fedora26_opt_pkgs, 1) if ($pdf && $release >= 26);
check_rpm_missing(\@fedora_tex_pkgs, 1) if ($pdf);
check_missing_tex(1) if ($pdf);
check_missing(\%map);