Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110337 - [metabug] Making packages depend on dev-java/ant-core instead of dev-java/ant when possible
Summary: [metabug] Making packages depend on dev-java/ant-core instead of dev-java/ant...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL: http://www.gentoo.org/proj/en/java/ja...
Whiteboard:
Keywords: Tracker
Depends on:
Blocks:
 
Reported: 2005-10-24 08:53 UTC by Petteri Räty (RETIRED)
Modified: 2009-05-15 22:36 UTC (History)
1 user (show)

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


Attachments
patch for java-devel.xml (java-devel.patch,787 bytes, patch)
2005-10-24 08:54 UTC, Petteri Räty (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2005-10-24 08:53:09 UTC
Following http://www.gentoo.org/proj/en/java/java-devel.xml we should only
depend on dev-java/ant-core when possible. I opened this bug for tracking
various issues related to this transition and for people to report packages that
only need ant-core or have missing dependencies because /usr/bin/ant puts
packages to CLASSPATH which can result as missing dependencies. Nichoj has
created a list to experimental which can act as a starting point:
http://gentooexperimental.org/svn/java/gentoo-java-experimental/ant-deps-nichoj

I also noticed by removing LOCALCLASSPATH from /usr/bin/ant that the following
packages have missing xerces dependency:
dev-java/xmldb
dev-java/aspectj

I will be updating this bug as I find new packages with missing dependencies or
fix packages to depend only on dev-java/ant-core.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2005-10-24 08:54:58 UTC
Created attachment 71337 [details, diff]
patch for java-devel.xml

Here is a proposed patch against
http://gentooexperimental.org/svn/java/axxo-overlay/README/docs/java-devel.xml
to improve the documentation.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2005-10-24 09:16:06 UTC
I fixed dev-java/xmldb and dev-java/aspectj is bogus. It is dev-java/adaptx that
failed.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-12-08 03:50:20 UTC
commons-httpclient-3.0_rc4 fixed
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2005-12-09 03:01:32 UTC
Last night nichoj fixed dev-java/saxpath and earlier dev-java/commons-dbcp
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2005-12-15 17:50:37 UTC
We have to be careful about ant dependencies... I just fixed xdoclet, where it
only had ant-core, but needed ant-tasks for normal compilation.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2005-12-16 00:32:29 UTC
(In reply to comment #5)
> We have to be careful about ant dependencies... I just fixed xdoclet, where it
> only had ant-core, but needed ant-tasks for normal compilation.

That is why I always turn off LOCALCLASSPATH in /usr/bin/ant and start with no
packages installed before changing to just ant-core.
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2006-04-01 07:07:49 UTC
Fixed dev-java/picocontainer
Comment 8 Tristan Heaven (RETIRED) gentoo-dev 2006-10-19 19:37:01 UTC
Is there an easy way to check that a package only needs dev-java/ant-core without removing everything that comes with dev-java/ant before testing?
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2006-10-20 07:30:13 UTC
(In reply to comment #8)
> Is there an easy way to check that a package only needs dev-java/ant-core
> without removing everything that comes with dev-java/ant before testing?
> 

Add JAVA_PKG_STRICT=1 to make.conf
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2006-10-20 07:31:19 UTC
Well JAVA_PKG_STRICT=1 makes sure there are not unsatisfied deps. One way to do it is to remove the ant-tasks package and it to package.provided. This should make packages that need full ant fail.  
Comment 11 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-10-20 09:31:38 UTC
(In reply to comment #8)
> Is there an easy way to check that a package only needs dev-java/ant-core
> without removing everything that comes with dev-java/ant before testing?
> 

It will be possible with the split-ant packaging I'm working on. JAVA_PKG_STRICT=1 will disable optional tasks if there's only ant-core in DEPEND. And you will be able to override it with envvar to test without modifying the ebuild.
Comment 12 Petteri Räty (RETIRED) gentoo-dev 2006-10-29 13:42:14 UTC
dev-java/lucene modified
Comment 13 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-05-15 22:36:59 UTC
This bug was solved ages ago, any new cases of this would be exceptional and need not be meta-tracked.