diff options
| author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-07-17 17:46:40 -0400 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2017-07-23 17:51:35 -0400 |
| commit | 8e7d5d15e73fde2b22649783d4f0fa4495a1582f (patch) | |
| tree | d28912f50e57eac09261d203152550b08eb652e3 /scripts | |
| parent | 5d88953c32a64737a7879d9ff1263dc622f9aee0 (diff) | |
sphinx-pre-install: add dependencies for ImageMagick to work with svg
ImageMagick actually uses librsvg for conversions when converiting
from SVG (actually, it uses rsvg-convert). That causes the build to
fail with:
WARNING: Error #1 when calling: /usr/bin/convert /home/mchehab/docs/Documentation/media/uapi/v4l/selection.svg /home/mchehab/docs/Documentation/output/latex/selection.pdf
convert: delegate failed `'rsvg-convert' -o '%o' '%i'' @ error/delegate.c/InvokeDelegate/1919.
convert: unable to open file `/tmp/magick-8883oOQfHzrA5trM': No such file or directory @ error/constitute.c/ReadImage/544.
Add the corresponding dependencies.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/sphinx-pre-install | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install index 817241c674d3..fc9891ce5c85 100755 --- a/scripts/sphinx-pre-install +++ b/scripts/sphinx-pre-install | |||
| @@ -258,6 +258,7 @@ sub give_debian_hints() | |||
| 258 | "convert" => "imagemagick", | 258 | "convert" => "imagemagick", |
| 259 | "Pod::Usage" => "perl-modules", | 259 | "Pod::Usage" => "perl-modules", |
| 260 | "xelatex" => "texlive-xetex", | 260 | "xelatex" => "texlive-xetex", |
| 261 | "rsvg-convert" => "librsvg2-bin", | ||
| 261 | ); | 262 | ); |
| 262 | 263 | ||
| 263 | if ($pdf) { | 264 | if ($pdf) { |
| @@ -283,6 +284,7 @@ sub give_redhat_hints() | |||
| 283 | "convert" => "ImageMagick", | 284 | "convert" => "ImageMagick", |
| 284 | "Pod::Usage" => "perl-Pod-Usage", | 285 | "Pod::Usage" => "perl-Pod-Usage", |
| 285 | "xelatex" => "texlive-xetex-bin", | 286 | "xelatex" => "texlive-xetex-bin", |
| 287 | "rsvg-convert" => "librsvg2-tools", | ||
| 286 | ); | 288 | ); |
| 287 | 289 | ||
| 288 | my @fedora26_opt_pkgs = ( | 290 | my @fedora26_opt_pkgs = ( |
| @@ -321,6 +323,7 @@ sub give_opensuse_hints() | |||
| 321 | "convert" => "ImageMagick", | 323 | "convert" => "ImageMagick", |
| 322 | "Pod::Usage" => "perl-Pod-Usage", | 324 | "Pod::Usage" => "perl-Pod-Usage", |
| 323 | "xelatex" => "texlive-xetex-bin", | 325 | "xelatex" => "texlive-xetex-bin", |
| 326 | "rsvg-convert" => "rsvg-view", | ||
| 324 | ); | 327 | ); |
| 325 | 328 | ||
| 326 | my @suse_tex_pkgs = ( | 329 | my @suse_tex_pkgs = ( |
| @@ -357,6 +360,7 @@ sub give_arch_linux_hints() | |||
| 357 | "dot" => "graphviz", | 360 | "dot" => "graphviz", |
| 358 | "convert" => "imagemagick", | 361 | "convert" => "imagemagick", |
| 359 | "xelatex" => "texlive-bin", | 362 | "xelatex" => "texlive-bin", |
| 363 | "rsvg-convert" => "extra/librsvg", | ||
| 360 | ); | 364 | ); |
| 361 | 365 | ||
| 362 | my @archlinux_tex_pkgs = ( | 366 | my @archlinux_tex_pkgs = ( |
| @@ -380,6 +384,7 @@ sub give_gentoo_hints() | |||
| 380 | "dot" => "media-gfx/graphviz", | 384 | "dot" => "media-gfx/graphviz", |
| 381 | "convert" => "media-gfx/imagemagick", | 385 | "convert" => "media-gfx/imagemagick", |
| 382 | "xelatex" => "dev-texlive/texlive-xetex media-fonts/dejavu", | 386 | "xelatex" => "dev-texlive/texlive-xetex media-fonts/dejavu", |
| 387 | "rsvg-convert" => "gnome-base/librsvg", | ||
| 383 | ); | 388 | ); |
| 384 | 389 | ||
| 385 | check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf", | 390 | check_missing_file("/usr/share/fonts/dejavu/DejaVuSans.ttf", |
| @@ -458,6 +463,7 @@ sub check_needs() | |||
| 458 | check_program("xelatex", 1) if ($pdf); | 463 | check_program("xelatex", 1) if ($pdf); |
| 459 | check_program("dot", 1); | 464 | check_program("dot", 1); |
| 460 | check_program("convert", 1); | 465 | check_program("convert", 1); |
| 466 | check_program("rsvg-convert", 1) if ($pdf); | ||
| 461 | 467 | ||
| 462 | check_distros(); | 468 | check_distros(); |
| 463 | 469 | ||
