Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44765 - Catch 22 between (dev-java) ant-optional and commons-net
Summary: Catch 22 between (dev-java) ant-optional and commons-net
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-15 13:11 UTC by Ajay Gautam
Modified: 2004-03-17 19:10 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 Ajay Gautam 2004-03-15 13:11:44 UTC
I performed a "emerge -U world --deep" to find the following:

commons-net requires that ant-optional and ant have save version. I guess, the ant package got updated, but ant-optional did not. Now:

=======================
root # emerge ant-optional -p

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     U ] dev-java/commons-net-1.1.0 [1.0.0]
[ebuild     U ] dev-java/ant-optional-1.6.1 [1.6.0-r3]
=======================

when I emerge it,
=======================
root # emerge ant-optional
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-java/commons-net-1.1.0 to /
>>> md5 src_uri ;-) commons-net-1.1.0-src.tar.gz
>>> Unpacking source...
>>> Unpacking commons-net-1.1.0-src.tar.gz to /var/tmp/portage/commons-net-1.1.0/work
 * Applying gentoo.diff...                                                                                                       [ ok ]
>>> Source unpacked.
Invalid implementation version between Ant core and Ant optional tasks.
 core    : 1.6.1
 optional: 1.6.0

!!! ERROR: dev-java/commons-net-1.1.0 failed.
!!! Function src_compile, Line 29, Exitcode 1
!!! died on ant
=======================

Its kind of a deadlock. Can't emerge commons-net and can't emerge ant-optional!

Thanks

Ajay
Comment 1 Ajay Gautam 2004-03-15 13:18:56 UTC
workaround (not a permanent one):

- remove commons-net dependency from ant-optional ebuild
- emerge ant-optional
- undo change to ant-optional build
- emerge commons-net
- continue with emerge -U world --deep

Thanks

Ajay
Comment 2 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-16 20:16:28 UTC
Should be fixed in portage now, you shouldn't be able to install ant w/o ant-optional. You also are forced to remove the old ant-optional too before you install the new ant. 
Comment 3 Ajay Gautam 2004-03-17 04:58:05 UTC
Hello, Please have a look at the following (did emerge sync after reading the last update):

root # emerge -U world -p
>>> --upgradeonly implies --update... adding --update to options.
 
These are the packages that I would merge, in order:
 
Calculating world dependencies ...done!
[ebuild     U ] sys-fs/devfsd-1.3.25-r8 [1.3.25-r5]
[ebuild     U ] app-cdr/cdrtools-2.01_alpha27 [2.01_alpha26]
[ebuild  N    ] sys-kernel/gentoo-dev-sources-2.6.4-r1
[ebuild     U ] dev-java/ant-1.6.1-r1 [1.6.1]
[ebuild  N    ] dev-java/avalon-logkit-1.2.2
[ebuild     U ] dev-java/commons-logging-1.0.3-r1 [1.0.3]
[ebuild     U ] dev-java/ant-optional-1.6.1-r1 [1.6.1]
[ebuild     U ] net-misc/openvpn-1.5.0-r1 [1.5.0]
[ebuild     U ] app-cdr/cdrdao-1.1.8-r1 [1.1.8]

Looking at the sequence, its still ant before ant-optional. Looking at the ebuilds, I think the problem is that commons-loggind depends on ant, also ant-optional depends on commons-logging.

I hope its ok for me to reopen the bug.

Thanks

Ajay
Comment 4 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-17 06:09:22 UTC
I don't see what's wrong with this. You need to unmerge ant-optional before you emerge the new ant. You can build commons-net and logging without optional... I haven't been able to track down a specific problem
Comment 5 Ajay Gautam 2004-03-17 19:10:10 UTC
Please accept my apologies for the limited understanding of the portage system. I unmerger ant-optional, did emerge, and all worked fine.

Thanks a lot for the help, and thanks a million for working on Gentoo :)

Really appreciated.

Ajay