Repository navigation
configure.ac: check enable_poppler instead of unset CUPS_PDFTOPS - #815
Merged
tillkamppeter merged 1 commit intoNov 23, 2026
Conversation
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
marked this pull request as ready for review
November 23, 2026 07:15
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.
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: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