--- eclass.original/linux-mod.eclass 2006-10-16 16:35:50.000000000 +0200 +++ eclass/linux-mod.eclass 2006-11-16 12:23:45.000000000 +0100 @@ -429,15 +429,21 @@ find_module_params() { # -------------------------------- linux-mod_pkg_setup() { - linux-info_pkg_setup; - check_kernel_built; - strip_modulenames; - [[ -n ${MODULE_NAMES} ]] && check_modules_supported - set_kvobj; - # Commented out with permission from johnm until a fixed version for arches - # who intentionally use different kernel and userland compilers can be - # introduced - Jason Wever , 23 Oct 2005 - #check_vermagic; + if ! hasq bindist ${FEATURES}; then + linux-info_pkg_setup; + check_kernel_built; + strip_modulenames; + [[ -n ${MODULE_NAMES} ]] && check_modules_supported + set_kvobj; + # Commented out with permission from johnm until a fixed version for arches + # who intentionally use different kernel and userland compilers can be + # introduced - Jason Wever , 23 Oct 2005 + #check_vermagic; + else + # We are emerging a precompiled kernel modules + # so this check is not needed + qeinfo "kernel sources not needed" + fi } strip_modulenames() { --- eclass.original/linux-info.eclass 2006-09-07 14:05:52.000000000 +0200 +++ eclass/linux-info.eclass 2006-11-16 12:24:34.000000000 +0100 @@ -164,6 +164,11 @@ linux_chkconfig_string() { # got the jist yet? kernel_is() { + + # We are emerging a precompiled kernel modules + # so this check is not needed + hasq bindist ${FEATURES} && return 1 + # if we haven't determined the version yet, we need too. get_version; local operator test value x=0 y=0 z=0 @@ -551,6 +556,11 @@ check_zlibinflate() { # Also used when inheriting linux-mod to force a get_version call linux-info_pkg_setup() { + + # We are emerging a precompiled kernel modules + # so this check is not needed + hasq bindist ${FEATURES} && return 0 + get_version || die "Unable to calculate Linux Kernel version" if kernel_is 2 4; then