rj ~ # emerge -a --depclean *** WARNING *** Depclean may break link level dependencies. Thus, it is *** WARNING *** recommended to use a tool such as `revdep-rebuild` (from *** WARNING *** app-portage/gentoolkit) in order to detect such breakage. *** WARNING *** *** WARNING *** Also study the list of packages to be cleaned for any obvious *** WARNING *** mistakes. Packages that are part of the world set will always *** WARNING *** be kept. They can be manually added to this set with *** WARNING *** `emerge --noreplace <atom>`. *** WARNING *** *** WARNING *** As a safety measure, depclean will not remove any packages *** WARNING *** unless *all* required dependencies have been resolved. As a *** WARNING *** consequence, it is often necessary to run *** WARNING *** `emerge --update --deep world` prior to depclean. Calculating dependencies... done! >>> These are the packages that would be unmerged: net-www/apache selected: 2.0.58-r2 protected: none omitted: none app-misc/mime-types selected: 5 protected: none omitted: none >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. Would you like to unmerge these packages? [Yes/No] No Quitting. Packages installed: 476 Packages in world: 89 Packages in system: 56 Unique package names: 476 Required packages: 474 Number to remove: 2 rj ~ # grep apache /var/lib/portage/world net-www/apache I tried emerge -C apache and emerge apache but that did not help. Portage still wants to depclean my apache installation. The behaviour was the same with both 2.1.1-r1 and 2.1.2_rc1-r1 rj ~ # emerge --info Portage 2.1.2_rc1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686) ================================================================= System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.6 Last Sync: Mon, 30 Oct 2006 01:47:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo/" LINGUAS="en" MAKEOPTS="-j2 -s" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY=" " SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acpi alsa apache2 apm arts bash-completion berkdb bitmap-fonts cli cracklib crypt cups dbus dlloader dri dvdr elibc_glibc emboss esd foomaticdb gdbm gif gpm gstreamer gtk gtk2 hal iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdeenablefinal kernel_linux libg++ libwww linguas_en mad mikmod mmx mp3 mpeg ncurses nls nptl nsplugin ogg opengl pam pcre png ppds pppd qt3 quicktime readline reflection session spell spl sse sse2 ssl threads truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_i810 video_cards_vesa vorbis win32codecs xinerama xml xorg xv zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Do you have apache in /etc/portage/profile/package.provided? This issue and bug 133585 tend to confuse lots of people.
(In reply to comment #1) > Do you have apache in /etc/portage/profile/package.provided? This issue and > bug 133585 tend to confuse lots of people. > I do just don't remember ever putting it there as I have no need for it there. Oh, well. I guess the --depclean WARNING text should include text to make it clear that it will remove package.provided stuff.
I've updated the warning message in svn r4983.
This has been released in 2.1.2_rc1-r5.
*** Bug 155337 has been marked as a duplicate of this bug. ***