Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284477 - emerge --depclean shows non-working suggestions (?)
Summary: emerge --depclean shows non-working suggestions (?)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-10 12:58 UTC by Thomas Kahle (RETIRED)
Modified: 2011-01-29 20:26 UTC (History)
1 user (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 Thomas Kahle (RETIRED) gentoo-dev 2009-09-10 12:58:35 UTC
When running emerge --depclean I get the following message on stderr:

 * 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.
 *
 *   dev-libs/redland-1.0.8 pulled in by:
 *     dev-libs/soprano-2.3.0-r1
 *
 *   media-libs/libgphoto2-2.4.3 pulled in by:
 *     app-emulation/wine-1.1.12
 *     media-gfx/picasa-2.7.3736.15
 *
 *   sys-libs/db-4.5.20_p2-r1 pulled in by:
 *     app-admin/apache-tools-2.2.11
 *     dev-lang/perl-5.8.8-r5
 *     mail-filter/bogofilter-1.2.0
 *

This can NOT be solved by rebuilding any of these packages. I think the reason has to do with dependency resolution. On this system, although media-libs/libgphoto2-2.4.6 is stable and 'upgradable' portage does not update to it and sticks with 2.4.3 when running emerge -avuDN @world
Deps look good:

$equery depends libgphoto2
[ Searching for packages depending on libgphoto2... ]
gnome-base/gvfs-1.0.3-r13 (gphoto2? >=media-libs/libgphoto2-2.4)
media-gfx/sane-backends-1.0.19-r2 (gphoto2? media-libs/libgphoto2)



Reproducible: Always




denkmatte ~ # emerge --info
Portage 2.2_rc40 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================                                            
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_L7500_@_1.60GHz-with-gentoo-2.0.0       
Timestamp of tree: Thu, 10 Sep 2009 07:15:01 +0000                                                           
ccache version 2.4 [enabled]                                                                                 
app-shells/bash:     3.2_p39                                                                                 
dev-java/java-config: 2.1.8-r1                                                                               
dev-lang/python:     2.6.2-r1                                                                                
dev-python/pycrypto: 2.0.1-r8                                                                                
dev-util/ccache:     2.4-r7                                                                                  
dev-util/cmake:      2.6.4                                                                                   
sys-apps/baselayout: 2.0.0                                                                                   
sys-apps/openrc:     0.4.3-r1                                                                                
sys-apps/sandbox:    1.6-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.1                                                                                  
sys-devel/libtool:   1.5.26                                                                                  
virtual/os-headers:  2.6.27-r2                                                                               
ACCEPT_KEYWORDS="x86"                                                                                        
CBUILD="i686-pc-linux-gnu"                                                                                   
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer"                                                         
CHOST="i686-pc-linux-gnu"                                                                                    
CONFIG_PROTECT="/etc /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/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=core2 -O2 -pipe -fomit-frame-pointer"                                                            
DISTDIR="/usr/portage/distfiles"                                                                                  
FEATURES="assume-digests ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                     
GENTOO_MIRRORS="http://gentoo.tiscali.nl/"                                                                        
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US de ja es fr it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
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/sunrise /usr/local/portage/tom-overlay /home/tom/gentoo/sci"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa anthy apache2 avahi bash-completion berkdb bluetooth branding bzip2 cairo canna cddb cdparanoia cdr cjk cli consolekit cracklib crypt ctype cups curl daap dbus djvu dri dts dvd dvdr eds emacs encode esd evo expat fam fbcon ffmpeg firefox flac fortran freewnn ftp gd gdbm gif gimp glut gmp gnutls gpm graphviz gstreamer gtk guile hal hdaps iconv ieee1394 imagemagick imap imlib ipod ipv6 isdnlog java javascript jpeg kde latex ldap leim libnotify lm_sensors m17n-lib mad migemo mikmod mime mmx mng mp3 mp4 mpeg mplayer mudflap mule musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin obex ocaml ogg oggvorbis openal opengl openmp pam pcmcia pcre pdf perl php plasma plotutils png policykit ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl semantic-desktop session slang spell spl sqlite3 sse ssl startup-notification svg sysfs tcpd texlive theora threads thunar tiff tk truetype unicode usb v4l v4l2 visualization vorbis wifi win32codecs wxwindows x264 x86 xcomposite xine xinerama xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 en_US de ja es fr it" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Thomas Kahle (RETIRED) gentoo-dev 2009-09-11 07:07:53 UTC
> This can NOT be solved by rebuilding any of these packages. I think the reason
> has to do with dependency resolution. On this system, although
> media-libs/libgphoto2-2.4.6 is stable and 'upgradable' portage does not update
> to it and sticks with 2.4.3 when running emerge -avuDN @world

This remark is probably nonsense. After updating libgphoto it looks essentially the same:

# emerge -av --depclean > /dev/null 
 * 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.                                     
 *                                                                   
 *   dev-libs/redland-1.0.8 pulled in by:                            
 *     dev-libs/soprano-2.3.0-r1                                     
 *                                                                   
 *   media-libs/libgphoto2-2.4.6 pulled in by:
 *     app-emulation/wine-1.1.12
 *     media-gfx/picasa-2.7.3736.15
 *
 *   sys-libs/db-4.5.20_p2-r1 pulled in by:
 *     app-admin/apache-tools-2.2.11
 *     dev-lang/perl-5.8.8-r5
 *     mail-filter/bogofilter-1.2.0
Comment 2 Zac Medico gentoo-dev 2009-09-12 12:05:51 UTC
(In reply to comment #0)
> When running emerge --depclean I get the following message on stderr:
> 
>  * 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.
>  *
>  *   dev-libs/redland-1.0.8 pulled in by:
>  *     dev-libs/soprano-2.3.0-r1
>  *
>  *   media-libs/libgphoto2-2.4.3 pulled in by:
>  *     app-emulation/wine-1.1.12
>  *     media-gfx/picasa-2.7.3736.15
>  *
>  *   sys-libs/db-4.5.20_p2-r1 pulled in by:
>  *     app-admin/apache-tools-2.2.11
>  *     dev-lang/perl-5.8.8-r5
>  *     mail-filter/bogofilter-1.2.0
>  *
> 
> This can NOT be solved by rebuilding any of these packages.

Related to bug 230257, sometimes you actually have to uninstall the libraries in order for rebuilding to help, due to the build systems of the corresponding ebuilds "automagically" detecting the libraries. For example, you should uninstall dev-libs/redland-1.0.8, media-libs/libgphoto2-2.4.3 and sys-libs/db-4.5.20_p2-r1 before you attempt to rebuild the packages that pulled them in. I suppose we should add a note about this to the --depclean message.

(In reply to comment #0)
> $equery depends libgphoto2
> [ Searching for packages depending on libgphoto2... ]
> gnome-base/gvfs-1.0.3-r13 (gphoto2? >=media-libs/libgphoto2-2.4)
> media-gfx/sane-backends-1.0.19-r2 (gphoto2? media-libs/libgphoto2)

These dependencies seem to be irrelevant, since emerge --info output does not show USE=gphoto2 enabled. If you don't enable USE=gphoto2, an alternative way to have it updated automatically is to run `emerge --noreplace libgphoto2`, which will add it to your 'world' set.
Comment 3 Thomas Kahle (RETIRED) gentoo-dev 2010-11-03 08:44:46 UTC
What's the latest here? 
Has the message been updated, shall we close this?
Comment 4 Zac Medico gentoo-dev 2010-11-03 09:11:56 UTC
The message still needs to be updated to note that rebuilding may not help in some cases.
Comment 5 Günther Hutzl 2011-01-29 20:20:40 UTC
Hello!

I am seeing the same (or at least a similar) issue:

emerge -p --depclean
 * 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.
 * 
 *   dev-libs/boost-1.41.0-r3 pulled in by:
 *     www-plugins/gnash-0.8.8 needs libboost_date_time-1_41.so.1.41.0, libboost_thread-mt-1_41.so.1.41.0
 * 
 *   net-dns/c-ares-1.5.3 pulled in by:
 *     dev-libs/redland-1.0.10-r1 needs libcares.so.2
 * 
>>> Adding lib providers to graph...
 |
Calculating dependencies... done!
>>> Calculating removal order...

I am using sys-apps/portage-2.2.0_alpha19 . Here is my emerge --info:

Portage 2.2.0_alpha19 (default/linux/amd64/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.0.1
Timestamp of tree: Sat, 29 Jan 2011 09:30:22 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 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 local sunrise vmware mv proaudio wish kde
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo ftp://91.121.124.139/gentoo-distfiles/ ftp://91.121.125.139/gentoo-distfiles/ ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US de"
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"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/sunrise /var/lib/layman/vmware /var/lib/layman/mv /var/lib/layman/pro-audio /var/lib/layman/wish /var/lib/layman/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac acl acpi addressbook akonadi alsa amazon amd64 apache2 asf audiofile auto-hinter avi avifile ayatana bash-completion berkdb blender-game bluetooth boost branding browserplugin bzip2 bzlib cairo calendar cdda cddb cdr chromium cleartype cli consolekit corefonts cracklib crypt ctype cups curl cxx dbus device-mapper dga dirac divx djvu dlna dmx dri ds9097 dtmf dts dv dvb dvd dvdr dvdread emacs emboss enblend encode ethereal exif expat faac fad fam fame fat fbcon fbcondecor ffmpeg fftw firefox flac foomaticdb fortran ftp fuse gcj gd gdbm gdu geolocation geos ggi gif gimp gimpprint glib glitz glsa glut gmedia gnutls google-gadgets gpac gphoto2 gpm gps gpsd gtk gzip-el h323 hbci hddtemp howl htmlhandbook httpd hunspell iax iconv icq id3 id3tag idea imagemagick inquisitio ipod ithreads jack jadetex java javascript jbig jikes jit joystick jpeg jpeg2k kde kdrive kipi kpathsea kqemu lame lash latex lcd lcms ldap lensfun libextractor libnotify libsamplerate lightning lirc lm_sensors lzma lzo mad maildir mapnik marble matroska melt mikmod milter mime mjpeg mmx mmxext mng modules mozbranding moznopango mp3 mp4 mp4live mpd mpeg mpeg2 mplayer mudflap mule multilib musicbrainz mysql mysqli ncurses net netpbm networkmanager nls npp nptl nptlonly ntfs nvidia octave offensive office ogg ole openal openexr opengl openmp openstreetmap oscar osgapps oss pam pango pcre pda pdf perl pertty phonon plasma player plugin png policykit ppds pppd preview-latex proj pulseaudio python qt qt3support qt4 quicktime radio raster raw rdp readline realmedia rt2500pci ruby samba scanner schroedinger sdl semantic-desktop sensord server session sift skins slideshow smp sound sox speex spell srt sse sse2 sse3 ssl startup-notification subtitles subversion svg swscaler sysfs taglib tcltk tcpd teletext tetex theora threads thumbnail tiff toolkit-scroll-bars tordns transcode transparency truetype trusted tsmuxer twolame type1 udev unicode unsupported upnp usb userlocales v4l v4l2 vaapi vcd vdpau vdr visualization vlm vnc vorbis wavpack wavplay webkit wmp wxwidgets wxwindows x11vnc x264 xanim xattr xcb xcomposite xft xine xml xmms xorg xosd xpm xulrunner xv xvid xvmc yv12 zip 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-wt220u ttpci" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US de" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek pixma" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


So it looks like in my case portage reports the library versions that the packages depend on. But I think portage is wrong here. I have recompiled www-plugins/gnash-0.8.8 and saw in the log that it actually uses my newer boost dev-libs/boost-1.42.0-r2 and I have selected boost 1.42 as the default:

# eselect boost list
Available boost versions:
  [1]   boost-1.41/default
  [2]   boost-1.42/default *

I want to get rid of the old boost version but I want to do this only if it is safe. So does anyone know why portage is complaining here? I suspect it is a bug. I have the same problem for redland and c-ares for quite some time and tried to re-emerge it several times (even newer versions) to no avail. Maybe portage has stored the information of the dependent libraries somewhere and has outdated information on my system. If that is the case I could probably just delete that information and the problem is gone?
Comment 6 Zac Medico gentoo-dev 2011-01-29 20:26:56 UTC
(In reply to comment #5)
I suspect that you have approximately the same problem as reported in bug 303042. Generally, you can solve this by using `emerge --depclean --depclean-lib-check=n` and then running revdep-rebuild.