Repository navigation
feat(cups-client): add CUPS lp/lpstat/lpoptions stack - #18
Merged
Merged
Conversation
The runtimes ship libcups and lpr but not the System V clients, so apps whose print dialog runs lpstat/lp (craft-print in the ArtCraft apps) list no printers. Same build as upstream WordCraft's cups-client module, plus the socket wrapper, packaged as an extra-data stack instead of being compiled into one app's ref (flatpark/flatpark#969).
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.
Why
The runtimes ship libcups and
lpr, notlp/lpstat/lpoptions. Apps whose print dialog shells out to them list no printers. First consumer: WordCraft (flatpark/flatpark#969), which currently compiles CUPS into its own ref — against the rule that a dependency is never built in an app's manifest. Moving it here lets PhotoCraft and the other ArtCraft apps reuse it.What
cups-client.yml, onorg.freedesktop.Sdk//26.08,x86_64 aarch64. Same configure/make as upstream's cups-client module (packaging: Flatpak finds and prints to CUPS printers storytold/wordcraft#4909); CUPS 2.4.20 from OpenPrinting, sha256 re-verified.bin/{lp,lpstat,lpoptions}is upstream's socket wrapper, changed only to findlibexec/cups/from its own resolved path, so it works under/app/extra/cups-client/.bin/*onto PATH and grants--socket=cups(+ Avahi,~/.cups:roas needed). Header comment has the details.Tested
Local
flatpak-builderbuild (x86_64). In anorg.freedesktop.Platform//26.08sandbox with--socket=cups, the archive laid out as a consumer unpacks it:lpstat -r/lpstat -p -dreach the host scheduler and list its printerldd: everything resolves from the runtime (avahi-client, gnutls, zlib, …)client.confwithServerName= mounted socket works; two disagreeingServerNamelines fail with the wrapper's messageNot tested: aarch64 (release workflow builds it), an actual print job.
Next
Run the release workflow on this branch with tag
cups-client-v1, then re-pin WordCraft in #969.