From: Mauro Carvalho Chehab Date: Thu, 6 Jan 2022 00:41:02 +0000 (+0100) Subject: scripts: sphinx-pre-install: Fix ctex support on Debian X-Git-Tag: accepted/tizen/unified/20230118.172025~2871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ea9b8ed6459db9c55d303d1709551e3d8fdf539;p=platform%2Fkernel%2Flinux-rpi.git scripts: sphinx-pre-install: Fix ctex support on Debian commit 87d6576ddf8ac25f36597bc93ca17f6628289c16 upstream. The name of the package with ctexhook.sty is different on Debian/Ubuntu. Reported-by: Akira Yokosawa Signed-off-by: Mauro Carvalho Chehab Tested-by: Akira Yokosawa Link: https://lore.kernel.org/r/63882425609a2820fac78f5e94620abeb7ed5f6f.1641429634.git.mchehab@kernel.org Signed-off-by: Jonathan Corbet Signed-off-by: Greg Kroah-Hartman --- diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install index 46aaab4..f126ecb 100755 --- a/scripts/sphinx-pre-install +++ b/scripts/sphinx-pre-install @@ -370,6 +370,9 @@ sub give_debian_hints() ); if ($pdf) { + check_missing_file(["/usr/share/texlive/texmf-dist/tex/latex/ctex/ctexhook.sty"], + "texlive-lang-chinese", 2); + check_missing_file(["/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"], "fonts-dejavu", 2);