Here is the emerge command I'm using: # emerge -vp xml-xmlbeans These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] dev-java/xml-xmlbeans-20041217 -doc +junit -source 0 kB It goes until it gets here: drt: [echo] Running random tester [java] seed=0 [java] iterations=20 [java] threads=1 [java] docs=10 [java] read/write [java] with save [java] noquery [java] Seed: 0Seed: 1Seed: 2Seed: 3Seed: 4Seed: 5Seed: 6Seed: 7Seed: 8Seed: 9Seed: 10Seed: 11Seed: 12Seed: 13Seed: 14Seed: 15Seed: 16Seed: 17Seed: 18Seed: 19Seconds to run random tests: 10 [mkdir] Created dir: /var/tmp/portage/xml-xmlbeans-20041217/work/xml-xmlbeans-20041217/v1/build/test/output [echo] Running xbean product drt tests [echo] JUnit output being sent to build/test/output/drt-product.txt BUILD FAILED /var/tmp/portage/xml-xmlbeans-20041217/work/xml-xmlbeans-20041217/v1/build.xml:69: Could not create task or type of type: junit. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'junit'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and the JAR file and/or libraries implementing the functionality were not found at the time you yourself built your installation of Ant from the Ant sources. Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the task and make sure it contains more than merely a META-INF/MANIFEST.MF. If all it contains is the manifest, then rebuild Ant with the needed libraries present in ${ant.home}/lib/optional/ , or alternatively, download a pre-built release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using <taskdef>. - You are attempting to use a task defined using <presetdef> or <macrodef> but have spelt wrong or not defined it at the point of use Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. Total time: 54 seconds !!! ERROR: dev-java/xml-xmlbeans-20041217 failed. !!! Function src_compile, Line 51, Exitcode 1 !!! compile failed Junit is installed and in my classpath (added with java-config): # echo $CLASSPATH /usr/share/junit/lib/junit.jar:. It's also here: # ll $ANT_HOME/lib total 978K drwxr-xr-x 2 root root 6 Jan 2 23:26 ./ drwxr-xr-x 4 root root 5 Jan 2 21:22 ../ -rw-r--r-- 1 root root 8.5K Jan 2 21:22 ant-launcher.jar -rw-r--r-- 1 root root 965K Jan 2 21:22 ant.jar lrwxrwxrwx 1 root root 34 Jan 2 22:00 jdepend.jar -> /usr/share/jdepend/lib/jdepend.jar lrwxrwxrwx 1 root root 30 Jan 2 23:26 junit.jar -> /usr/share/junit/lib/junit.jar Trying to get this fixed because when I do emerge -Duv world it wants to install xml-xmlbeans, libcaca, commons-net, rhino, and ant-tasks. Reproducible: Always Steps to Reproduce: See above. # emerge --info Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-cko1 i686) ================================================================= System uname: 2.6.10-cko1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 23 2004, 18:37:56)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.8.5-r2, 1.6.3, 1.9.3, 1.5, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com http://gentoo.mirrors.pair.com/ http://chod.cwru.edu/gentoo http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LDFLAGS="" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X aac aalib acl alsa apm audiofile avi berkdb bitmap-fonts caps cdparanoia cdr crypt cups dvd encode fam flac font-server foomaticdb fortran gdbm gif gnome gphoto2 gpm gtk gtk2 imlib ipv6 java jikes jpeg junit kde libwww mad mikmod mmx mng mozilla mpeg ncursesnls nptl nvidia offensive oggvorbis opengl pam pdflib perl pic png ppds python qt quicktime readline real samba sdl slang sndfile spell sse ssl svg svga tcpd theora tiff truetype unicode usb wmf xine xml xml2 xmms xprint xv xvid xvmc zlib"
The emerge succeeds if I specify USE="-junit".
Same as Bug 76534 Comment 1. Worked re-emerging with the +junit flag.