Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344179 - portage --depclean doesn't handle well circular dependencies (when lib consumers are specified on command line)
Summary: portage --depclean doesn't handle well circular dependencies (when lib consum...
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: InVCS, REGRESSION
Depends on:
Blocks: 210077
  Show dependency tree
 
Reported: 2010-11-04 19:24 UTC by Cyprien Nicolas (fulax)
Modified: 2010-11-05 21:06 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 Cyprien Nicolas (fulax) 2010-11-04 19:24:54 UTC
First I hope this is not a dupe, even if it is a particular case of bug 336889.
(I had trouble to find a great summary, please change if you have something better)

spiti ~ # emerge -DuNa --with-bdeps=y @world

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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Nothing to merge; would you like to auto-clean packages? [Yes/No] no

Quitting.

spiti ~ # emerge --depclean imagemagick libgsf librsvg

Calculating dependencies... done!
>>> Checking for lib consumers...
>>> Assigning files to packages...
 * In order to avoid breakage of link level dependencies, one or more
 * packages will not be removed. This can be solved by rebuilding the
 * packages that pulled them in.
 * 
 *   gnome-base/librsvg-2.26.3 pulled in by:
 *     media-gfx/imagemagick-6.6.2.5 needs librsvg-2.so.2
 * 
 *   gnome-extra/libgsf-1.14.18 pulled in by:
 *     gnome-base/librsvg-2.26.3 needs libgsf-1.so.114
 *     media-gfx/imagemagick-6.6.2.5 needs libgsf-1.so.114
 * 
>>> Adding lib providers to graph...
Calculating dependencies... done!
  gnome-base/librsvg-2.26.3 pulled in by:
    media-gfx/imagemagick-6.6.2.5

  gnome-extra/libgsf-1.14.18 pulled in by:
    gnome-base/librsvg-2.26.3

  media-gfx/imagemagick-6.6.2.5 pulled in by:
    gnome-extra/libgsf-1.14.18

>>> No packages selected for removal by depclean
Packages installed:   857
Packages in world:    92
Packages in system:   50
Required packages:    857
Number removed:       0

spiti ~ # emerge --info --ignore-default-opts # because EMERGE_DEFAULT_OPTS contains --verbose
Portage 2.2.0_alpha3 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.32-hardened-r9 i686)
=================================================================
System uname: Linux-2.6.32-hardened-r9-i686-Intel-R-_Celeron-R-_CPU_3.20GHz-with-gentoo-1.12.13
Timestamp of tree: Tue, 02 Nov 2010 19:15:03 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
Repositories: gentoo lisp fulax
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --verbose"
FEATURES="assume-digests binpkg-logs distlocks fail-clean fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
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="/var/lib/layman/lisp"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aac aalib acl acpi alsa amr apache2 apm archive avahi bash-completion berkdb bluetooth branding bzip2 caps cli consolekit cracklib crypt cups curl cvs cxx dbus directfb dri dts dv emacs enca encode exif fbcon ffmpeg flac fortran ftp fuse gdbm gif git gnutls gpg gstreamer gzip iconv icu id3 idn imap ipv6 java java6 javascript jbig jpeg latex ldap libcaca libwww live lzma lzo mad mercurial mmx mng modules mp3 mpeg mudflap musepack mysql ncurses network-cron nls nptl nptlonly nss ogg openal opengl openmp pam pcre pmu png pnm policykit pppd quicktime radio rar readline rtc samba sasl schroedinger sdl session smp speex sql sqlite sqlite3 sse sse2 ssl ssse3 subversion suexec svg svga sysfs syslog system-sqlite tcpd tga theora threads tiff truetype unicode v4l v4l2 vidix vorbis win32codecs wmf x264 x86 xanim xml xorg xvid xvmc 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Cyprien Nicolas (fulax) 2010-11-04 20:05:25 UTC
(In reply to comment #1)
> This should fix it:
> 
> http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=99ba5e3b0d2c2019ae0154e56428ee74810bd925
> 

After migrating to portage-9999 just for testing, it worked as expected.
You can get rid of the 'should' word. Thanks for this very fast reactivity :)
Comment 3 Zac Medico gentoo-dev 2010-11-05 21:06:42 UTC
Thanks for testing.

This is fixed in 2.2.0_alpha4.