Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 293153 - virtual/jdk-1.6.0 choose dev-java/icedtea6-bin with dev-java/sun-jdk being already installed
Summary: virtual/jdk-1.6.0 choose dev-java/icedtea6-bin with dev-java/sun-jdk being al...
Status: RESOLVED DUPLICATE of bug 292502
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-14 09:43 UTC by Chema
Modified: 2009-11-17 10:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chema 2009-11-14 09:43:23 UTC
I've just tried to update the set system with emerge -avuND system and virtual/jdak wants to install icedtea6-bin, but i already have dev-java/sun-jdk-1.6.0.17 installed and don't want icedtea

Calculating dependencies... done!
[nomerge      ] sys-apps/portage-2.1.7.4  USE="-build -doc -epydoc -python3 (-selinux)" LINGUAS="-pl"
[nomerge      ]  dev-lang/python-2.6.4  USE="berkdb ipv6 readline ssl threads xml -build -doc -examples -gdbm -ncurses -sqlite -tk -ucs2 -wininst"
[nomerge      ]   sys-libs/db-4.7.25_p4  USE="java -doc -nocxx -tcl -test"
[nomerge      ]    virtual/jdk-1.6.0
[ebuild  N    ]     dev-java/icedtea6-bin-1.6.2  USE="X alsa -doc -examples -nsplugin -source" 34,209 kB

Reproducible: Always

Steps to Reproduce:
1.emerge -avuND system
2.
3.

Actual Results:  
Wants to install another jdk package: icedtea6-bin

Expected Results:  
Not install another jdk package if there is one installed

Portage 2.1.7.4 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r0, 2.6.31-gentoo-r4 x86_64)
=================================================================                                    
System uname: Linux-2.6.31-gentoo-r4-x86_64-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.0.1      
Timestamp of tree: Sat, 14 Nov 2009 08:20:01 +0000                                                   
ccache version 2.4 [enabled]                                                                         
app-shells/bash:     4.0_p35                                                                         
dev-java/java-config: 2.1.9-r1                                                                       
dev-lang/python:     2.6.4, 3.1.1-r1                                                                 
dev-python/pycrypto: 2.0.1-r8                                                                        
dev-util/ccache:     2.4-r8                                                                          
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer -frename-registers -msse -msse2 -msse3 -mmmx"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe -fomit-frame-pointer -frename-registers -msse -msse2 -msse3 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo "
LANG="es_ES.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="es es_ES"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/zugaina /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/sunrise /usr/local/portage/layman/ub0rlay /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt cups dbus desktopglobe djvu dri dts dvd dvdr dvdread emboss encode evo exif fam ffmpeg firefox flac foomaticdb fortran gif glib hal hddtemp iconv imagemagick ipv6 java java6 jpeg kde libnotify lm_sensors mad matroska mmx mmxext modules mp2 mp3 mp4 mpeg mplayer mudflap multilib musepack nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rar raw readline reflection samba sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb vdpau vim-syntax vorbis x264 xcb xcomposite xft xine xml xorg xosd xpm xulrunner xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jouni Kosonen 2009-11-14 14:35:08 UTC
Ran into that myself, took a while before it occurred to me to ask portage why it is not happy with the installed jdk:

emerge -pv =dev-java/sun-jdk-1.6.0.17

This was because the license does not match the default pattern "* -@EULA" enforced by >=portage-2.1.7; see bug 152593 for the three year discussion about that.

Why portage selects the next alternative for the virtual instead of saying that an installed package is now masked by license I don't know, that seems to be tracked in bug 292752 

Anyway, adding 
   ACCEPT_LICENSE="* -@EULA dlj-1.1"
to /etc/make.conf or 
   dev-java/sun-jdk:1.6 dlj-1.1
to /etc/portage/package.license should clear this up.

Comment 2 Chema 2009-11-16 16:23:35 UTC
Ok, so it's a new feature, i'll have to search some info about it, but i have a question, if it's a feature of the new version of portage (2.2) why am i seeing it in 2.1.7?
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-11-17 10:32:59 UTC
(In reply to comment #2)
> Ok, so it's a new feature, i'll have to search some info about it, but i have a
> question, if it's a feature of the new version of portage (2.2) why am i seeing
> it in 2.1.7?

Because it was backported to 2.1.7 as well. However, in 2.1.7.5 it will now tell you that your already installed package became license masked so it should be clear what to do.


*** This bug has been marked as a duplicate of bug 292502 ***