Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257559 - [java-overlay] dev-java/icedtea6-1.4 depends on icedtea6(-bin)
Summary: [java-overlay] dev-java/icedtea6-1.4 depends on icedtea6(-bin)
Status: RESOLVED FIXED
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: icedtea-tracker
  Show dependency tree
 
Reported: 2009-02-04 05:32 UTC by Eric Siegel
Modified: 2009-08-05 21:28 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 Eric Siegel 2009-02-04 05:32:28 UTC
I have dev-java/gcj-jdk (and no other JDK) installed, and I was ready to install dev-java/icedtea6-1.4, but it depends on icedtea6 (which isn't installed).  IcedTea6 should be able to build using gcj-jdk (and thus wouldn't need icedtea6 as a dependency).

Reproducible: Always

Steps to Reproduce:
1. Install dev-java/gcj-jdk (from java-overlay)
2. emerge dev-java/icedtea6-1.4 (from java-overlay)

Actual Results:  
Circular dependencies.  icedtea6 depends on icedtea6.

Expected Results:  
IcedTea6 should have been able to compile using gcj-jdk.

I installed dev-java/icedtea6-bin and used that to install dev-java/icedtea-1.4
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-02-06 13:17:47 UTC
What if you merge gnu-classpath-jdk manually?
Comment 2 Eric Siegel 2009-02-06 17:50:37 UTC
(In reply to comment #1)
> What if you merge gnu-classpath-jdk manually?

That's not the problem.  The problem is that icedtea6-1.4 wants another version of icedtea6 to be installed (regardless of whether I have gcj-jdk installed or not).
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-02-06 22:50:01 UTC
The dependency in icedtea6-1.4 looks like this:

        || ( >=virtual/gnu-classpath-jdk-1.5
                 dev-java/icedtea6
                 dev-java/icedtea6-bin
        )


Which means that if you have gnu-classpath-jdk installed, it should not want icedtea6(-bin)
Comment 4 Eric Siegel 2009-02-07 00:48:08 UTC
(In reply to comment #3)
> The dependency in icedtea6-1.4 looks like this:
> 
>         || ( >=virtual/gnu-classpath-jdk-1.5
>                  dev-java/icedtea6
>                  dev-java/icedtea6-bin
>         )
> 
> 
> Which means that if you have gnu-classpath-jdk installed, it should not want
> icedtea6(-bin)

Oh, I'll try installing gnu-classpath-jdk and see if that fixes anything.  I think gcj-jdk should be added too; so that you need either gnu-classpath-jdk, gcj-jdk, icedtea6 OR icedtea6-bin.
Comment 5 Eric Siegel 2009-02-07 00:51:31 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > The dependency in icedtea6-1.4 looks like this:
> > 
> >         || ( >=virtual/gnu-classpath-jdk-1.5
> >                  dev-java/icedtea6
> >                  dev-java/icedtea6-bin
> >         )
> > 
> > 
> > Which means that if you have gnu-classpath-jdk installed, it should not want
> > icedtea6(-bin)
> 
> Oh, I'll try installing gnu-classpath-jdk and see if that fixes anything.  I
> think gcj-jdk should be added too; so that you need either gnu-classpath-jdk,
> gcj-jdk, icedtea6 OR icedtea6-bin.
> 

What is the difference between gcj-jdk and gnu-classpath-jdk?
Comment 6 Eric Siegel 2009-02-07 07:03:43 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > The dependency in icedtea6-1.4 looks like this:
> > 
> >         || ( >=virtual/gnu-classpath-jdk-1.5
> >                  dev-java/icedtea6
> >                  dev-java/icedtea6-bin
> >         )
> > 
> > 
> > Which means that if you have gnu-classpath-jdk installed, it should not want
> > icedtea6(-bin)
> 
> Oh, I'll try installing gnu-classpath-jdk and see if that fixes anything.  I
> think gcj-jdk should be added too; so that you need either gnu-classpath-jdk,
> gcj-jdk, icedtea6 OR icedtea6-bin.
> 

I installed virtual/gnu-classpath-jdk (which installs dev-java/gcj-jdk), and this is what happens.

nticompass@Hypercube ~ $ sudo emerge -av icedtea6

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

Calculating dependencies... done!


[ebuild  N    ] dev-java/icedtea6-1.4  USE="nsplugin -cacao -debug -doc -examples -javascript -pulseaudio -shark -xrender -zero" 

 * Error: circular dependencies:

('ebuild', '/', 'dev-java/icedtea6-1.4', 'merge') depends on
  ('ebuild', '/', 'dev-java/icedtea6-1.4', 'merge') (hard)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-03-04 19:17:14 UTC
What portage version is that? Please post emerge --info
Comment 8 Alistair Bush (RETIRED) gentoo-dev 2009-03-05 07:58:15 UTC
(In reply to comment #7)
> What portage version is that? Please post emerge --info
> 

also happens with paludis.  FYI.
Comment 9 Martin Mokrejš 2009-07-22 12:49:03 UTC
# emerge -uNDpv world

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

Calculating dependencies... done!


[nomerge      ] virtual/ghostscript-0 
[nomerge      ]  app-text/ghostscript-gpl-8.64-r3  USE="X cups -bindist -cairo -cjk -djvu -gtk -jpeg2k" 
[nomerge      ]   net-print/cups-1.3.11  USE="X java kerberos pam perl python ssl -acl -avahi -dbus -gnutls -jpeg -ldap -php -png -ppds -samba -slp -static -tiff -xinetd -zeroconf" LINGUAS="-de -en -es -et -fr -he -id -it -ja -pl -sv -zh_TW" 
[nomerge      ]    virtual/jre-1.6.0 
[nomerge      ]     dev-java/icedtea6-bin-1.4.1  USE="X nsplugin -alsa -doc -examples -source" 
[ebuild  N    ]      x11-libs/gtk+-2.16.5  USE="X cups -debug -doc -jpeg -jpeg2k -test -tiff -vim-syntax -xinerama" 
[ebuild  N    ]       net-print/cups-1.3.11  USE="X java kerberos pam perl python ssl -acl -avahi -dbus -gnutls -jpeg -ldap -php -png -ppds -samba -slp -static -tiff -xinetd -zeroconf" LINGUAS="-de -en -es -et -fr -he -id -it -ja -pl -sv -zh_TW" 
[ebuild  N    ]        virtual/jre-1.6.0 
[ebuild  N    ]         virtual/jdk-1.6.0 
[ebuild  N    ]          dev-java/icedtea6-bin-1.4.1  USE="X nsplugin -alsa -doc -examples -source" 

 * Error: circular dependencies:

('ebuild', '/', 'virtual/jdk-1.6.0', 'merge') depends on
  ('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') (runtime)
('ebuild', '/', 'x11-libs/gtk+-2.16.5', 'merge') depends on
  ('ebuild', '/', 'net-print/cups-1.3.11', 'merge') (buildtime)
('ebuild', '/', 'net-print/cups-1.3.11', 'merge') depends on
  ('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') (buildtime)
  ('ebuild', '/', 'virtual/jdk-1.6.0', 'merge') (buildtime)
  ('ebuild', '/', 'virtual/jre-1.6.0', 'merge') (buildtime)
('ebuild', '/', 'virtual/jre-1.6.0', 'merge') depends on
  ('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') (runtime)
  ('ebuild', '/', 'virtual/jdk-1.6.0', 'merge') (runtime)
('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') depends on
  ('ebuild', '/', 'x11-libs/gtk+-2.16.5', 'merge') (runtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29.4-default x86_64)
=================================================================
System uname: Linux-2.6.29.4-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 22 Jul 2009 11:00:01 +0000
app-shells/bash:     4.0_p24
dev-lang/python:     2.5.4-r2, 2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 berkdb bzip2 cracklib crypt cups dri fortran gdbm hal iconv java jce kerberos laptop mmx mpi mpich2 multilib ncurses nls nptl nptlonly nsplugin pam pcre perl python readline sse sse2 ssl svg sysfs syslog tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

#

This happens for me on a freshly installed machine.
Comment 10 Eric Siegel 2009-08-02 16:52:07 UTC
New version of icedtea6 should compile fine.
Comment 11 Martin Mokrejš 2009-08-05 21:28:19 UTC
(In reply to comment #10)
> New version of icedtea6 should compile fine.

Really?


# emerge -uNDpv world

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

Calculating dependencies... done!


[nomerge      ] app-editors/emacs-23.1 [22.3-r2] USE="X kerberos svg xpm -Xaw3d -alsa -dbus -gif -gpm -gtk -gzip-el -hesiod -jpeg -m17n-lib -motif -png -sound -source -tiff -toolkit-scroll-bars -xft" 
[nomerge      ]  gnome-base/librsvg-2.26.0  USE="zlib -debug -doc" 
[nomerge      ]   gnome-extra/libgsf-1.14.15  USE="bzip2 python -debug -doc -gnome" 
[nomerge      ]    dev-python/pygtk-2.14.1-r1  USE="X -doc -examples" 
[nomerge      ]     gnome-base/libglade-2.6.4  USE="-debug -doc" 
[ebuild  N    ]      x11-libs/gtk+-2.16.5  USE="X cups -debug -doc -jpeg -jpeg2k -test -tiff -vim-syntax -xinerama" 
[ebuild  N    ]       net-print/cups-1.3.11  USE="X java kerberos pam perl python ssl -acl -avahi -dbus -gnutls -jpeg -ldap -php -png -ppds -samba -slp -static -tiff -xinetd -zeroconf" LINGUAS="-de -en -es -et -fr -he -id -it -ja -pl -sv -zh_TW" 
[ebuild  N    ]        virtual/jre-1.6.0 
[ebuild  N    ]         virtual/jdk-1.6.0 
[ebuild  N    ]          dev-java/icedtea6-bin-1.4.1  USE="X nsplugin -alsa -doc -examples -source" 

 * Error: circular dependencies:

('ebuild', '/', 'virtual/jdk-1.6.0', 'merge') depends on
  ('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') (runtime)
('ebuild', '/', 'net-print/cups-1.3.11', 'merge') depends on
  ('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') (buildtime)
  ('ebuild', '/', 'virtual/jdk-1.6.0', 'merge') (buildtime)
  ('ebuild', '/', 'virtual/jre-1.6.0', 'merge') (buildtime)
('ebuild', '/', 'x11-libs/gtk+-2.16.5', 'merge') depends on
  ('ebuild', '/', 'net-print/cups-1.3.11', 'merge') (buildtime)
('ebuild', '/', 'virtual/jre-1.6.0', 'merge') depends on
  ('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') (runtime)
  ('ebuild', '/', 'virtual/jdk-1.6.0', 'merge') (runtime)
('ebuild', '/', 'dev-java/icedtea6-bin-1.4.1', 'merge') depends on
  ('ebuild', '/', 'x11-libs/gtk+-2.16.5', 'merge') (runtime)


# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29.4-default x86_64)
=================================================================
System uname: Linux-2.6.29.4-default-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9650_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 05 Aug 2009 21:00:01 +0000
app-shells/bash:     4.0_p24
dev-lang/python:     2.5.4-r2, 2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X amd64 berkdb bzip2 cracklib crypt cups dri fortran gdbm hal iconv java jce kerberos laptop mmx mpi mpich2 multilib ncurses nls nptl nptlonly nsplugin pam pcre perl python readline sse sse2 ssl svg sysfs syslog tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY