Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298187 - media-gfx/ufraw - please autoenable USE gtk for USE gimp
Summary: media-gfx/ufraw - please autoenable USE gtk for USE gimp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-24 10:53 UTC by kavol
Modified: 2009-12-28 19:25 UTC (History)
0 users

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 kavol 2009-12-24 10:53:30 UTC
Hi.

While trying to build ufraw gimp plugin, emerge failed saying:

* to enable gimp support, you must enable gtk support

I have gtk USE flag off globally, as I prefer Qt (when there is a choice ...)

This forces me to add an exception for ufraw into package.use, which I don't like (each bit diverging from the default configuration increases the maintenance pain) and seems quite unnecessary for me - if gimp support is explicitly requested, and gtk is a pre-requisite for it, then it should be autoenabled. I've already seen this behaviour with some ebuilds before, please make my life easier (well, hopefully not just mine :-)) also with this one.

Reproducible: Always

Steps to Reproduce:
1. USE="gimp -gtk" emerge ufraw

Actual Results:  
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/ufraw-0.16
 * ufraw-0.16.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                [ ok ]
 * to enable gimp support, you must enable gtk support
 *
 * ERROR: media-gfx/ufraw-0.16 failed.
...

Expected Results:  
Calculating dependencies... done!                                        

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-gfx/ufraw-0.16
 * ufraw-0.16.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                
[ ok ]
 *
 * WARN: gimp enabled, autoenabling gtk
 *
>>> Unpacking source...                                                                                                                                                                                                                     
...

While we may argue that while GIMP is explicitly enabled, GTK is explicitly disabled, and so emerge could not decide which should take preference, I think the common concept of dependency solving is to pull in the minimal set of things needed to satisfy the demand for things selected to be installed, not to disable to install things that need things which wouldn't be pulled in otherwise.
Comment 1 Markus Meier gentoo-dev 2009-12-28 16:09:37 UTC
fixed in cvs, thanks for the suggestion.

  28 Dec 2009; Markus Meier <maekke@gentoo.org> ufraw-0.16.ebuild:
  autoenable gtk when gimp is enabled, bug #298187
Comment 2 kavol 2009-12-28 19:25:19 UTC
thanks!