Emerging xdoclet 1.2.3 fails with error: build-externalizer: BUILD FAILED /var/tmp/portage/xdoclet-1.2.3/work/xdoclet-1.2.3/build.xml:50: The following error occurred while executing this line: /var/tmp/portage/xdoclet-1.2.3/work/xdoclet-1.2.3/core/build.xml:191: The following error occurred while executing this line: Target `all' does not exist in this project. Total time: 7 seconds !!! ERROR: dev-java/xdoclet-1.2.3 failed. Call stack: ebuild.sh, line 1543: Called dyn_compile ebuild.sh, line 938: Called src_compile xdoclet-1.2.3.ebuild, line 48: Called eant 'core' 'modules' 'maven' java-utils-2.eclass, line 1309: Called die !!! eant failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! 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.3 -target 1.3" COMPILER="javac" and of course, the output of emerge --info emerge --info as follows: Portage 2.1.1_pre5-r2 (default-linux/amd64/2006.0, gcc-3.4.5/amd64-vanilla, glibc-2.3.5-r2, 2.6.17-gentoo-r5 x86_64) ================================================================= System uname: 2.6.17-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.4 Last Sync: Mon, 21 Aug 2006 01:52:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ " LINGUAS="" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aim alsa apache2 avi berkdb bitmap-fonts cli crypt cups curl dlloader dvd dvdr eds elibc_glibc emboss encode expat foomaticdb fortran gd gdm gif glx gnome gpm gstreamer gtk gtk2 imlib input_devices_keyboard input_devices_mouse isdnlog java javascript jikes jpeg junit kde kerberos kernel_linux latin1 ldap lzw lzw-tiff md mozilla mozilla-firefox mp3 mpeg msn mysql ncurses nls nptl nsplugin opengl pam pcre pdflib perl php png pppd python qt qt3 qt4 quicktime raid readline reflection samba sdl server session spell spl ssl tcpd tiff truetype-fonts type1-fonts usb userland_GNU userlocales vhosts video_cards_nv video_cards_nvidia video_cards_vesa xine xinerama xml xmms xorg xpm xv xvid yahoo zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
It seems this failure to compile is caused by a bug/problem with xml-rewrite.py. xml-rewrite.py goes through all the build files and rewrites them to include the correct value for several java things. Internally it uses a minidom parser which for the most part does the job nicely. Unfortunately this parser doesn't correctly resolve external entity references. So the xdoclet/module/xdoclet/build.xml start out like this; <?xml version="1.0"?> <!-- Define references to files containing common targets --> <!DOCTYPE project [ <!ENTITY modules-common SYSTEM "../modules-common.ent"> ]> <!-- the project element's name attribute will be used in the name of the module's jar file --> <project name="xdoclet" default="all"> <!-- Include the file containing common targets. --> &modules-common; </project> but ends up like this <?xml version="1.0" ?> <!-- Define references to files containing common targets --><!DOCTYPE project [ <!ENTITY modules-common SYSTEM "../modules-common.ent"> ]> <!-- the project element's name attribute will be used in the name of the module's jar file --><project default="all" name="xdoclet"> <!-- Include the file containing common targets. --> </project> The important line &modules-common; is lost! Unfortunately the fix for this seems to me to be beyond a quick patch. Python minidom doesn't implement Entity functions.
Unfortunately, xml-rewrite.py does break things that use entities, as you've discovered. So basically, we have to remove java-ant-2 from the inherit, which is what does the xml-rewrite.py call. Then, all the build.xml files need to be patched to effectively do what xml-rewrite.py does on the fly, ie add source and target attri butes to javac nodes.
Fixed in CVS now. Thanks for reporting! Give it a few hours to hit your mirrors then try to remerge.