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 5/8] runlatex.sh: Add WARNEXIT variable to make "LaTeX Warning:" in .log be ignored
Date: Wed, 6 May 2026 20:44:06 +0900 [thread overview]
Message-ID: <313423b6-901c-44aa-84d7-855905587856@gmail.com> (raw)
In-Reply-To: <e8b6b390-7034-4d01-a565-8d5d48309a05@gmail.com>
In testing Fedora 44's TeX Live packages, a warning in .log files
caused build failures with this message:
LaTeX Warning: You have requested release `2026/06/01' of LaTeX,
but only release `2025-11-01' is available.
Package: array 2026/01/25 v2.7a Tabular extension package (FMi)
\col@sep=\dimen149
### Incompatible package(s) detected. See perfbook.log for details. ###
The root cause of this is mismatching LaTeXe2 and array.sty versions
contained in Fedora 44's texlive-base and texlive-tools packages.
This was reported at Fedora bugzilla [1], without getting much
attention of its maintainer.
As a tentative measure, add a fall-through mode in runlatex.sh which
can be enabled by saying:
make WARNEXIT=0
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2447682 [1]
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
---
utilities/runfirstlatex.sh | 6 +++++-
utilities/runlatex.sh | 18 +++++++++++++++---
2 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/utilities/runfirstlatex.sh b/utilities/runfirstlatex.sh
index 3fed1b69..269a3b62 100644
--- a/utilities/runfirstlatex.sh
+++ b/utilities/runfirstlatex.sh
@@ -68,6 +68,7 @@ fi
basename=`echo $1 | sed -e 's/\.tex$//'`
: ${LATEX:=pdflatex}
+: ${WARNEXIT:=1}
if iconv --list | grep -q -i iso-8859-1
then
@@ -94,7 +95,10 @@ then
grep -A 4 'LaTeX Warning: You have requested' $basename.log
echo "### Incompatible package(s) detected. See $basename.log for details. ###"
echo "### See items 9 and 10 in FAQ-BUILD.txt for how to update. ###"
- exit 1
+ if [ $WARNEXIT -eq 0 ] ; then
+ touch $basename-first.log
+ fi
+ exit $WARNEXIT
fi
if grep -q 'LaTeX Error:' $basename.log
then
diff --git a/utilities/runlatex.sh b/utilities/runlatex.sh
index e9689a99..50aec2f9 100644
--- a/utilities/runlatex.sh
+++ b/utilities/runlatex.sh
@@ -30,6 +30,9 @@
# Akira Yokosawa <akiyks@gmail.com>
: ${LATEX:=pdflatex}
+: ${WARNEXIT:=1}
+
+WARN_REMAIN=0
if iconv --list | grep -q -i iso-8859-1
then
@@ -68,7 +71,10 @@ excerpt_warnings () {
echo "----- You can see $basename-warning.log for the warnings above. -----"
echo "----- If you need to, see $basename.log for details. -----"
rm -f $basename-warning-prev.log
- exit 1
+ WARN_REMAIN=1
+ if [ $WARNEXIT -ne 0 ] ; then
+ exit $WARNEXIT
+ fi
fi
}
@@ -169,8 +175,14 @@ do
iterate_latex
done
excerpt_warnings
-rm -f $basename-warning.log $basename-warning-prev.log
-echo "'$basename.pdf' is ready."
+if [ $WARNEXIT -ne 0 ] ; then
+ rm -f $basename-warning.log $basename-warning-prev.log
+fi
+if [ $WARN_REMAIN -eq 0 ] ; then
+ echo "'$basename.pdf' is ready."
+else
+ echo "'$basename.pdf' is ready, with above warning(s) ignored."
+fi
# cleveref version check (Ubuntu 18.04 LTS has buggy one
if grep -q -F "packageversion{0.21.1}" `kpsewhich cleveref.sty`
then
--
2.43.0
next prev parent reply other threads:[~2026-05-06 11:44 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 ` Akira Yokosawa [this message]
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 ` [PATCH -perfbook 7/8] precheck.sh: Add check of missing LaTeX packages " 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=313423b6-901c-44aa-84d7-855905587856@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