Skip to contentSkip to conversation

runlatex.sh: Detect fvextra versions with known minor regression

PATCH In review Akira Yokosawa 2 participants 2 messages Oct 16, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 runlatex.sh: Detect fvextra versions with known minor regression

fvextra versions from v1.11.0 to v1.13.2 (latest) have a minor regression which ignores fancyvrb's "samepage=true" key. It is used in perfbook to prevent short snippets from broken across columns/pages. This is a minor regression but affects reproducible build of perfbook.

Add commands at the final phase of runlatex.sh to detect those buggy fvextra and emit suggestion of installing unaffected fvextra.

Unfortunately, distro texlive packages based on upstream TeX Live since early March 2025 are all affected by this regression, including debian trixie and opensuse/leap 16.0 (Long Term Support); and ubuntu plucky and questing (Rolling release); as well as archlinux and opensuse/tumbleweed (Rapid release) as of this writing.

This issue was reported upstream at [1].

---
 utilities/runlatex.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
utilities/runlatex.sh +16 -0
index 17d833ad..d5b1844d 100644
@@ -169,6 +169,22 @@ then
 	echo "### Consider upgrading to Ubuntu 20.04 LTS or later.     ###"
 	echo "############################################################"
 fi
+# fvextra version check (Ubuntu 25.04 and 25.10 have buggy one
+FVEXTRA_VER=`grep -E -e 'fvextra .* v[0-9\.]+' $basename.log | \
+		sed -e 's/.* \(v.*\) fv.*/\1/'`
+#echo $FVEXTRA_VER
+FVEXTRA_BUGGY_SINCE=v1.11.0
+FVEXTRA_BUGGY_UNTIL=v1.13.2
+
+fvextra_since=`env printf "$FVEXTRA_BUGGY_SINCE\n$FVEXTRA_VER" | sort -V | head -n 1`
+fvextra_until=`env printf "$FVEXTRA_BUGGY_UNTIL\n$FVEXTRA_VER" | sort -V | tail -n 1`
+
+if [ $fvextra_since = $FVEXTRA_BUGGY_SINCE -a $fvextra_until = $FVEXTRA_BUGGY_UNTIL ] ; then
+	echo "Buggy fvextra $FVEXTRA_VER detected."
+	echo "It causes undesirable page/column breaks in short code snippets."
+	echo "Consider installing fvextra < $FVEXTRA_BUGGY_SINCE or > $FVEXTRA_BUGGY_UNTIL."
+fi
+
 # to avoid redundant run of bibtex and pdflatex
 touch $basename.bbl
 touch $basename.pdf

base-commit: f3d75a725a3efbb5ba4822d3f1b835c6ae08c464

Signature · 1 line
2.43.0
#1 lore raw
Quoted 14 lines · Akira Yokosawa

fvextra versions from v1.11.0 to v1.13.2 (latest) have a minor regression which ignores fancyvrb's "samepage=true" key. It is used in perfbook to prevent short snippets from broken across columns/pages. This is a minor regression but affects reproducible build of perfbook.

Add commands at the final phase of runlatex.sh to detect those buggy fvextra and emit suggestion of installing unaffected fvextra.

Unfortunately, distro texlive packages based on upstream TeX Live since early March 2025 are all affected by this regression, including debian trixie and opensuse/leap 16.0 (Long Term Support); and ubuntu plucky and questing (Rolling release); as well as archlinux and opensuse/tumbleweed (Rapid release) as of this writing.

Quoted 4 lines

This issue was reported upstream at [1].

Queuend and pushed, and thank you very much for finding and fixing this one!

Thanx, Paul

Quoted 37 lines
---
 utilities/runlatex.sh | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
utilities/runlatex.sh +16 -0
index 17d833ad..d5b1844d 100644
@@ -169,6 +169,22 @@ then
 	echo "### Consider upgrading to Ubuntu 20.04 LTS or later.     ###"
 	echo "############################################################"
 fi
+# fvextra version check (Ubuntu 25.04 and 25.10 have buggy one
+FVEXTRA_VER=`grep -E -e 'fvextra .* v[0-9\.]+' $basename.log | \
+		sed -e 's/.* \(v.*\) fv.*/\1/'`
+#echo $FVEXTRA_VER
+FVEXTRA_BUGGY_SINCE=v1.11.0
+FVEXTRA_BUGGY_UNTIL=v1.13.2
+
+fvextra_since=`env printf "$FVEXTRA_BUGGY_SINCE\n$FVEXTRA_VER" | sort -V | head -n 1`
+fvextra_until=`env printf "$FVEXTRA_BUGGY_UNTIL\n$FVEXTRA_VER" | sort -V | tail -n 1`
+
+if [ $fvextra_since = $FVEXTRA_BUGGY_SINCE -a $fvextra_until = $FVEXTRA_BUGGY_UNTIL ] ; then
+	echo "Buggy fvextra $FVEXTRA_VER detected."
+	echo "It causes undesirable page/column breaks in short code snippets."
+	echo "Consider installing fvextra < $FVEXTRA_BUGGY_SINCE or > $FVEXTRA_BUGGY_UNTIL."
+fi
+
 # to avoid redundant run of bibtex and pdflatex
 touch $basename.bbl
 touch $basename.pdf

base-commit: f3d75a725a3efbb5ba4822d3f1b835c6ae08c464

Signature · 1 line
2.43.0