mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
scripts: sphinx-pre-install: fix dependencies for OpenMandriva
The dependeny list for OpenMandriva is wrong. Update it. Yet, on my tests with OpenMandriva LX 4.3, the texlive packages are broken: xelatex can't build anything there, as it lacks xelatex.sfm. Yet, this could be a problem at the way I created the container. Just in case, 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/669e759ba366328e5c8d5b14a591ba45a1f58176.1755763127.git.mchehab+huawei@kernel.org
This commit is contained in:
parent
b2d5d61c13
commit
b51f8c12d1
1 changed files with 10 additions and 2 deletions
|
|
@ -984,13 +984,19 @@ class SphinxDependencyChecker(MissingCheckers):
|
|||
if re.search(r"OpenMandriva", self.system_release):
|
||||
packager_cmd = "dnf install"
|
||||
noto_sans = "noto-sans-cjk-fonts"
|
||||
tex_pkgs = ["texlive-collection-fontsextra"]
|
||||
tex_pkgs = [
|
||||
"texlive-collection-basic",
|
||||
"texlive-collection-langcjk",
|
||||
"texlive-collection-fontsextra",
|
||||
"texlive-collection-fontsrecommended"
|
||||
]
|
||||
|
||||
# Tested on OpenMandriva Lx 4.3
|
||||
progs["convert"] = "imagemagick"
|
||||
progs["yaml"] = "python-pyyaml"
|
||||
progs["python-virtualenv"] = "python-virtualenv"
|
||||
progs["python-sphinx"] = "python-sphinx"
|
||||
progs["xelatex"] = "texlive"
|
||||
|
||||
self.check_program("python-virtualenv", DepManager.PYTHON_MANDATORY)
|
||||
|
||||
|
|
@ -1004,7 +1010,9 @@ class SphinxDependencyChecker(MissingCheckers):
|
|||
|
||||
if not self.distro_msg:
|
||||
self.distro_msg = \
|
||||
"Note: for venv, ensurepip could be broken, preventing its install method."
|
||||
"Notes:\n"\
|
||||
"1. for venv, ensurepip could be broken, preventing its install method.\n" \
|
||||
"2. at least on OpenMandriva LX 4.3, texlive packages seem broken"
|
||||
|
||||
else:
|
||||
packager_cmd = "urpmi"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue