[PATCH -perfbook 7/8] precheck.sh: Add check of missing LaTeX packages for Fedora 44
Akira Yokosawa <[email protected]> Wed, 6 May 2026 20:46:11 +0900
| Newsgroups | org.kernel.vger.perfbook |
|---|---|
| Message-ID | <[email protected]> |
Due to changes in dependency of Fedora TeX Live packages, existing list of packages in FAQ-BUILD.txt can fail to install some of required LaTeX packages for perfbook. Add checks for their existence in precheck.sh. Signed-off-by: Akira Yokosawa <[email protected]> --- utilities/precheck.sh | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/utilities/precheck.sh b/utilities/precheck.sh index d98bb0de..cce766e5 100755 --- a/utilities/precheck.sh +++ b/utilities/precheck.sh @@ -46,6 +46,28 @@ else fatal="date-format $fatal" fi +# test availability of ptmro7t.tfm and pst-tools.sty +# (to cope with Fedora 44's change in package dependencies) + +KPSEWHICH=`$WHICH kpsewhich` + +if [ "$KPSEWHICH" != "" ] ; then + ptmro7t_tfm=`$KPSEWHICH ptmro7t.tfm` + pst_tools_sty=`$KPSEWHICH pst-tools.sty` + if [ "$ptmro7t_tfm" = "" ] ; then + ptmro7t_result="NG" + fatal="ptmro7t.tfm $fatal" + else + ptmro7t_result="OK" + fi + if [ "$pst_tools_sty" = "" ] ; then + pst_tools_result="NG" + fatal="pst-tools.sty $fatal" + else + pst_tools_result="OK" + fi +fi + if [ "$fatal" = "" -a "$VERBOSE" = "" ] ; then exit 0 fi @@ -84,8 +106,24 @@ if [ "$date_result" != "OK" -o "$VERBOSE" != "" ] ; then fi fi fi - +if [ "$ptmro7t_result" != "OK" ] ; then + echo + echo "------------------------------------------" + echo " testing ptmro7t.tfm " + echo "------------------------------------------" + echo "ptmro7t.tfm ... Not found!" + echo "Please install texlive-collection-fontsrecommended." +fi +if [ "$pst_tools_result" != "OK" ] ; then + echo + echo "------------------------------------------" + echo " testing pst-tools.sty " + echo "------------------------------------------" + echo "pst-tools.sty ... Not found!" + echo "Please install texlive-collection-pstricks." +fi if [ "$fatal" != "" ] ; then + echo echo "See #14 in FAQ-BUILD.txt for further info." echo "fatal: $fatal" exit 1 -- 2.43.0