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
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?
icontract.jar was part of the ant-tasks package as far as i know which got removed.
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.
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.
(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.
Thank you for your comments.