I installed from kernel.org kernel-2.6.5 and injected in portage but every package that needs kernel-source tries to install gentoo-sources-2.4.x here is my /var/cache/edb/virtuals: virtual/xft x11-base/xfree x11-libs/xft virtual/cron sys-apps/vixie-cron virtual/glu x11-base/xfree virtual/inetd sys-apps/netkit-base virtual/x11 x11-base/xfree virtual/bittorrent net-p2p/bittorrent virtual/cdrtools app-cdr/cdrtools virtual/modutils sys-apps/module-init-tools virtual/glibc sys-libs/glibc virtual/aspell-dict app-dicts/aspell-pt virtual/bootloader sys-boot/grub virtual/opengl x11-base/xfree virtual/textbrowser net-www/lynx virtual/logger app-admin/sysklogd virtual/jre dev-java/sun-jdk virtual/quicktime media-libs/libquicktime virtual/mda net-mail/procmail sys-apps/console-tools sys-apps/kbd virtual/editor app-editors/vim app-editors/vi virtual/snmp net-analyzer/ucd-snmp virtual/jdk dev-java/sun-jdk virtual/ssh net-misc/openssh virtual/dev-manager sys-fs/udev virtual/os-headers sys-kernel/linux-headers virtual/php dev-php/mod_php dev-php/php virtual/module-tools sys-apps/modutils virtual/python dev-lang/python virtual/kernel sys-kernel/linux-headers virtual/alsa media-sound/alsa-driver virtual/tetex app-text/tetex virtual/java-scheme dev-java/sun-jdk virtual/mpg123 media-sound/mpg123 virtual/imapd net-mail/cyrus-imap-admin net-mail/cyrus-imapd virtual/ghostscript app-text/ghostscript virtual/lpr net-print/cups virtual/glut media-libs/glut virtual/mta net-mail/ssmtp Reproducible: Always Steps to Reproduce: 1.Install kernel 2.6 by hand 2.inject kernel 2.6 3.emerge something that depends on kernel-source Actual Results: [ebuild N ] sys-kernel/gentoo-sources-2.4.25 Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5) ================================================================= System uname: 2.6.5 i686 AMD Athlon(TM) XP 2400+ Gentoo Base System version 1.4.3.13p1 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -fPIC -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -fPIC -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/root/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X alsa apache2 apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gb gdbm gif gnome gpg gpm gtk gtk2 gtkhtml guile imlib java joystick jpeg kde ldap libg++ libwww lm_sensors mad mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline sdl slang spell ssl svga tcl tcltk tcpd tetex tex tk truetype video_cards_radeon x86 xml xml2 xmms xv zlib"
where's your virtual/linux-sources? What was the command that you used to inject the kernel-2.6.5 stuff?
Injecting doesn't create virtuals, you're missing the virtual/linux-sources entry.
If inject does not provide the same virtual packages as a normal ebuild it cannot simulate an emerge as I thought. Where can I find the virtuals I must insert in /var/cache/edb/virtuals to simulate a correct emerge ? I took a look in .ebuild but it does not have any reference to such thing. Thanks. P.S. I think inject should provide the same virtuals as if I was emerging a package.