Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262515 - Portage discards package from dependencies when it depends on itself
Summary: Portage discards package from dependencies when it depends on itself
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-15 09:49 UTC by Priit Laes (IRC: plaes)
Modified: 2010-05-02 19:04 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 Priit Laes (IRC: plaes) 2009-03-15 09:49:48 UTC
I ran into following issue with dev-java/icedtea6 ebuild from java-overlay, when upgrading from icedtea6-1.3.1 -> icedtea6-1.4.

In order to build dev-java/icedtea6 one needs to have existing java installation so it has following in his depend:

|| ( dev-java/icedtea6
     dev-java/icedtea6-bin )

When I tried to upgrade from icedtea6-1.3.1 -> icedtea6-1.4, it discarded its existing installation (dev-java/icedtea6-1.3.1) from as dependency and required dev-java/icedtea6-bin explicitly.

After I had emerged it using --nodeps, it no longer was requiring icedtea6-bin.
Comment 1 Priit Laes (IRC: plaes) 2009-03-15 09:49:56 UTC
plaes@chi ~/code/gentoo/gnome $ emerge --info
Portage 2.2_rc25 (default/linux/amd64/2008.0/no-multilib, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.28 x86_64)
=================================================================
System uname: Linux-2.6.28-x86_64-Intel-R-_Core-TM-2_CPU_L7400_@_1.50GHz-with-glibc2.2.5
Timestamp of tree: Sun, 15 Mar 2009 06:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.6
sys-devel/autoconf:  2.13, 2.63
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.2
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.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -ggdb -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -ggdb -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="et_EE.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en et"
MAKEOPTS="-j1"
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/portage/local/layman/science /home/plaes/code/gentoo/gnome /home/plaes/code/gentoo/local /home/plaes/code/gentoo/ikelos"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi adns alsa amd64 amr apache2 ares avahi berkdb blas bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cups curl daap dbus dga djvu dri dvd dvdr dvi eds encode exif faac faad fam ffmpeg fftw flac fortran fuse galago gdbm gif gimp git glib glitz gmp gnome gnome-keyring gnuplot gnutls gphoto2 gs gsl gstreamer gtk hal hdri iconv idn imagemagick ipv6 isdnlog jingle jpeg jpeg2k kdrive kpathsea lapack laptop latex lcms libnotify lzma lzo mad midi mmx mng mozdevelop mp3 mpeg msn mudflap nautilus ncurses network network-cron networkmanager nls nptl nptlonly nsplugin ogg openexr opengl openmp pam pcmcia pcre pcsc-lite pdf perl png pppd python raw readline reflection resolvconf samba sdl session smartcard smp sound source spl sse sse2 ssl ssse3 subversion svg sysfs tcpd theora tiff truetype unicode usb v4l v4l2 vim-syntax vorbis webkit x264 xcb xinerama xml xmp xorg xulrunner xv xvid xvmc zeroconf 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" LINGUAS="en et" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Zac Medico gentoo-dev 2009-03-25 23:08:58 UTC
I've tested with both portage-2.1.6.7 and portage-2.2_rc27, and it worked in both cases:

$ emerge -p dev-java/icedtea6

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

Calculating dependencies... done!
[ebuild     U ] dev-java/icedtea6-1.4 [1.3.1-r2] USE="-xrender%"
Comment 3 Zac Medico gentoo-dev 2009-03-25 23:10:38 UTC
I should also note that I uninstalled virtual/gnu-classpath-jdk prior to testing, since the current dependency looks like this:

  || ( >=virtual/gnu-classpath-jdk-1.5 dev-java/icedtea6 dev-java/icedtea6-bin )
Comment 4 Priit Laes (IRC: plaes) 2009-03-26 22:38:06 UTC
(In reply to comment #3)
> I should also note that I uninstalled virtual/gnu-classpath-jdk prior to
> testing, since the current dependency looks like this:
> 
>   || ( >=virtual/gnu-classpath-jdk-1.5 dev-java/icedtea6 dev-java/icedtea6-bin
> )
> 

Sorry, for reopening the bug, but did you have dev-java/icedtea6-bin also uninstalled?
Comment 5 Zac Medico gentoo-dev 2009-03-26 23:07:09 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > I should also note that I uninstalled virtual/gnu-classpath-jdk prior to
> > testing, since the current dependency looks like this:
> > 
> >   || ( >=virtual/gnu-classpath-jdk-1.5 dev-java/icedtea6 dev-java/icedtea6-bin
> > )
> > 
> 
> Sorry, for reopening the bug, but did you have dev-java/icedtea6-bin also
> uninstalled?
> 

Right, I never had icedtea6-bin installed. I had gnu-classpath-jdk instead and I uninstalled it before testing.
Comment 6 Sebastian Luther (few) 2010-05-01 16:40:24 UTC
Are you able to reproduce this issue with latest portage version (no matter if 2.1 or 2.2)?
Comment 7 Priit Laes (IRC: plaes) 2010-05-02 19:04:54 UTC
(In reply to comment #6)
> Are you able to reproduce this issue with latest portage version (no matter if
> 2.1 or 2.2)?
> 

Nope, seems to be fixed for now. Portage version 2.2_rc67