Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313277 - emerge --depclean is not able to handle upgrades outside world
Summary: emerge --depclean is not able to handle upgrades outside world
Status: CONFIRMED
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: 2010-04-05 17:48 UTC by Petteri Räty (RETIRED)
Modified: 2010-04-05 19:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
--debug output (depclean-debug.txt.bz2,84.31 KB, application/octet-stream)
2010-04-05 19:10 UTC, Petteri Räty (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2010-04-05 17:48:08 UTC
pena betelgeuse # emerge -a --depclean 

 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 * 
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence, it is often necessary to run `emerge --update
 * --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 * 
 *   >=dev-texlive/texlive-pictures-2008 pulled in by:
 *     dev-texlive/texlive-latexextra-2008-r1
 * 
 *   ~app-text/poppler-0.12.3[xpdf-headers,lcms] pulled in by:
 *     virtual/poppler-0.12.3-r1
 * 
 *   ~dev-java/ant-core-1.7.1 pulled in by:
 *     dev-java/ant-swing-1.7.1
 * 
 * Have you forgotten to run `emerge --update --newuse --deep @world` prior
 * to depclean? It may be necessary to manually uninstall packages that no longer
 * exist in the portage tree since it may not be possible to satisfy their
 * dependencies.  Also, be aware of the --with-bdeps option that is documented
 * in `man emerge`.
pena betelgeuse # emerge -pv ant-swing

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

Calculating dependencies... done!
[ebuild     U ] dev-java/ant-swing-1.8.0 [1.7.1] 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB
pena betelgeuse # emerge -uDpvt world

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

Calculating dependencies... done!
[nomerge      ] dev-java/antlr-3.1.3-r2  USE="gunit source" 
[ebuild     U ]  dev-java/stringtemplate-3.2.1 [3.2] USE="-doc -source" 0 kB
[nomerge      ] kde-base/okular-4.4.2  USE="crypt ebook jpeg pdf ps tiff (-aqua) -chm -debug -djvu -handbook (-kdeenablefinal) (-kdeprefix)" 
[nomerge      ]  app-text/libspectre-0.2.4  USE="-debug -doc -test" 
[ebuild     U ]   app-text/ghostscript-gpl-8.71-r2 [8.71-r1] USE="cairo cups -X -bindist -djvu -gtk -jpeg2k" LINGUAS="-ja -ko -zh_CN -zh_TW" 0 kB
[nomerge      ] app-text/xournal-0.4.5-r1  USE="pdf -debug -doc" 
[nomerge      ]  app-text/ghostscript-gpl-8.71-r2 [8.71-r1] USE="cairo cups -X -bindist -djvu -gtk -jpeg2k" LINGUAS="-ja -ko -zh_CN -zh_TW" 
[nomerge      ]   media-fonts/urw-fonts-2.4.9  USE="-X" 
[blocks b     ]    media-fonts/gnu-gs-fonts-std ("media-fonts/gnu-gs-fonts-std" is blocking media-fonts/urw-fonts-2.4.9)
[uninstall    ]     media-fonts/gnu-gs-fonts-std-8.11 
[ebuild  N    ]   media-fonts/urw-fonts-2.4.9  USE="-X" 0 kB

Total: 3 packages (2 upgrades, 1 new, 1 uninstall), Size of downloads: 0 kB

In this situation the old and new ant-swing versions would a candidate for removal by --depclean so it should not complain about the missing ant-core installation that has already been upgraded through world.

Portage 2.2_rc67 (default/linux/x86/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo i686)
=================================================================
System uname: Linux-2.6.33-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.0.1
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2-r1
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r3, 2.6.5-r1, 3.1.2-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/share/X11/xkb /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/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="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/var/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1"
LINGUAS="fi en"
MAKEOPTS="-j8 -s"
PKGDIR="/home/pkg/"
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="/mnt/checkouts/overlays/flameeyes-overlay /mnt/checkouts/overlays/openrc /mnt/checkouts/overlays/sunrise /mnt/checkouts/overlays/wschlich-testing /mnt/checkouts/overlays/finnish /mnt/checkouts/overlays/jokey /mnt/checkouts/overlays/x11 /mnt/checkouts/overlays/mozilla /mnt/checkouts/overlays/ruby /mnt/checkouts/overlays/betelgeuse"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa audiofile bash-completion bluetooth branding bzip2 cairo caps cdb cddb cdparanoia cdr cli consolekit cracklib crypt cups custom-cxxflags cxx dbus dri dts dvd dvdr dvdread emboss exif fam ffmpeg firefox gif glib hal iconv ipv6 java jpeg kde kdehiddenvisibility lcms libnotify logitech-mouse mad mikmod mjpeg mmx mng modules mp3 mp4 mpeg mudflap ncurses network nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pango pcre pdf png ppds pppd pulseaudio qt3support readline reflection rtc samba semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs system-sqlite theora threads tiff truetype udev unicode usb userlocales vim-syntax vorbis win32codecs x264 x86 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi en" NETBEANS_MODULES="ruby ide webcommon nb harness java websvccommon gsf" QEMU_SOFTMMU_TARGETS="i386" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none radeon" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2010-04-05 18:03:08 UTC
Please attach emerge -pv --depclean output so we can see the whole graph.
Comment 2 Zac Medico gentoo-dev 2010-04-05 18:05:17 UTC
Well, maybe -v won't work in this case. Better use --debug.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2010-04-05 19:10:35 UTC
Created attachment 226665 [details]
--debug output
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2010-04-05 19:13:41 UTC
(In reply to comment #3)
> Created an attachment (id=226665) [details]
> --debug output
> 

Just to note I run --update --newuse --deep @world in between just to be safe