Currently configure.in accepts kernel version from
running kernel. This may be wrong on compiling farm
where running kernel and target build kernel are not
the same. Following patch prevents autodetection if
appropriate values are already defined when script
starts. Usage example:
================
export KERNEL_INCLUDE=/usr/include/linux
export kernel_version=$(grep UTS_RELEASE
$KERNEL_INCLUDE/version.h | awk '{print $3}' | tr -d
'"')
export SPEC_PATH=kernel/drivers/usb
export
MODULE_PATH=/lib/modules/$KERNEL_VERSION/$SPEC_PATH
You can see complete usage in mpio.spec on mpio package
page of ALTLinux Sisyphus repository:
http://www.altlinux.com/index.php?module=sisyphus&package=mpio