The makefiles and ebuild use uname -r to find kernel sources and module directories, rather than using KV_FULL, meaning that you can't compile for anything other than the running kernel. Reproducible: Always Steps to Reproduce: 1. Symlink /usr/src/linux to a kernel version other than the one reported by `uname -r` 2. emerge ivtv 3. check to see that it installed modules in /lib/modules/`uname -r` rather than /lib/modules/${KV_FULL}
Created attachment 51222 [details, diff] Patch to use KV_FULL instead of uname -r Attachment should fix the problem in all files... I haven't fully tested it b/c ivtv won't compile against the mm-sources, as they change some stuff in the i2c.h file that prevents the package from compiling properly.
Created attachment 51224 [details, diff] New patch This one deals with the Makefile as well as the Makefile2.4 and Makefile2.6, in case you're running a 2.4 kerenel but want to compile for a 2.6 or vice versa.
new ebuilds use proper eclasses rather then doing the lifting themselves.