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
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
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.
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
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
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