Skip to content

configure.ac: check enable_poppler instead of unset CUPS_PDFTOPS - #815

Merged
tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
shubhamk0205:gsoc/724-universal-filter-check-error-in-configur
Nov 23, 2026
Merged

tillkamppeter merged 1 commit into
OpenPrinting:masterfrom
shubhamk0205:gsoc/724-universal-filter-check-error-in-configur

Conversation

@shubhamk0205

Copy link
Copy Markdown
Contributor

The universal CUPS filter is supposed to be turned off only when neither Ghostscript nor Poppler is enabled. The Poppler half of the check looks at CUPS_PDFTOPS, which nothing in cups-filters sets any more (it came from the pdftops check that moved to libcupsfilters in the 2.0 split). So the check really only looks at Ghostscript, and --disable-ghostscript turns the universal filter off even with Poppler still enabled.

This changes it to test enable_poppler, the variable --enable-poppler/--disable-poppler set a few lines above.

I asked on the issue whether to do this or drop the check altogether and didn't get a reply, so I went with the smallest change that keeps the original intent (no universal filter when both renderers are disabled). If you'd rather drop the check, I'm happy to change it.

universal CUPS filter: line from the configure summary, Ubuntu 24.04, CUPS 2.4:

configure options before after
(default) yes yes
--disable-ghostscript no yes
--disable-poppler yes yes
--disable-ghostscript --disable-poppler no no

With --disable-ghostscript, make install now installs the universal filter and cupsfilters-universal.convs again. make check and make test-autopkgtest pass with the default options.

Fixes #724

Assisted-by: Claude Code:claude-opus-5-5

The universal CUPS filter is meant to be turned off only when neither
Ghostscript nor Poppler is enabled.  The check tests CUPS_PDFTOPS for
Poppler, but that variable was only set by the pdftops check that
moved to libcupsfilters, so it is always empty here.  As a result
--disable-ghostscript alone turns the universal filter off even
though Poppler is still enabled.

Test enable_poppler, which --enable-poppler/--disable-poppler set a
few lines above, instead.  With the default options and with
--disable-poppler nothing changes; with --disable-ghostscript the
universal filter now stays enabled; with both disabled it is still
turned off.

Fixes OpenPrinting#724
@shubhamk0205
shubhamk0205 marked this pull request as ready for review November 23, 2026 07:15
@tillkamppeter
tillkamppeter merged commit 04ae16a into OpenPrinting:master Nov 23, 2026
10 of 11 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.

Universal filter check error in configure.ac

2 participants