Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175781 - virtual/jdk-1.4.2 pulls in sun-jdk when kaffe is already installed
Summary: virtual/jdk-1.4.2 pulls in sun-jdk when kaffe is already installed
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
Depends on:
Blocks: 155723 172589
  Show dependency tree
Reported: 2007-04-23 23:56 UTC by Enrico 'nekrad' Weigelt
Modified: 2007-04-26 21:45 UTC (History)
1 user (show)

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

add a higher preference priority to ensure that kaffe is properly preferred (prefer.patch,1.30 KB, patch)
2007-04-24 07:02 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico 'nekrad' Weigelt 2007-04-23 23:56:03 UTC
When trying to install virtual/jdk-1.4.2, it always wants to pull in sun-jdk (which  BTW cannot be installed automatcally), even if some other generation-1-jdk (ie. kaffe) is already installed. It seems that the handling of variante deps is broken.With virtual/jdk-1.4.1 evrything's fine.

Reproducible: Always
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-24 06:17:46 UTC
Hmm yeah. 1.4.1 aside, there's only kaffe dep on it so no wonder, but I could reproduce the problem with 1.4.2

The virtual looks like this:

I left only kaffe installed, and:
# emerge -av =virtual/jdk-1.4.2

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

Calculating dependencies... done!
[ebuild  NSf  ] dev-java/sun-jdk-  USE="X alsa jce nsplugin -doc -examples" 0 kB
[ebuild  NS   ] virtual/jdk-1.4.2  0 kB

Installing blackdown manually -> no longer tries to pull sun. Also, nothing is pulled if the virtual (and kaffe only) is already installed and I run emerge -uav on the virtual.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-24 06:19:51 UTC
Portage (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.20-gentoo-r6-perfctrb i686)
System uname: 2.6.20-gentoo-r6-perfctrb i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.10
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r7
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
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.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
CFLAGS="-O2 -march=athlon64 -msse3 -pipe"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -msse3 -pipe"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests ccache collision-protect cvs distlocks parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
LINGUAS="en cs"
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 --filter=H_**/files/digest-*"
PORTDIR_OVERLAY="/usr/portage/local/java-overlay /usr/portage/local/java-experimental /usr/portage/local/caster"
USE="3dnow 3dnowext 7zip X aac alsa amr apache2 apm audiofile bash-completion berkdb bitmap-fonts bluetooth branding bzip2 caps cdr cjk cli cracklib crypt cups curl dbus dri dts dvd dvdr dvdread emboss encode fam ffmpeg fftw firefox flac foomaticdb fortran gdbm ggi gif gmp gpm gstreamer gtk gtk2 hal iconv icq idn imlib ipv6 isdnlog java javascript jpeg kde kdeenablefinal kipi lcms libg++ libnotify libwww lm_sensors lua lzo mad maildir matroska mbox midi mikmod mmx mmxext motif mozcalendar mozdevelop moznoirc mp3 mpeg mplayer musicbrainz ncurses nls nptl nsplugin nvidia ogg openal opengl oscar pam pcre pdf perl png pppd python qt3 qt4 quicktime readline reflection rtc sdl seamonkey session slang sockets speex spell spl sqlite sse sse2 ssl svg tcl tcltk tcpd threads tiff tk truetype truetype-fonts type1-fonts unicode usb v4l vorbis webdav win32codecs x86 xcomposite xine xml xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev v4l"
Comment 3 Zac Medico gentoo-dev 2007-04-24 07:02:16 UTC
Created attachment 117117 [details, diff]
add a higher preference priority to ensure that kaffe is properly preferred

This is fixed in svn r6431:6433.
Comment 4 Zac Medico gentoo-dev 2007-04-26 21:45:16 UTC
This has been released in