Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137971 - java-config forced on all pkgs inheriting java-pkg.eclass when USE=-java is set
Summary: java-config forced on all pkgs inheriting java-pkg.eclass when USE=-java is set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 137923 137993 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-25 13:20 UTC by solar (RETIRED)
Modified: 2006-06-25 20:10 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 solar (RETIRED) gentoo-dev 2006-06-25 13:20:41 UTC
The following change is now forcing java-config to be installed on 
javaless boxes when simply inheriting the eclass like libidn does. This
is undesirable and does not follow with minimal setups. Bloats the file
system and the portage VDB.


http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-pkg.eclass?r1=1.35&r2=1.36

Please change that to.

-JAVA_CONFIG_DEP="|| ( =dev-java/java-config-1.3* =dev-java/java-config-1.2* )"
+IUSE=java
+JAVA_CONFIG_DEP="java? ( || ( =dev-java/java-config-1.3* =dev-java/java-config-1.2* ) )"
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-06-25 13:35:19 UTC
That will not work either.

On one hand, it will fix the specific problem for packages with optional Java support ie IUSE=java.

On the other, it will introduce the java use flag on every single package that inherits it, including packages that are pure java. And then, it will only pull in java-config if you have USE=java. There may be cases where the user is installing java stuff, but does not have USE=java, and in these cases, they wouldn't get java-config pulled in.

This problem was considered for the new Java system and eclasses, and is solved by the java-pkg-opt-2 eclass. Basically, this does something like:

DEPEND="java? ( ${JAVA_CONFIG_DEP} )"
RDEPEND="java? ( ${JAVA_CONFIG_DEP} )"

This way, pure java packages inherit java-pkg-2, and get the dep as they expect. And packages with optional java support inherit java-pkg-opt-2, and only get the depends with USE=java.
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2006-06-25 13:53:15 UTC
*** Bug 137923 has been marked as a duplicate of this bug. ***
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-06-25 13:55:16 UTC
After thinking about it a little bit, I realized that JDKs and JREs already depend on java-config. And since we depend on JDKs for building, that should be enough to make java-config available.
Comment 4 Josh Nichols (RETIRED) gentoo-dev 2006-06-25 14:02:00 UTC
Fixed in CVS. Thanks for reporting.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-06-25 20:10:07 UTC
*** Bug 137993 has been marked as a duplicate of this bug. ***