Installing hplip also wants to install gentoo-sources, independent from the use flags. Reproducible: Always Steps to Reproduce: 1. emerge -pv hplip
No it simply looks for any kernel sources.
I have vanilla-sources-2.624.4 installed. If it satisfied the dependency, why would it want to install another source package?
hplip really does depend on virtual/linux-sources by inheriting linux-info eclass. Anything that inherits kernel-2 eclass ought to provide virtual/linux-sources, which includes vanilla-sources. Since I have hplip already installed, I can use qdepends to verify that it depends on virtual/linux-sources: $ qdepends hplip net-print/hplip-2.8.6b: !net-print/hpijs ... virtual/linux-sources And eix shows vanilla-sources as providing virtual/linux-sources: $ eix -P virtual/linux-sources | grep vanilla-sources * sys-kernel/vanilla-sources The specific version of vanilla-sources you have is no longer in the tree; perhaps it had a problem? What happens if you install vanilla-sources-2.6.24.7, which eix lists as satisfying virtual/linux-sources? Also, please post your 'emerge --info' and 'emerge -pvt hplip' output.
Thank you very much for your reply. You find the needed information below: ----------8<---------- $ eix -P virtual/linux-sources | grep vanilla-sources ----------8<---------- $ emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.24.4 i686) ================================================================= System uname: Linux-2.6.24.4-i686-Pentium-R-_Dual-Core_CPU_E5200_@_2.50GHz-with-gentoo-1.12.11.1 Timestamp of tree: Fri, 27 Nov 2009 17:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 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: 2.2.6a 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/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" 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 /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache confcache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://mirror.pacific.net.au/linux/Gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" LANG="en_GB" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS=" en en_GB " MAKEOPTS="-j3 -s" 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/layman/d-overlay /usr/local/portage/layman/kde-sunset /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa apache2 bash-completion berkdb bineditor bluetooth bzip2 cairo cdr cli consolekit cracklib cups cupsddk d dbus dga dmd dri dts dvd dvdr dvdread embedded emboss encode evo fakevim fam ffmpeg firefox flac gcj gd gdbm gif git gpm hal hardened iconv imap ipv6 irc jabber java javascript jingle jpeg kde kdeenablefinal kdexdeltas kerberos kpathsea ldap libnotify maildir mikmod mmx mng modules mp3 mp4 mpeg mplayer mudflap mysql nfs nls nptl nptlonly nsplugin ogg opengl openmp oscar pam parport pcre pda pdf perl php png ppds pppd prelude python qt3support qt4 quicktime readline reflection remote scanner sdl session sip smp speex spell spl sql sqlite sqlite3 sse sse2 ssl startup-notification subversion svg symlink sysfs tcpd threads thunar tiff truetype unicode usb v4l v4l2 vcd vim-syntax vorbis wav webkit win32codecs wmf x264 x86 xanim xine xml xorg xulrunner xv xvid xvmc 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=" evdev keyboard mouse " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS=" en en_GB " SANE_BACKENDS=" epson " USERLAND="GNU" VIDEO_CARDS=" nv nvidia " Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ----------8<---------- Before installing vanilla-sources-2.6.24.7: $ emerge -pvt hplip These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] net-print/hplip-2.8.6b USE="dbus parport ppds qt4 scanner -cupsddk -doc -fax -minimal -qt3 -snmp" 0 kB [ebuild N ] sys-kernel/gentoo-sources-2.6.31-r6 USE="symlink -build" 60,162 kB Total: 2 packages (1 new, 1 reinstall), Size of downloads: 60,162 kB ----------8<---------- After installing vanilla-sources-2.6.24.7: $ emerge -pvt hplip These are the packages that would be merged, in reverse order: Calculating dependencies... done! [ebuild R ] net-print/hplip-2.8.6b USE="dbus parport ppds qt4 scanner -cupsddk -doc -fax -minimal -qt3 -snmp" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB ----------8<---------- Does it mean that installed packages, which are no longer in portage tree aren't considered by dependency check?
Sorry this one is missing from the previous post: $ eix -P virtual/linux-sources | grep vanilla-sources [D] sys-kernel/vanilla-sources The output didn't change with installing vanilla-sources-2.6.24.7.
Ok here's the interpretation of your results: * there was something wrong with your old vanilla-sources, so hplip was picking the default package to satisfy virtual/linux-sources dependency (default happens to be gentoo-sources) * once you installed the current vanilla-sources, it satisfied virtual/linux-sources dependency and hplip no longer tried to install anything else to satisfy it So, the problem is not with the current tree; the problem has already been fixed.