Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 813507 - net-print/cups USE=minimal flag request or separate library-only ebuild
Summary: net-print/cups USE=minimal flag request or separate library-only ebuild
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks:
 
Reported: 2021-09-17 23:20 UTC by Tomasz Golinski
Modified: 2021-10-28 09:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Golinski 2021-09-17 23:20:12 UTC
Hi,

There are several packages in portage which depend on net-print/cups, but all they really need is libcups.so.2. The ones I think about are binary packages, some for example ship libcef.so which is precompiled with cups dependency. They usually don't do any printing, so there's no harm done when the whole cups subsystem is not functioning - they only need a lib (maybe even stub would do) to run.

Two examples I noticed are media-sound/spotify and net-im/signal-desktop-bin (see https://bugs.gentoo.org/642008). It can possibly affect also things like www-client/google-chrome, but it has print features. There is a lot of things in portage which depend on cups, but probably don't use them, but I didn't check them.

Cups has a lot of dependencies, including filters, pdf stuff like poppler and so on. As a workaround, it is possible to emerge cups --nodeps (it builds fine), but portage is not happy with such tricks and it would mean adding a lot stuff to packages.provided. USE=minimal flag would be helpful in case of systems which don't need it all. Alternatively a separate ebuild providing only libcups.so could be added.

Reproducible: Always

Steps to Reproduce:
1. emerge spotify

Actual Results:  
You get cups with all its dependencies.