From: Akira Yokosawa <akiyks@gmail.com>
To: "Paul E. McKenney" <paulmck@kernel.org>
Cc: perfbook@vger.kernel.org, Akira Yokosawa <akiyks@gmail.com>
Subject: [PATCH -perfbook 7/8] precheck.sh: Add check of missing LaTeX packages for Fedora 44
Date: Wed, 6 May 2026 20:46:11 +0900 [thread overview]
Message-ID: <1dc3f4cb-eca8-4dec-9fab-40134432e825@gmail.com> (raw)
In-Reply-To: <e8b6b390-7034-4d01-a565-8d5d48309a05@gmail.com>
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 <akiyks@gmail.com>
---
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
next prev parent reply other threads:[~2026-05-06 11:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-06 11:37 [PATCH -perfbook 0/8] May 2026 updates (1st set) Akira Yokosawa
2026-05-06 11:38 ` [PATCH -perfbook 1/8] Update rcu-test-ratio for Linux v7.0 Akira Yokosawa
2026-05-06 11:40 ` [PATCH -perfbook 2/8] Apply hotfix for cleveref against recent LaTeX2e Akira Yokosawa
2026-05-06 11:41 ` [PATCH -perfbook 3/8] Cope with iconv without ISO~8859-1 support Akira Yokosawa
2026-05-06 11:43 ` [PATCH -perfbook 4/8] precheck-tentative.sh: Detect premature versions of "lineno" and "microtype" Akira Yokosawa
2026-05-06 11:44 ` [PATCH -perfbook 5/8] runlatex.sh: Add WARNEXIT variable to make "LaTeX Warning:" in .log be ignored Akira Yokosawa
2026-05-06 11:45 ` [PATCH -perfbook 6/8] precheck-tentative.sh: Fail early with suggestions for Fedora 44 Akira Yokosawa
2026-05-06 11:46 ` Akira Yokosawa [this message]
2026-05-06 11:47 ` [PATCH -perfbook 8/8] FAQ-BUILD: Add needed packages " Akira Yokosawa
2026-05-06 18:42 ` [PATCH -perfbook 0/8] May 2026 updates (1st set) Paul E. McKenney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1dc3f4cb-eca8-4dec-9fab-40134432e825@gmail.com \
--to=akiyks@gmail.com \
--cc=paulmck@kernel.org \
--cc=perfbook@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox