Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170526 - dev-java/commons-pool-1.3 emerge fails
Summary: dev-java/commons-pool-1.3 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 01:49 UTC by Andy Pflueger
Modified: 2007-03-12 14:29 UTC (History)
1 user (show)

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


Attachments
dev-java commons-pool-1.3 build log (build.log,2.10 KB, text/plain)
2007-03-12 01:51 UTC, Andy Pflueger
Details
emerge info output (emerge.info,2.79 KB, text/plain)
2007-03-12 10:10 UTC, Andy Pflueger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Pflueger 2007-03-12 01:49:20 UTC
After merging all dependent packages for the tomcat-5.5.20-r8 package, it fails and stops the merge process on package dev-java/commons-pool-1.3.

Reproducible: Always

Steps to Reproduce:
1. emerge -av tomcat
2. Answer "yes" to continue merge process.
3. Error occurs.

Actual Results:  
When I issue step 1 to begin the merge, the following occurs while calculating dependencies:

mytoy andy # emerge -av tomcat

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

Calculating dependencies -!!! Digest verification failed:
!!! /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0.10.ebuild
!!! Reason: Filesize does not match recorded size
!!! Got: 4604
!!! Expected: 4603
... done!

Then, the following occurs once the merge starts before it fails:

>>> Emerging (1 of 50) dev-java/commons-pool-1.3 to /
 * commons-pool-1.3-src.tar.gz MD5 ;-) ...                                                                                                           [ ok ]
 * commons-pool-1.3-src.tar.gz RMD160 ;-) ...                                                                                                        [ ok ]
 * commons-pool-1.3-src.tar.gz SHA1 ;-) ...                                                                                                          [ ok ]
 * commons-pool-1.3-src.tar.gz SHA256 ;-) ...                                                                                                        [ ok ]
 * commons-pool-1.3-src.tar.gz size ;-) ...                                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                               [ ok ]
 * checking commons-pool-1.3-src.tar.gz ;-) ...                                                                                                      [ ok ]
Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 85, in ?
    (options, args) = parser.parse_args()
  File "/usr/lib/python2.4/optparse.py", line 1277, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.4/optparse.py", line 1317, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.4/optparse.py", line 1392, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.4/optparse.py", line 709, in process
    return self.take_action(
  File "/usr/lib/python2.4/optparse.py", line 728, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/bin/depend-java-query", line 49, in get_vm
    vm = verman.get_vm(value)
  File "/usr/share/java-config-2/pym/java_config/VersionManager.py", line 151, in get_vm
    raise Exception("Couldn't find suitable VM. Possible invalid dependency string.")
Exception: Couldn't find suitable VM. Possible invalid dependency string.
 * Unable to determine VM for building from dependencies:
NV_DEPEND: >=virtual/jdk-1.4
        >=dev-java/ant-core-1.4
        test? ( >=dev-java/junit-3.7 )  >=dev-java/java-config-2.0.19-r1 >=sys-apps/portage-2.1_pre1 >=dev-java/javatoolkit-0.1.5 >=sys-apps/portage-2.1_pre1
VNEED:

!!! ERROR: dev-java/commons-pool-1.3 failed.
Call stack:
  ebuild.sh, line 1627:   Called dyn_setup
  ebuild.sh, line 698:   Called qa_call 'pre_pkg_setup'
  ebuild.sh, line 38:   Called pre_pkg_setup
  java-pkg-2.eclass, line 97:   Called java-pkg-2_pkg_setup
  java-pkg-2.eclass, line 55:   Called java-pkg_init
  java-utils-2.eclass, line 1691:   Called java-pkg_switch-vm
  java-utils-2.eclass, line 2079:   Called die

!!! Failed to determine VM for building.
!!! 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-java/commons-pool-1.3/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME=""
JAVACFLAGS="" COMPILER=""

Expected Results:  
I expect to have tomcat installed when all this merges correctly.

Here's my emerge --info output:

mytoy andy # emerge --info
Portage 2.1.2-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 i686)
=================================================================
System uname: 2.6.19-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 23 Jan 2007 11:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.5, 2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://mirror.usu.edu/mirrors/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
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="3dnow 3dnowext X a52 aac alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzlib cdparanoia cdr cli cracklib crypt cups dio directfb divx4linux dlloader dri dts dv dvb dvd dvdr dvdread eds emboss encode esd exif fbcon ffmpeg flac foomaticdb fortran freetype gdbm ggi gif gnome gpm gstreamer gtk gtk2 iconv imagemagick imlib isdnlog jpeg kde kdeenablefinal kdexdeltas libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg mysql mythtv ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl oss pam pcre perl php png pppd python qt qt3 qt4 quicktime readline reflection scsi sdk sdl session spell spl sqlite sse ssl svga symlink tcpd theora truetype truetype-fonts type1-fonts udev usb v4l vcd vorbis x86 xine xml xorg xosd xv xvmc zlib" ALSA_CARDS="snd-intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon fglrx vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Andy Pflueger 2007-03-12 01:51:22 UTC
Created attachment 113032 [details]
dev-java commons-pool-1.3 build log
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-03-12 07:46:43 UTC
(In reply to comment #0)
> 
> Calculating dependencies -!!! Digest verification failed:
> !!! /usr/portage/dev-java/sun-jdk/sun-jdk-1.5.0.10.ebuild
> !!! Reason: Filesize does not match recorded size
> !!! Got: 4604
> !!! Expected: 4603
> ... done!
> 

Because Portage can't source sun-jdk-1.5.0.10 it also probably can't find a JDK to work with. I don't see anything in CVS wrong with this one and it hasn't been changed in a while so either you modified this locally or had a bad sync. Please emerge --sync and reopen if the bad digest does not go away and fix this problem.
Comment 3 Andy Pflueger 2007-03-12 10:10:01 UTC
Created attachment 113054 [details]
emerge info output
Comment 4 Andy Pflueger 2007-03-12 10:11:08 UTC
After running emerge --sync as suggested, still receiving failure error when trying to find JVM.

mytoy andy # emerge -v tomcat
Calculating dependencies... done!

>>> Emerging (1 of 25) dev-java/eclipse-ecj-3.2 to /
>>> Downloading 'ftp://ftp.ussg.iu.edu/pub/linux/gentoo/distfiles/eclipse-ecj-3.2.tar.bz2'
--06:06:51--  ftp://ftp.ussg.iu.edu/pub/linux/gentoo/distfiles/eclipse-ecj-3.2.tar.bz2
           => `/usr/portage/distfiles/eclipse-ecj-3.2.tar.bz2'
Resolving ftp.ussg.iu.edu... 156.56.247.193
Connecting to ftp.ussg.iu.edu[156.56.247.193]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/linux/gentoo/distfiles ... done.
==> PASV ... done.    ==> RETR eclipse-ecj-3.2.tar.bz2 ... done.
Length: 612,611 (unauthoritative)

100%[===============================================================================================================>] 612,611      301.75K/s

06:06:53 (300.87 KB/s) - `/usr/portage/distfiles/eclipse-ecj-3.2.tar.bz2' saved [612,611]

 * checking ebuild checksums ;-) ...                                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                               [ ok ]
 * checking eclipse-ecj-3.2.tar.bz2 ;-) ...                                                                                                          [ ok ]
Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 85, in ?
    (options, args) = parser.parse_args()
  File "/usr/lib/python2.4/optparse.py", line 1277, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.4/optparse.py", line 1317, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.4/optparse.py", line 1392, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.4/optparse.py", line 709, in process
    return self.take_action(
  File "/usr/lib/python2.4/optparse.py", line 728, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/bin/depend-java-query", line 49, in get_vm
    vm = verman.get_vm(value)
  File "/usr/share/java-config-2/pym/java_config/VersionManager.py", line 151, in get_vm
    raise Exception("Couldn't find suitable VM. Possible invalid dependency string.")
Exception: Couldn't find suitable VM. Possible invalid dependency string.
 * Unable to determine VM for building from dependencies:
NV_DEPEND: >=virtual/jre-1.4
        >=virtual/jdk-1.4
        dev-java/ant-core  >=dev-java/java-config-2.0.31 >=sys-apps/portage-2.1_pre1
VNEED:

!!! ERROR: dev-java/eclipse-ecj-3.2 failed.
Call stack:
  ebuild.sh, line 1627:   Called dyn_setup
  ebuild.sh, line 698:   Called qa_call 'pre_pkg_setup'
  ebuild.sh, line 38:   Called pre_pkg_setup
  java-pkg-2.eclass, line 101:   Called java-pkg-2_pkg_setup
  java-pkg-2.eclass, line 55:   Called java-pkg_init
  java-utils-2.eclass, line 1823:   Called java-pkg_switch-vm
  java-utils-2.eclass, line 2211:   Called die

!!! Failed to determine VM for building.
!!! 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-java/eclipse-ecj-3.2/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-03-12 10:27:56 UTC
What's the output of
java-check-environment
java-config -L
Comment 6 Andy Pflueger 2007-03-12 14:17:45 UTC
(In reply to comment #5)
> What's the output of
> java-check-environment
> java-config -L
> 

As requested, here's the output:

mytoy andy # java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...
 * Generation-1 configuration files were found in /etc/env.d/java
 * Please run the following to remove them:
# rm /etc/env.d/java/20blackdown-jdk-1.4.2.02 /etc/env.d/java/20blackdown-jre-1.4.2.02

 * You must then update your VMs to Generation-2 by running:
# emerge -autv1 '' ''

 * If you've done this already, but java-check-environment
 * still prompts you to emerge the same stuff, be sure that you
 * have each package keyworded properly to get the latest version.
 * Refer to the Gentoo Java upgrade guide for complete list of
 * packages to put into package.keywords.                                                                                     [ !! ]

 * Some problems were found. Please follow the instructions above, and rerun java-check-environment

mytoy andy # java-config -L
The following VMs are available for generation-2:
Comment 7 Andy Pflueger 2007-03-12 14:22:57 UTC
(In reply to comment #5)
> What's the output of
> java-check-environment
> java-config -L
> 

I'm in the process of running the suggested emerge commands as output by java-check-environment now. Will reply back soon with results.
Comment 8 Andy Pflueger 2007-03-12 14:29:18 UTC
Ran java-check-environment and followed instructions to address VM issues. After doing so, am now able to "emerge tomcat". Following is the final output from java-check-environment from my system where I now seem to have a working Java VM environment.


mytoy andy # java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...                                                                                          [ ok ]

 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                                                                        [ ok ]

 * Checking generation_1_system_vm ...                                                                                        [ ok ]

 * Checking virtual_provides ...
 * Found PROVIDE files from old-style virtuals. Please remove them:
# rm /var/db/pkg/dev-java/blackdown-jre-1.4.2.02-r1/PROVIDE                                                                   [ !! ]

 * Some problems were found. Please follow the instructions above, and rerun java-check-environment
mytoy andy # rm /var/db/pkg/dev-java/blackdown-jre-1.4.2.02-r1/PROVIDE
mytoy andy # java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...                                                                                          [ ok ]

 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                                                                        [ ok ]

 * Checking generation_1_system_vm ...                                                                                        [ ok ]

 * Checking virtual_provides ...                                                                                              [ ok ]

 * Checking overlays_eclasses ...                                                                                             [ ok ]

 * Java environment is sane. Congratulations!
mytoy andy #
mytoy andy # java-config -L
The following VMs are available for generation-2:
*)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]