Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 137955

Summary: libidn-0.6.1 requiring java-config with USE=-java, no java on system
Product: Gentoo Linux Reporter: Duncan <1i5t5.duncan>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Duncan 2006-06-25 10:52:00 UTC
Despite the fact that I have no Java on the system (and none to be merged), and have USE=-java, libidn wants java-config, even tho it previously merged without it:

$emerge -ptvD world
[snip]
[nomerge      ]   kde-base/kdelibs-3.5.3-r3  USE=[snip]
[nomerge      ]    net-dns/libidn-0.6.1  USE="-doc -emacs -java -mono% -nls"
[ebuild  N    ]     dev-java/java-config-1.2.11-r1  0 kB

If it could merge without java-config before, it obviously doesn't have to have it.  The ebuild java stuff dependency is conditional on USE=java, but it inherits java-pkg, which depends unconditionally on java-config.  As a responsible admin that for security reasons prefers not to have unneeded packages on my system, and with no java merged to config and -java in USE flags, why am I now forced to have java-config (but not any java) in ordered to have kdelibs (see the tree above)?

Can inherit be conditional on USE flags?  That would seem the simplest solution if it will work.

If conditional inherits aren't possible, perhaps the java-pkg eclass needs to test on the USE flag or a merged java, or perhaps libidn needs to avoid the java-pkg eclass, as it didn't need it before to emerge the same version of libidn, so it shouldn't be needed now.  In any case, requiring java-config when no java is installed or depended on seems counter intuitive, to say the least, and objectionable from a security perspective as well, due to no-unused-packages safe-computing practices.  (Yes, I know it's used for this, but that doesn't make the dependency sane.)

(If there really is a sane reason it's required, feel free to mark this bug invalid, but a little patience and an explanation for your users that just aren't groking it right now would be nice.  =8^)

(I don't believe emerge --info is required on this, with the USE flag info in the emerge output above.  If it is, yell and I'll attach it.)

Duncan
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-25 11:04:02 UTC

*** This bug has been marked as a duplicate of 137923 ***