svgalib shouldn
svgalib shouldnt be looking in /usr/src/* for Linux kernel versions. Reproducible: Always Steps to Reproduce: 1. emerge -vuD svgalib Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) media-libs/svgalib-1.9.17-r3 to / >>> md5 src_uri ;-) svgalib-1.9.17.tar.gz * * Could not determine your kernel version. * Make sure that you have /usr/src/linux symlink. * And that said kernel has been configured. * You can also simply run the following command * in the kernel referenced by /usr/src/linux: * make include/linux/version.h * !!! ERROR: media-libs/svgalib-1.9.17-r3 failed. !!! Function check_KV, Line 216, Exitcode 0 !!! (no error message) Expected Results: Installed as normal. Portage 2.0.49_pre18 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.21) ================================================================= System uname: 2.4.21 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz GENTOO_MIRRORS="http://gentoo.noved.org/ ftp://gentoo.noved.org/ ftp://ftp.ussg. iu.edu/pub/linux/gentoo ftp://gentoo.mirrors.pair.com/ ftp://ftp.gtlib.cc.gatech .edu/pub/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm arts avi crypt cups encode foomaticdb imlib jpeg libg++ l ibwww mad mikmod mmx motif mpeg ncurses nls pdflib png qt quicktime sdl spell tr uetype xml2 xmms xv zlib slang readline svga tcpd pam ssl python oggvorbis openg l X alsa -berkdb debug doc -gdbm -gif -gnome -gpm -gtk gtk2 ipv6 -java -kde mbox -perl sse xml" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=pentium4 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loop s -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
where would you have it look ? afaik linux-headers is not sufficient ...
The Gentoo way is that packages should use the sources in /usr/src/linux, as it is much more flexible (you can compile nvidia-kernel/whatever while still on old kernel). If anything, file a bug with the docs people if you are 100% sure it is not in the documentation.
The Linux kernel version is available in /usr/include/linux/version.h
read azarah's comment again and you will see why this wont be 'fixed'
*** Bug 27083 has been marked as a duplicate of this bug. ***