Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161270 - x11-libs/gtk+-2.10.6 automagic cups dependency
Summary: x11-libs/gtk+-2.10.6 automagic cups dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 191808 192434 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-01-10 04:12 UTC by Emil Wojak
Modified: 2007-09-21 19:45 UTC (History)
4 users (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 Emil Wojak 2007-01-10 04:12:52 UTC
If gtk+-2.10.6 is emerged before CUPS, it doesn't provide CUPS backend, which is why CUPS-option is missing in GTK+ based apps' print dialog. If CUPS is emerged before, then everything works fine.
In my opinion, GTK+ should use the cups use flag, which would pull in cups dependency if set, forcing cups to be installed before GTK+.

Reproducible: Always

Steps to Reproduce:
USE="cups" emerge gtk+
Actual Results:  
CUPS backend is missing, which is fairly natural since the cups use flag is ignored.

Expected Results:  
USE="cups" emerge -av gtk+
cups get's pulled in before gtk+, which causes gtk+ to include cups printbackend.

I have no clue how many people out there emerge cups in a latter stage of sytem install, ie. after having gtk+ installed, and I was astonished to find only one post in the newsgroups, so either this must be a relatively new bug (has the use flag been removed recently?) or I'm somewhat odd :P
Nevertheless, people might decide to switch from, say, lpr-ng or have their computer equipped with a printer after having their Linux box set up and running, so I think turning on a global cups use flag and issuing an "emerge -DN world" should do well for including cups support in as many packages as possible, especially the basic libs that gtk+ represents :)
In few words, I find this flag damn necessary, even though a workaround is as simple as reemerging gtk+.
Comment 1 Mart Raudsepp gentoo-dev 2007-01-14 16:13:23 UTC
Although I agree on this, note that there will be a circular dependency problem then still:

gtk+ would depend on net-print/cups
net-print/cups depends on virtual/ghostscript
virtual/ghostscript can be provided by (either) app-text/ghostscript-{gpl,esp,gnu}
app-text/ghostscript-{gpl,esp,gnu} depends on x11-libs/gtk+ with USE=gtk

I believe this is still better than not depending on cups at all.
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-01-22 20:13:24 UTC
This would be new in gtk+-2.10, which is the first to include printing support.  I'm not sure what we can do about the circular dep; Introducing one in the default USE flags is a very big proglem, worse than no printing option, IMO.  Of course, ghostscript already has a circular dep with cups, so maybe it's not so bad.

The printing herd is basically non-existent at the moment, so I'm not sure we'll get this fixed.  Maybe the best solution is to remove the gtk frontend from the ghostscript installs?  Does anyone use them?  (the one I have, from ghostscript-esp, just segfaults on startup, so it's not very useful)

For now, the solution is to re-emerge gtk+ after emerging cups.
Comment 3 Charles Moyes 2007-04-01 19:40:10 UTC
Even if I emerge GTK+ after CUPS, my CUPS printers are not showing up in GTK+ print dialogs.
Comment 4 Emil Wojak 2007-04-01 20:03:20 UTC
What version of gtk+ are you emerging?
As Daniel Gryniewicz said, CUPS support is new as of gtk+-2.10.
Are your CUPS printers showing up in some other (non-gtk+) printing dialog boxes?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-09-09 10:42:35 UTC
*** Bug 191808 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-09-09 11:00:51 UTC
(In reply to comment #2)
> Maybe the best solution is to remove the gtk frontend
> from the ghostscript installs?  Does anyone use them?  (the one I have, from
> ghostscript-esp, just segfaults on startup, so it's not very useful)

What's that utility supposed to be called? I don't get any gsx or any other GUI tool even if I emerge ghostscript-gpl w/ USE="X gtk", so it appears to do nothing at all?!

[ebuild   R   ] app-text/ghostscript-gpl-8.57  USE="X -bindist -cjk cups djvu gtk jpeg2k" 20,373 kB 

@printing - ping, what's USE=gtk good for in ghostscript?
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-09-13 18:13:39 UTC
*** Bug 192434 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-09-13 18:14:44 UTC
I talked to genstef a couple days ago in #-bugs and the result essentially was the that gtk use flag in ghostcript-* is useless.
Comment 9 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-09-19 19:05:49 UTC
I've added a cups use flag to 2.12.0, which should go into portage today.  I've been unable to get it to cause any circular deps, but someone else might have the magic combination of packages...
Comment 10 Daniel Gryniewicz (RETIRED) gentoo-dev 2007-09-21 19:45:05 UTC
2.12.0 is in the tree.