diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install index ca49779f49c183..edb8d17a9f7f11 100755 --- a/scripts/sphinx-pre-install +++ b/scripts/sphinx-pre-install @@ -964,22 +964,52 @@ sub check_needs() } } + + print "need (1) $need\n"; # Check for needed programs/tools check_perl_module("Pod::Usage", 0); + + print "need (2) $need\n"; + # Check for needed programs/tools check_program("make", 0); + + print "need (3) $need\n"; + # Check for needed programs/tools check_program("gcc", 0); + + print "need (4) $need\n"; + # Check for needed programs/tools check_python_module("sphinx_rtd_theme", 1) if (!$virtualenv); + + print "need (5) $need\n"; + # Check for needed programs/tools check_program("dot", 1); + + print "need (6) $need\n"; + # Check for needed programs/tools check_program("convert", 1); + print "need (7) $need\n"; + # Check for needed programs/tools # Extra PDF files - should use 2 for is_optional check_program("xelatex", 2) if ($pdf); + + print "need (8) $need\n"; + # Check for needed programs/tools check_program("rsvg-convert", 2) if ($pdf); + + print "need (9) $need\n"; + # Check for needed programs/tools check_program("latexmk", 2) if ($pdf); + print "need (10) $need\n"; + # Check for needed programs/tools # Do distro-specific checks and output distro-install commands check_distros(); + + print "need (11) $need\n"; + # Check for needed programs/tools if (!$python_cmd) { if ($need == 1) { die "Can't build as $need mandatory dependency is missing"; @@ -1003,7 +1033,7 @@ sub check_needs() printf "Hello\n"; printf "python: ---- %s -----\n", which("python"); printf "python3: ---- %s -----\n", which("python3-sphinx"); - print "list files --- %s ----\n", `ls -al /usr/bin/python` + print "list files --- %s ----\n", system("ls -al /usr/bin/python"); printf "sphinx-build-3---- %s -----\n", which("sphinx-build-3"); printf "hello\n";