Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385 - when dev-java/blackdown-jre is merged last, dev-java/ant can't be merged
Summary: when dev-java/blackdown-jre is merged last, dev-java/ant can't be merged
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-28 09:00 UTC by Leo Lipelis (RETIRED)
Modified: 2003-02-04 19:42 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 Leo Lipelis (RETIRED) gentoo-dev 2002-01-28 09:00:18 UTC
1. If dev-java/blackdown-jre is merged after the jdk, ant emerge will fail like
this:
---start---
root@gamma aeoo # emerge dev-java/ant          
Calculating dependencies. done!
>>> emerge dev-java/ant-1.4.1-r1 to /
>>> md5 ;-) jakarta-ant-1.4.1-src.tar.gz
>>> Unpacking source...
>>> Unpacking jakarta-ant-1.4.1-src.tar.gz
>>> Source unpacked.
... Bootstrapping Ant Distribution
... Compiling Ant Classes
./bootstrap.sh: /opt/blackdown-jre-1.3.1/bin/javac: No such file or directory
... Copying Required Files
cp: cannot create regular file `classes/org/apache/tools/ant/taskdefs': No such
file or directory
cp: cannot create regular file `classes/org/apache/tools/ant/types': No such
file or directory
... Building Ant Distribution
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
... Cleaning Up Build Directories
... Done Bootstrapping Ant Distribution
Bootstrap FAILED
---end---

What's interesting is that this failure is not even noticed by portage, and
portage thinks that ant was installed successfully.  If I unmerge jre, it will
remove /etc/env.d/20java.

---start---
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
---end---

Using: sys-apps/portage-1.8.6-r1

Everything works perfectly if I simply emerge jdk and then ant.
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-02-07 15:50:37 UTC
Try remerging your JDK. The old JDK/JRE scheme had a flaw with which path took
precedence