When userpriv is enabled svgalib fails to build. Workaround is obviously to disable userpriv.
Created attachment 82924 [details] Build error Log of build error
SUBDIRS is incorrect. check out the linux-mod:use_m() function. its simple as pie to use in an ebuild. inherit linux-mod and at the end of pkg_unpack: convert_to_m Makefile; assuming of course Makefile is the correct file which exports the SUBDIR declaration. Tom, could you please try the above? in pkg_unpack at the end just add: convert_to_m Makefile; see if it fixes your problem?
It might actually need O= defined as well thinking abiout it, since M= isnt neccessarily a sole fix.
For the record, if you do need O= then I would suggest: pkg_unpack: convert_to_m Makefile src_compile: mkdir ${WORKDIR}/kmod/ make O=${WORKDIR}/kmod/ yadda src_install: insinto ${ROOT}/usr/src/${KV_FULL}/video/ doins ${WORKDIR}/kmod/modulename.${KV_OBJ} of course, MODULE_NAMES="modulename(video:${S})" would handle a lot of it for you in linux_mod-src_compile
1.9.25 works for me with userpriv enabled, please reopen if this is still a problem