Weird behavior of depclean: $ sudo emerge --pretend --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 of this, it often becomes necessary to run * `emerge --update --newuse --deep @world` prior to depclean. Calculating dependencies... done! >>> Calculating removal order... >>> These are the packages that would be unmerged: x11-drivers/xf86-video-intel selected: 2.99.917_p20170216 protected: none omitted: none All selected packages: =x11-drivers/xf86-video-intel-2.99.917_p20170216 >>> 'Selected' packages are slated for removal. >>> 'Protected' and 'omitted' packages will not be removed. Packages installed: 1235 Packages in world: 186 Packages in system: 44 Required packages: 1234 Number to remove: 1 $ equery depends xf86-video-intel * These packages depend on xf86-video-intel: x11-base/xorg-drivers-1.19 (video_cards_i915 ? x11-drivers/xf86-video-intel) (!video_cards_i965 ? x11-drivers/xf86-video-intel)
This is expected behavior with xorg-drivers-1.19 when VIDEO_CARDS="intel i965". See bug 592026. If you want to force xf86-video-intel to be installed, add it to the world file. Otherwise the modesetting driver (part of xorg-server) will serve the purpose for video.
Uhm, first, this change seems to break a bumblebee setup, but that thing breaks with anything so let's set that aside. More importantly, the discrepancy between what portage says and what equery says remains.