Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290251 - icedtea6-bin required for emerging swt or xulrunner .tbz2's ??
Summary: icedtea6-bin required for emerging swt or xulrunner .tbz2's ??
Status: RESOLVED DUPLICATE of bug 382421
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 15:36 UTC by Christopher Friedt
Modified: 2011-12-02 13:03 UTC (History)
2 users (show)

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 Christopher Friedt 2009-10-23 15:36:08 UTC
This is a very odd thing that I've encountered more than a few times now, and it's obviously a bug in binary package resolution.

I build binary packages on a different machine, and provide the PKGDIR via NFS to a few EEE pc's on my network. 

Recently, when trying to install a binary net-libs/xulrunner or dev-java/swt, portage is insisting that I need to install dev-java/icedtea6-bin in order to have a virtual/{jdk,jre} installed. This happens in spite of the fact that I already have dev-java/sun-jdk-1.6 installed on the build and host machines.

I can't say for certain, but it would appear that virtual/{jdk,jre} is not being resolved at install time for binary packages.

Reproducible: Always

Steps to Reproduce:
1.install dev-java/sun-jdk-1.4
2.build a binary swt or xulrunner
3.try to emerge -K swt or xulrunner

Actual Results:  
emerge: there are no ebuilds to satisfy "dev-java/icedtea6-bin".
(dependency required by "net-libs/xulrunner-1.9.1.3" [binary])

or 

emerge: there are no ebuilds to satisfy "dev-java/icedtea6-bin".
(dependency required by "dev-java/swt-3.5" [binary])


Expected Results:  
binary package is installed

Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-i686-Intel-R-_Celeron-R-_M_processor_900MHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 12 Oct 2009 01:45:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.8-r1
dev-lang/python:     2.4.3-r4, 2.5.2-r7, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/tmp/distdir"
EMERGE_DEFAULT_OPTS="-K"
FEATURES="buildpkg distlocks fixpackages genpkgindex nodoc noinfo parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
INSTALL_MASK="*.h *.a *.la *.pc *.result *.test *.opt /usr/share/doc /usr/share/info /usr/lib/pkgconfig /usr/share/locale /usr/share/info /usr/share/gtk-doc /usr/include /usr/share/gnome/help /usr/share/aclocal* /usr/share/automake* /usr/share/autoconf* /usr/share/gnuconfig /usr/share/openvpn/easy-rsa /usr/lib/svgalib /usr/lib/svgalib/threeDKit /usr/share/opencv/doc /usr/share/opencv/samples /usr/share/lastfm/i18n /usr/share/qt4"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB en_US de fr"
MAKEOPTS="-j2"
PKGDIR="/mnt/floppy/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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/vuze-bin /usr/local/portage/layman/gnome2-globalmenu /usr/local/portage/layman/goahead /usr/local/portage/eee_overlay /usr/local/portage/gentoo_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aalib acl acpi alsa amr avahi berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt cups curl dbus dga directfb divx djvu dri dvd dvdr dvdread dvi eds encode fbcon ffmpeg firefox flac fontconfig fortran galago gdbm gif glitz gmedia gmp gnome gnome-keyring gnome-print gpm gstreamer gtk hal iconv idn imlib java jbig jpeg lcms ldap libffi libnotify libsamplerate log4j lzma mad madwifi midi mmx modules mono mp3 mpeg mplayer musicbrainz nautilus ncurses network networkmanager nptl nptlonly ntp odbc ogg opengl pam pcre perl png policykit ppds pulseaudio python qt3 qt4 quicktime readline realmedia samba sdl session slang spell sse sse2 ssl subtitles svg svga sysfs tcpd theora tiff truetype unicode upnp v4l v4l2 vcd vorbis wmp x264 x86 xattr xcb xine xinerama xml xorg xpm xprint xulrunner xv xvid zeroconf 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en en_GB en_US de fr" USERLAND="GNU" VIDEO_CARDS="i810 i830 intel vesa vga"
Unset:  CPPFLAGS, CTARGET, FFLAGS, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-10-26 12:11:24 UTC
(In reply to comment #0)
> have a virtual/{jdk,jre} installed. This happens in spite of the fact that I
> already have dev-java/sun-jdk-1.6 installed on the build and host machines.
> ...
> 1.install dev-java/sun-jdk-1.4

So, is it a sun-jdk-1.4 or sun-jdk-1.6?

Anyway, in swt-3.5 there's a RDEPEND=">=virtual/jre-1.4", so portage probably selects jre-1.6. jre-1.6.0 has RDEPEND="|| ( =virtual/jdk-1.6.0* <and some actual jre's>" so portage probably selects the jdk-1.6. The first alternative in jdk-1.6 is dev-java/icedtea6-bin.

Due to this multiple indirection, portage probably does not search all possible variants. If you have sun-jdk-1.4 installed, then it does not search the analogical path through jre-1.4 and jre-1.6. If you have sun-jdk-1.6 installed then it's stranger, it goes to the correct path though jre-1.6 and jdk-1.6 and should select sun-jdk-1.6 because it's installed, despite icedtea6-bin being the first alternative there.

CC'ing dev-portage :)
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-10-26 12:12:28 UTC
(In reply to comment #1)
> analogical path through jre-1.4 and jre-1.6

I meant through jre-1.4 and jdk-1.4
Comment 3 Zac Medico gentoo-dev 2009-10-26 19:45:44 UTC
Can you please try it with portage-2.1.7.1 to see if it makes any difference? Also, please post --debug --pretend output for the commands which are behaving poorly.
Comment 4 Zac Medico gentoo-dev 2009-10-26 19:57:04 UTC
(In reply to comment #1)
> Due to this multiple indirection, portage probably does not search all possible
> variants.

It seems like something else is wrong because that's already handled since bug 141118.
Comment 5 Ralph Sennhauser (RETIRED) gentoo-dev 2011-12-02 13:03:52 UTC
Marking this one as duplicate in favor of the newer one wrt portages resolver and handling of jre/jdk virtuals.

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