Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139481 - dev-java/xerces-2.7.1 fails / xml-commons-external-1.3 not found
Summary: dev-java/xerces-2.7.1 fails / xml-commons-external-1.3 not found
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
Depends on:
Reported: 2006-07-06 14:17 UTC by Wulf Krueger (RETIRED)
Modified: 2006-09-11 01:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

ebuild --debug ... install output (xml-commons-external-1.3.02.ebuild.debug,53.14 KB, text/plain)
2006-07-06 22:17 UTC, Wulf Krueger (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Wulf Krueger (RETIRED) gentoo-dev 2006-07-06 14:17:46 UTC
>>> Emerging (1 of 7) dev-java/xerces-2.7.1 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking Xerces-J-src.2.7.1.tar.gz ;-)
 * Enabling generation-2 compatibility ...
 * Using sun-jdk-1.4                                                                                            [ ok ]
>>> Unpacking source...
>>> Unpacking Xerces-J-src.2.7.1.tar.gz to /var/tmp/portage/xerces-2.7.1/work
tar: A lone zero block at 19079
 * Applying xerces-2.7.1-gentoo.patch ...                                                                       [ ok ]
 * Applying xerces-2.7.1-no_dom3.patch ...                                                                      [ ok ]

!!! ERROR: dev-java/xerces-2.7.1 failed.
Call stack:, line 1545:   Called dyn_unpack, line 711:   Called src_unpack
  xerces-2.7.1.ebuild, line 38:   Called java-pkg_jar-from 'xml-commons-external-1.3' 'xml-apis.jar'
  java-pkg.eclass, line 321:   Called die

!!! Installation problems with jars in xml-commons-external-1.3 - is it installed?
!!! If you need support, post the topmost build error, and the call stack if relevant.

xml-commons-external is installed and can be re-emerged successfully.

emerge -pv xml-commons-external

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-java/xml-commons-external-1.3.02  USE="-doc -source" 0 kB

emerge --info:

Portage 2.1.1_pre2-r4 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.16-gentoo-r8 i686)
System uname: 2.6.16-gentoo-r8 i686 AMD Athlon(TM) XP 2800+
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
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.11-r5
CFLAGS="-mtune=athlon-xp -march=athlon-xp -O3 -pipe -fprefetch-loop-arrays -mmmx -msse -m3dnow -fomit-frame-pointer -fno-ident -falign-functions=64 -fweb -frename-registers"
CONFIG_PROTECT="/etc /mnt/etc /usr/kde/devel/env /usr/kde/devel/share/config /usr/kde/devel/shutdown /usr/share/X11/xkb /usr/share/config /var/www/localhost /var/www/localhost/cgi-bin /var/www/localhost/htdig /var/www/localhost/htdocs/phpmyadmin"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-mtune=athlon-xp -march=athlon-xp -O3 -pipe -fprefetch-loop-arrays -mmmx -msse -m3dnow -fomit-frame-pointer -fno-ident -falign-functions=64 -fweb -frename-registers -fvisibility-inlines-hidden"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
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'"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/break-my-gentoo-main /usr/local/overlays/ebuild-exchange /usr/local/overlays/ecatmur /usr/local/overlays/erazor /usr/local/overlays/fluidportage /usr/local/overlays/gentoo-de /usr/local/overlays/gentopia /usr/local/overlays/kde-experimental /usr/local/overlays/php /usr/local/overlays/science /usr/local/overlays/webapps-experimental /usr/local/overlays/wrobel-experimental /usr/local/overlays/wrobel-stable /usr/local/overlays/xwing /usr/local/overlays/zugaina /usr/local/overlays/kpex-media /usr/local/overlays/vmware /usr/local/overlays/portage-xgl"
USE="x86 16bit 3dnow 3dnowext 3ds S3TC X X509 Xaw3d a52 aac acl acpi aim alsa apache2 apm arts artswrappersuid artworkextra asf async audiofile avi bash-completion bdf berkdb bitmap-fonts bzip2 bzlib c++ cairo caps cdb cdparanoia cdr cg chroot cli client codecs compiz composite cpdflib cracklib crypt css cups curl curlwrappers dbus dga dio divx4linux djbfft dlloader dmi dri dts dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal exif expat extensions fam fame fastcgi fb fbcon ffmpeg firefox flac fluidsynth font-server foomaticdb foreign-package foreign-sysvinit fortran fpx freetype gd gdbm german gif glibc-omitfp glitz glut glx gnokii gnutls gpm graphviz gs gtk gtk2 hal iconv icq idea idn ieee1394 imap imlib innodb ipv6 isdnlog java javascript jbig jce joystick jp2 jpeg jpeg2k kde kdeenablefinal latex ldap leim libg++ libwww lm_sensors lzo lzw mad matroska mikmod milter mime mjpeg mmap mmx mmxext mng modplug monkey mono motif mozdevelop mozilla mozsvg mp3 mpeg mpi mplayer mule multi-tty mysqli ncurses network nls nptl nptlonly nsplugin ntlm nvidia offensive ogg openal opengl oss pam pcntl pcre pdf pdflib perl pertty php pic pie plotutils png posix pppd python qt qt3 qt4 quicktime readline real recode reflection samba sasl scanner sdk sdl session shared sharedmem smime sndfile snmp sockets sox speex spell spl sse ssl svg symbol_visibility sysvipc tcpd tetex theora threads tiff transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vcdimager vdr videos vidix vorbis win32codecs wmf wxwindows xanim xchatdccserver xcomposite xface xgl xine xinerama xml xml2 xmlrpc xmms xorg xpm xrandr xscreensaver xsl xv xvid xvmc yv12 zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_apm video_cards_nv video_cards_nvidia"
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-07-06 18:51:38 UTC
Works fine for me with these versions of xerces and xml-commons-external. Could you try remering xml-commons-external? Perhaps something happened to its installation at some point...
Comment 2 Wulf Krueger (RETIRED) gentoo-dev 2006-07-06 21:31:28 UTC
I've successfully re-emerged xml-commons-external several times already. Unfortunately, that didn't help.
Comment 3 Wulf Krueger (RETIRED) gentoo-dev 2006-07-06 22:16:36 UTC
I've now had a look at java-pkg_jar-from() in the java-pkg eclass:

