Skip to content

Fix 2.2.0 test packaging and CUPS datadir detection (#200, #201) - #204

Merged
tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
rkt0209:fix-2.2.0-ci-issues
Aug 6, 2026
Merged

Fix 2.2.0 test packaging and CUPS datadir detection (#200, #201)#204
tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
rkt0209:fix-2.2.0-ci-issues

Conversation

@rkt0209

@rkt0209 rkt0209 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #200
Fixes #201

#201 — CUPS datadir under an architecture-specific prefix. configure.ac now reads CUPS_DATADIR from the cups_datadir variable in cups.pc / cups3.pc instead of reconstructing $prefix/share/cups, which pointed at /usr/<triplet>/share/cups when CUPS is built with an arch-specific prefix. Falls back to the old reconstruction for a .pc that predates the variable.

#200 — release tarball missing test-pdftoraster-copy-height.c. The test was compiled by a wrapper script into /tmp, and its .c was never named in Makefile.am, so make dist omitted it. It is now a proper check_PROGRAMS entry (no libcupsfilters link — it re-checks the copy_height loop logic standalone), so the source ships in the tarball and builds in-tree.

#200 — ASan test fails without libasan. test-pclm-overflow.sh now skips (Automake exit 77) when AddressSanitizer cannot be linked, so a missing libasan is a skip, not a failure; it still runs (and can fail) when ASan is installed.

…OpenPrinting#201)

- configure.ac: get CUPS_DATADIR from the .pc cups_datadir variable, not
  $prefix/share/cups (wrong under an arch-specific CUPS prefix); fallback kept.
- test-pdftoraster-copy-height: proper check_PROGRAMS entry so its .c ships in
  make dist (was compiled by a wrapper into /tmp, omitted from the tarball).
- test-pclm-overflow.sh: skip (exit 77) when AddressSanitizer is unavailable.
@tillkamppeter
tillkamppeter merged commit 9d5a70a into OpenPrinting:master Aug 6, 2026
10 of 14 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.2.0: cups datadir handling pkgconfig vs. cups-config 2.2.0: test failures / release tarballs are missing test-pdftoraster-copy-height.c

2 participants