Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61986 - ant-optional not optional?
Summary: ant-optional not optional?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
: 62057 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-08-27 17:02 UTC by Nahor
Modified: 2004-09-04 06:10 UTC (History)
7 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 Nahor 2004-08-27 17:02:44 UTC
I have on my system Ant 1.5.4 installed because I installed jboss.
Now Ant 1.6.2 has just become stable so portage wants to upgrade it.
However it wants also to install *21* new packages because Ant now *requires* Ant-Optional which depends on quite a few packages. The total of new packages to install in my configuration is *40969kB*.

So:
 - if ant-optional is really required, it should be renamed.
 - it should also use some USE flags or something, the number and size of all the dependencies are just ridiculous. Why would I need bcel or jython or jsch or rhino just to run just to have a "make" equivalent for java.
Comment 1 Tobias Sager 2004-08-28 04:58:35 UTC
After reading bug 41889, I know what's going on here, but do not agree with the resolution of it.

Why not just say in pkg_postinst() of ant "you might want to take a look at ant-optional for additional ant tools" and drop the requirement for it as it is now.


Solution without that of course is a: emerge --inject ant-optional-1.6.2-r2
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2004-08-28 17:23:33 UTC
*** Bug 62057 has been marked as a duplicate of this bug. ***
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2004-08-29 19:49:06 UTC
I also disagree with the resolution of bug 41889.  Java team, please take steps to  resolve this issue in some other way.
Comment 4 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-30 01:57:03 UTC
ant, needs to depend on ant-optional, because if we have ebuilds depending on ant-optional there is no way to make sure it depends on the same version as the version of ant installed?

If we make an optional useflag for ant, we would need useflag based depends.

We could add a set off noX use flags in ant-optional. But if forsee bugs reports because someone noX'd things a package needs, again there are no useflag based deps.

ant-tasks would probably be a better name for ant-optional
Comment 5 Sven 2004-08-30 07:37:59 UTC
ant-optionals simply should depend on the exact version of ant. For Example ant-optionals-1.6 should depend on ant-1.6.*. Well, if an older version of ant is installed, than ant will be upgradet. A problem is, when an upgrade to ant is available. Than ant will get upgraded, but the portage doesn't complain about that, since it doesn't keep the package-dependencies consistent.

portage should know how to reolve that, shouldn't it?

Well, your way of doing it, doesn't work either.
If an upgrade to ant-optionals is available, portage will upgrade them, and the dependency by ant (which is ant-optionals-1.6* for example) would be broken i guess.
Comment 6 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-30 08:05:27 UTC
the way i was refering to basicly how it is now, and it does work
when there is an update for ant-optional there is always one for ant
there basicly the same.
And ant blocks <ant-optional-${PV}
because if you have diffrend versions of ant and ant-optional installed ant
no longer works, so you have to unmerge ant-optional, upgrade ant, 
then upgrade ant-optional.
Because when ant-optional's deps also have updates, and you upgrade ant, it'll try 
to update those deps b4 ant-optional gets upgraded, and ant won't work for them
There is no clean simple solution here...
Comment 7 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-30 22:17:25 UTC
in ~x86
ant-optional has been renamed to ant-tasks
with noX useflag to disable things
Comment 8 Thomas Matthijs (RETIRED) gentoo-dev 2004-08-30 23:18:31 UTC
just commited a few fixes(ant-tasks-1.6.2-r3)

Comment 9 STefan 2004-09-01 08:59:44 UTC
Hi guys I haven't checked looked at the ebuilds at all, but I almost fell out of my chair, when I saw the output after emerge -upD world.

First question I have is, why does ant want to install: dev-java/blackdown-jdk-1.4.1

if I already have: 

*  dev-java/sun-jdk
      Latest version available: 1.4.2.05
      Latest version installed: 1.4.2.05

installed

I really don't understand, why all of a sudden there are so many packages needed.
Note I currently have ant 1.6.0 installed.
Comment 10 Thomas Matthijs (RETIRED) gentoo-dev 2004-09-04 06:10:39 UTC
ant-optional has been renamed to ant-tasks with noX use flags