"java-config --classpath=xml-commons-external-1.3" shows


But the whole "lib" subdirectory is missing. My first theory now was that emerging it fails even though it explicitly states otherwise:

     [echo] Jarring ./build/xml-apis.jar from ./build/classes
    [mkdir] Created dir: /var/tmp/portage/xml-commons-external-1.3.02/work/xml-commons-external-1.3.02/build/classes/license
     [copy] Copying 7 files to /var/tmp/portage/xml-commons-external-1.3.02/work/xml-commons-external-1.3.02/build/classes/license
      [jar] Building jar: /var/tmp/portage/xml-commons-external-1.3.02/work/xml-commons-external-1.3.02/build/xml-apis.jar

Total time: 5 seconds
>>> Source compiled.

An "ebuild ... compile" creates it, though:

ls -l /var/tmp/portage/xml-commons-external-1.3.02/work/xml-commons-external-1.3.02/build/xml-apis.jar
-rw-r--r-- 1 root root 193558  7. Jul 06:48 /var/tmp/portage/xml-commons-external-1.3.02/work/xml-commons-external-1.3.02/build/xml-apis.jar

Running "ebuild ... install" successfully creates the image structure, copies the docs and package.env - but NOT xml-apis.jar which is still fine in the build directory.

I've run "ebuild --debug /usr/portage/dev-java/xml-commons-external/xml-commons-external-1.3.02.ebuild install" now to get a log for you as the problem obviously occurs in java-pkg_dojar in src_install(). I will attach the log as a text file now as it is rather huge. Should attaching it fail for any reason, you can get it at:

I didn't spot anything unusual in it but that doesn't mean much. :)

I won't "fix" this by copying the jar myself so that we can find out what the reason for this is.
Comment 4 Wulf Krueger (RETIRED) gentoo-dev 2006-07-06 22:17:48 UTC
Created attachment 91091 [details]
ebuild --debug ... install output
Comment 5 Wulf Krueger (RETIRED) gentoo-dev 2006-07-07 10:52:35 UTC
Same problem with xml-commons-resolver.
Comment 6 Wulf Krueger (RETIRED) gentoo-dev 2006-07-07 12:26:52 UTC
And xerces itself, too.

All three show the same symptoms I described. In contrast to that commons-beanutils works fine - it uses the java-2 eclasses. 

java-check-environment shows no problems with either java-1 or java-2. java-1.5-fixer congratulates me for my sanity (which I consider to be cynical currently ;) ).

Is there anything else I can do to help?
Comment 7 Wulf Krueger (RETIRED) gentoo-dev 2006-07-07 16:29:01 UTC
I've now removed everything Java and tried reinstalling the needed stuff from scratch without confcache, ccache and everything else that might (or might not) influence the build process. 

I've deleted all eclasses and re-synched to make sure there's no bit rot or whatever. Nothing helped so far.
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-10 15:23:53 UTC
Does it still happen if you sync and update anything and run java-check-environment to find any stale overlays that could interfer?
Comment 9 Wulf Krueger (RETIRED) gentoo-dev 2006-09-11 01:29:44 UTC
Sorry, I forgot about this bug during those two months. 

After battling with Java for two more weeks or so I got all of these problems fixed by temporarily modifying some eclasses. I guess it was a temporary glitch in the new Java system because for testing I had removed all overlays, I sync daily, java-1.5-fixer and java-check-environment found no problems.