Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 89188

Summary: Kaffe-1.1.5 breaks the virtual/java depend
Product: Gentoo Linux Reporter: Dion Sole <aphex>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: 2005.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dion Sole 2005-04-15 07:58:41 UTC
Kaffe-1.1.5 provides the virtual/jdk-1.4 and virtual/jre-1.4 virtuals, but whenever I try to install a package that depends on virtual/jdk-1.4 (or less), or <=virtual/jre-1.4 (and lesser versions), emerge stops and complains that it cannot find a package to match "dev-java/kaffe-1.4", "dev-java/kaffe-1.3.1" etc....
I'm not sure of how portage calculates virtuals, but I'm pretty certain it shouldn't be looking at the actual package version when looking for virtuals. It seems like it's finding the first package that provides virtual/java*, and then looking at the version of that package, rather than the version specified in the packages PROVIDE line.
Java-config points to the correct VM (kaffe-1.1.5), and within /var/db/pkg/dev-java/kaffe-1.1.5, the PROVIDE file correctly displays "virtual/jdk-1.4" and "virtual/jre-1.4"

I havn't tried this with other virtuals, as I can't find a case where a package that provides a particular virtual doesn't also follow the same version naming.
It seems to be unique to kaffe due to the fact its versions are different to the virtual versions it provides.

emerge --info:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Feb 19 2005, 12:57:21)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-g -ftracer -O2 -march=athlon-xp -pipe -Wall"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -g -ftracer -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy distlocks nostrip sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo http://mirror.pacific.net.au/linux/Gentoo"
LANG="en_NZ.utf8"
LC_ALL="en_NZ.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d a52 aac acl acpi alsa apache2 audiofile avi bash-completion bcmath berkdb bidi bitmap-fonts bmp bzlib caps cdparanoia cjk cpdflib crypt ctype cups curl curlwrappers dba debug dedicated dga dio directfb divx4linux doc emacs encode examples exif fastcgi fbcon ffmpeg fftw flac foomaticdb fortran freetds freewnn ftp gcj gd gdbm ggi gif ginac glut gmp gnome gnutls gpm gstreamer gtk gtk2 gtkhtml guile hal iconv imagemagick imap imlib innodb java javascript jikes jpeg junit kdeenablefinal kerberos krb4 lcms ldap leim lesstif libg++ libwww lm_sensors mad mailwrapper matroska matrox mbox mikmod milter mime mmap mmx mng mono motif mozilla mp3 mpeg mpi msn mule mysql nas ncurses nls nocd nptl odbc offensive ogg oggvorbis openal opengl pam pcntl pcre pdflib perl php pic png posix postgres ppds python quicktime readline ruby samba sasl sdl shared sharedmem simplexml slp sndfile snmp soap sockets socks5 speex spell spl sse ssl svg sysvipc tcltk tcpd tetex threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode usb vcd vhosts videos vorbis wxwindows xinerama xml xml2 xmlrpc xosd xpm xprint xsl xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS, LINGUAS
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-05-16 06:14:50 UTC
it's a problem with portage, a possible solution could be glep 37 if it will be accepted and implemented, one day:

http://www.gentoo.org/proj/en/glep/glep-0037.html#specification
Comment 2 Thomas Matthijs (RETIRED) gentoo-dev 2005-09-10 11:19:54 UTC
Portage issue, we can't fix this
We'll have too wait untill they fix it
(they are working on it, amongst alot of other things)