Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from cups-config to pkg-config #8

Closed
Pandapip1 opened this issue May 22, 2024 · 6 comments
Closed

Switch from cups-config to pkg-config #8

Pandapip1 opened this issue May 22, 2024 · 6 comments

Comments

@Pandapip1
Copy link

braille-printer-app uses cups-config to find CUPS instead of pkg-config. cups-config is removed in libcups.

@sthibaul
Copy link
Collaborator

sthibaul commented Dec 8, 2024

Ok, but how can we get $CUPS_DATADIR, $CUPS_SERVERROOT, $CUPS_SERVERBIN from pkg-config? cups3.pc doesn't seem to be exposing them...

@michaelrsweet
Copy link
Member

@sthibaul Those values are not used for CUPS 3.x.

They are available with the CUPS 2.x pkg-config file (cups.pc) using the "--variable=..." option, e.g.:

pkg-config --variable=cups_datadir cups
pkg-config --variable=cups_serverbin cups
pkg-config --variable=cups_serverroot cups

That said, I'm not sure why you would need these values in a printer application?

@sthibaul
Copy link
Collaborator

sthibaul commented Dec 8, 2024

the braille-printer-app is still halfway into being a printer application

@sthibaul
Copy link
Collaborator

sthibaul commented Dec 8, 2024

I don't see these variables in cups.pc from version 2.4.10

@tillkamppeter
Copy link
Member

Note that said directories are usually not needed by a Printer Application. A Printer Application should be installable independent of a CUPS (2.x) daemon/environment. It should not be based on installed CUPS filters. For getting the functionality of filters provided by CUPS or by cups-filters, use the filter functions of libcupsfilters, for filters which are part of the braille-printer-app repo, as long as they are separate executables, if no local CUPS environment is discovered, put them into /usr/lib/braille-printer-app/filter/ for example.

@tillkamppeter
Copy link
Member

Note that said directories are usually not needed by a Printer Application. A Printer Application should be installable independent of a CUPS (2.x) daemon/environment. It should not be based on installed CUPS filters. For getting the functionality of filters provided by CUPS or by cups-filters, use the filter functions of libcupsfilters, for filters which are part of the braille-printer-app repo, as long as they are separate executables, if no local CUPS environment is discovered, put them into /usr/lib/braille-printer-app/filter/ for example.

See #11 .

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

No branches or pull requests

4 participants