docs: fix French PDF build with babel-french 4.x (TeX Live 2025)#4255
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
package-indep (debian:sid)CI job fails building the French PDF documentation:Root cause
babel-french 4.x (TeX Live 2025, now in Debian sid) removed legacy option keys such as
CompactItemize, deprecated since babel-french 3.0 (2015). dblatex 0.3.12'sdbk_locale.stystill calls\frenchbsetup{CompactItemize=false}from its\babelsetup{fr}hook. The\frenchbsetupmacro itself still exists as an alias, so dblatex's\@ifundefinedguard passes, but the removed key now raises a fatal l3keys "unknown key" error. This affects any distro shipping TeX Live 2025+; sid is simply the first CI image to carry it.Fix
In
docs/src/emc2.sty(loaded before the hook executes), when the modern\frenchsetupinterface is available (babel-french >= 3.0), neutralize the legacy\frenchbsetupmacro and apply the documented modern equivalent ofCompactItemize=false(StandardItemizeEnv=true, StandardItemLabels=true). Older toolchains keep the previous behavior via the\@ifundefinedguard, so bullseye/bookworm/trixie output is unchanged.Testing
debian:sidcontainer with the pristine style file; the fixed file builds the French test PDF.debian:sid(debian/configure,apt build-dep --indep-only,debuild --build=all): completes with exit 0, includingdocs/src/fr/Master_Developer.pdfand thelinuxcnc-doc-frpackage.