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 6/8] precheck-tentative.sh: Fail early with suggestions for Fedora 44
Date: Wed, 6 May 2026 20:45:06 +0900 [thread overview]
Message-ID: <2e706ab3-e69b-4148-bf89-fbbcc0f2dfba@gmail.com> (raw)
In-Reply-To: <e8b6b390-7034-4d01-a565-8d5d48309a05@gmail.com>
Here is an example of aborting message you will see under Fedora 44 from
simple "make":
#### array.sty requires a later release of LaTeX2e. ####
#### arary.sty requires LaTeX2e <2026-06-01>, ####
#### while your LaTeX2e is <2025-11-01>. ####
#### Check your TeX Live installation. (Known issue under Fedora 44).
#### 1st option is to downgrade array.sty to v2.6n.
#### 2nd option is to install texlive-latex-base-dev and
#### say 'make LATEX=pdflatex-dev'.
#### As a last resort, 'make WARNEXIT=0' would ignore such 'LaTeX Warning:'
#### messages and complete iteration of latex runs (if you are lucky).
make: *** [Makefile:300: perfbook.aux] Error 1
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
utilities/precheck-tentative.sh | 40 +++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/utilities/precheck-tentative.sh b/utilities/precheck-tentative.sh
index 8b53e02c..96d2fe2f 100755
--- a/utilities/precheck-tentative.sh
+++ b/utilities/precheck-tentative.sh
@@ -5,6 +5,8 @@
#
# Copyright (C) Akira Yokosawa, 2026
+: ${WARNEXIT:=1}
+
KPSEWHICH=`command -v kpsewhich`
if [ "$KPSEWHICH" != "" ] ; then
@@ -63,4 +65,42 @@ if [ "$hyperrefsince" = "$HYPERREF_SINCE" ] ; then # older
fi
fi
+#### Tentative check of packaging inconsistency in Fedora 44 #############
+# latex-base vs array (provided in texlive-tools)
+
+latex_release_dev=`kpsewhich latex-dev/base/latexrelease.sty`
+
+if [ "$latex_release_dev" != "" ] ; then
+ latex_dev_ver=`grep -F -A1 -e '\edef\latexreleaseversion' $latex_release_dev | \
+ grep -F '{' | \
+ sed -E -e 's/[ ]+\{([0-9\-]+)\}/<\1>/' -e 's/\//\-/g'`
+fi
+
+array_sty=`kpsewhich array.sty`
+array_req_ver=`grep -F -e '\NeedsTeXFormat{LaTeX2e}' $array_sty | \
+ tail -n 1 | \
+ sed -e 's/\\\\NeedsTeXFormat{LaTeX2e}//' | \
+ sed -E -e 's/\[/</' -e 's/\]/>/' -e 's/\//\-/g'`
+
+if [ "$LATEX" != "pdflatex-dev" ] ; then
+ if [ "$array_req_ver" \> "$latex_ver" -a "$WARNEXIT" = "1" ] ; then
+ echo "#### array.sty requires a later release of LaTeX2e. ####"
+ echo "#### arary.sty requires LaTeX2e $array_req_ver, ####"
+ echo "#### while your LaTeX2e is $latex_ver. ####"
+ echo "#### Check your TeX Live installation. (Known issue under Fedora 44.)"
+ echo "#### 1st option is to downgrade array.sty to v2.6n."
+ echo "#### 2nd option is to install texlive-latex-base-dev and"
+ echo "#### say 'make LATEX=pdflatex-dev'."
+ echo "#### As a last resort, 'make WARNEXIT=0' would ignore such 'LaTeX Warning:'"
+ echo "#### messages and complete iteration of latex runs (if you are lucky)."
+ exit 1
+ fi
+else
+ if [ "$latex_dev_ver" = "" ] ; then
+ echo "#### LaTeX2e (-dev) is not found! ####"
+ echo "#### You need to install texlive-latex-base-dev. ####"
+ exit 1
+ fi
+fi
+
fi #KPSEWHICH
--
2.43.0
next prev parent reply other threads:[~2026-05-06 11:45 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 ` Akira Yokosawa [this message]
2026-05-06 11:46 ` [PATCH -perfbook 7/8] precheck.sh: Add check of missing LaTeX packages for Fedora 44 Akira Yokosawa
2026-05-06 11:47 ` [PATCH -perfbook 8/8] FAQ-BUILD: Add needed " 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=2e706ab3-e69b-4148-bf89-fbbcc0f2dfba@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