Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253125 - dev-util/eclipse-sdk-3.2.1-r3: emerge fails with ant-1.7.1
Summary: dev-util/eclipse-sdk-3.2.1-r3: emerge fails with ant-1.7.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Development Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-30 11:51 UTC by bugzilla-gentoo
Modified: 2009-01-02 08:42 UTC (History)
1 user (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 bugzilla-gentoo 2008-12-30 11:51:16 UTC
While updating my system I encountered an emerge failure when eclipse-sdk was reemerged with the branding use-flag.


Reproducible: Always

Steps to Reproduce:
update ant to 1.7.1 and therefor deinstall ant-tasks. Files like icontract.jar are located in /usr/share/ant/lib/ now instead of /usr/share/ant-tasks/lib/. The eclipse-sdk build fails because /var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/plugins/org.apache.ant/lib/ant-icontract.jar softlinks to /usr/share/ant-tasks/lib/icontract.jar instead of /usr/share/ant/lib/icontract.jar.
Actual Results:  

BUILD FAILED
/var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/build.xml:143: The following error occurred while executing this line:
/var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/assemble.org.eclipse.sdk.linux.gtk.x86.xml:154: The following error occurred while executing this line:
/var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/plugins/org.apache.ant/build.xml:73: Failed to copy /var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/plugins/org.apache.ant/lib/ant-icontract.jar to /var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/tmp/eclipse/plugins/org.apache.ant_1.6.5/lib/ant-icontract.jar due to java.io.FileNotFoundException /var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/plugins/org.apache.ant/lib/ant-icontract.jar (No such file or directory)

Total time: 41 minutes 7 seconds
 *
 * ERROR: dev-util/eclipse-sdk-3.2.1-r3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4342:  Called die
 * The specific snippet of code:
 *       ./build -os linux -arch ${eclipsearch} -ws gtk -java5home ${java5home} || die "build failed"
 *  The die message:
 *   build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info 

Expected Results:  
The link should point to the correct location in /usr/share/ant/lib/

# ls -l /var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/plugins/org.apache.ant/lib/ant-icontract.jar
lrwxrwxrwx 1 root root 42  1. Sep 2004  /var/tmp/portage/dev-util/eclipse-sdk-3.2.1-r3/work/plugins/org.apache.ant/lib/ant-icontract.jar -> /usr/share/ant-tasks/lib/ant-icontract.jar
# locate ant-icontract.jar
/usr/share/ant/lib/ant-icontract.jar
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-12-31 08:41:44 UTC
I don't think we ever had an ant-icontract package, we certainly don't have it now, where did you get it from? Looks like your /usr/share/ant/lib/ant-icontract.jar is a broken symlink?
Comment 2 bugzilla-gentoo 2008-12-31 09:35:02 UTC
icontract.jar was part of the ant-tasks package as far as i know which got removed.
Comment 3 bugzilla-gentoo 2008-12-31 09:46:54 UTC
You are right. /usr/share/ant/lib/ant-icontract.jar is a broken and orphaned symlink. I removed it and I am retrying to emerge eclipse-sdk.
Comment 4 bugzilla-gentoo 2008-12-31 11:23:46 UTC
After removing all orphaned symlinks pointing into /usr/share/ant-tasks/lib/ (ant-icontract.jar, ant-jai.jar, ant-netrexx.jar, ant-starteam.jar, ant-stylebook.jar, ant-vaj.jar, ant-weblogic.jar, ant-xslp.jar) the eclipse-sdk  build process finished successfully. I wonder why those symlinks weren't removed when unmerging ant-tasks. Is there any tool to scan for orphaned libraries, config files, ... ? I will mark the bug report as invalid if nobody disagrees.
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-01-01 22:38:23 UTC
(In reply to comment #4)
> After removing all orphaned symlinks pointing into /usr/share/ant-tasks/lib/
> (ant-icontract.jar, ant-jai.jar, ant-netrexx.jar, ant-starteam.jar,
> ant-stylebook.jar, ant-vaj.jar, ant-weblogic.jar, ant-xslp.jar) the eclipse-sdk
>  build process finished successfully. I wonder why those symlinks weren't
> removed when unmerging ant-tasks.

Well I also wonder how the symlinks were created, and if they were even owned by the ant-tasks installation. As I recall and confirmed by looking through cvs attic, we started to create these symlinks in a version of ant-tasks that no longer installed icontract and stuff. Perhaps there were some overlay versions I forgot about?

> Is there any tool to scan for orphaned
> libraries, config files, ... ?

Dunno about official one, I think there were some "decruft" scripts in forums/wiki.

> I will mark the bug report as invalid if nobody
> disagrees.

Yeah unless someone else experiences the same thing, it looks like an oddity.
Comment 6 bugzilla-gentoo 2009-01-02 08:42:08 UTC
Thank you for your comments.