Skip to content

Read PDFio minimum from libcupsfilters - #128

Merged
tillkamppeter merged 2 commits into
OpenPrinting:masterfrom
ManasBagul23:task16-read-libcupsfilters-dependencies
Dec 1, 2026
Merged

tillkamppeter merged 2 commits into
OpenPrinting:masterfrom
ManasBagul23:task16-read-libcupsfilters-dependencies

Conversation

@ManasBagul23

Copy link
Copy Markdown
Contributor

Summary

This repo's ci/ci-setup.sh hardcoded PDFIO_VER=1.6.4, stale against
libcupsfilters' real requirement (>= 1.6.7 since upstream commit
3316e251). Because libppd builds against whatever libcupsfilters it
built for its own CI leg, a hardcoded, independently-drifting copy here
can silently build a PDFio that's too old.

Fix

Add prepare_libcupsfilters_source/build_libcupsfilters to
ci/ci-setup.sh: cache a pinned libcupsfilters checkout (same URL/ref
knobs as the existing LIBCUPSFILTERS_URL/LIBCUPSFILTERS_REF), verify
the cache still matches the requested URL/ref before reuse, and source
PDFIO_MIN_VERSION from that checkout's ci/dependency-versions.env
instead of a hardcoded literal. cmd_libcupsfilters's source-* case now
builds that same pinned commit, so the PDFio version and the
libcupsfilters build it pairs with can't drift apart between CI steps.

#127's own doc_printf truncation fix needed no change — this just
repairs the dependency path that was masking its CI.

Test plan

Full chain rebuild (PDFio → libcupsfilters → libppd) in a fresh
ubuntu:24.04 container, pointed at this branch, builds PDFio 1.6.7
(read from the pinned libcupsfilters ref, not hardcoded) and links
successfully.

Follows libcupsfilters moving the file from ci/dependency-versions.env
to dependency-versions at the repo root, per Till's review on #394.
@tillkamppeter
tillkamppeter merged commit 02b76e2 into OpenPrinting:master Dec 1, 2026
3 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants