Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941158 - dev-qt/qtbase doesn't really need print support and cups
Summary: dev-qt/qtbase doesn't really need print support and cups
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-08 10:17 UTC by Amit Ugol
Modified: 2024-10-08 10:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log in xz (build.log.xz,93.71 KB, application/x-xz)
2024-10-08 10:17 UTC, Amit Ugol
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Ugol 2024-10-08 10:17:47 UTC
Created attachment 905104 [details]
build.log in xz

currently qtbase (dev-qt/qtbase-6.7.3-r1) forces the inclusion of cups.

I don't have a printer and I don't use cups anywhere in my system so I changed the ebuild to not include it if I use "-cups".

I have been using the system for a while and I see no issues from doing it.

The relevant config stage looks like so:

checking for...
-- Could NOT find Cups (missing: CUPS_LIBRARIES CUPS_INCLUDE_DIR)
...
Build options:
...
-- The following OPTIONAL packages have not been found:
...
 * Cups
...
Qt PrintSupport:
  CUPS ................................... no
...

Can we make cups optional?
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-08 10:22:34 UTC
I don't understand what you mean by forcing inclusion. The USE flag exists and can be disabled.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-10-08 10:24:50 UTC
If you're referring to qtprintsupport, that doesn't need CUPS, and it's unconditionally included as noted at https://wiki.gentoo.org/wiki/Project:Qt/Qt6_migration_notes#From_qtbase (not accidental).
Comment 3 Ionen Wolkens gentoo-dev 2024-10-08 10:37:55 UTC
If you're confused by how it "looks" for cups, it's just that packages often look for things unconditionally but then won't use it as long as it's disabled.

With USE=-cups, it passes -DQT_FEATURE_cups=OFF to explicitly disable it (or at least the original ebuild does, you removed it and turned it into automagic if it finds it).

(as for QtPrintSupport itself, it's tiny/harmless and has no extra dependencies assuming USE=-cups, several packages still need to link with it even if not going to print anything)