aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2025-08-12 17:52:55 +0200
committerJonathan Corbet <corbet@lwn.net>2025-08-13 10:19:18 -0600
commit491a99511eaf333855caf28170cfb3f6f4460b54 (patch)
treeadcbcb31e9df1a27986360241abe94932ff2495a /scripts
parentscripts: sphinx-pre-install: add support for RHEL8-based distros (diff)
downloadlinux-491a99511eaf333855caf28170cfb3f6f4460b54.tar.gz
linux-491a99511eaf333855caf28170cfb3f6f4460b54.zip
scripts: sphinx-pre-install: add a warning for Debian-based distros
On Some Debian-based distros, ImageMagick package has a broken policy that causes LaTeX to fail while building docs. Add a note about that. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/628d01784e8c24e3d93c69c436f12398e00165b3.1754992972.git.mchehab+huawei@kernel.org
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sphinx-pre-install7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install
index 324baa98a395..09a337509b23 100755
--- a/scripts/sphinx-pre-install
+++ b/scripts/sphinx-pre-install
@@ -782,6 +782,11 @@ class SphinxDependencyChecker(MissingCheckers):
self.check_program("dvipng", DepManager.PDF_MANDATORY)
+ if not self.distro_msg:
+ self.distro_msg = \
+ "Note: ImageMagick is broken on some distros, affecting PDF output. For more details:\n" \
+ "\thttps://askubuntu.com/questions/1158894/imagemagick-still-broken-using-with-usr-bin-convert"
+
return self.get_install_progs(progs, "apt-get install")
def give_redhat_hints(self):
@@ -1193,7 +1198,7 @@ class SphinxDependencyChecker(MissingCheckers):
self.distro_msg = \
f"I don't know distro {self.system_release}.\n" \
"So, I can't provide you a hint with the install procedure.\n" \
- "There are likely missing dependencies.\n"
+ "There are likely missing dependencies."
return self.get_install_progs(progs, None)