I am using a KERNEL_OUTPUT separate from the source directory of the kernel sources, and sys-fs/fuse-2.3.0 refused to build. Its configure script was unable to determine the kernel version, that it takes from include/linux/version.h. Since the configure script was looking in /lib/modules/`uname -r`/build to determine the root where to look for version.h, I changed KV_DIR in the ebuild to read KV_OUT_DIR and it compiled fine. According to the linux-info eclass, KV_OUT_DIR would be the same as KV_DIR when there is no KERNEL_OUTPUT, so it should be safe to apply the following minor patch to the fuse ebuild. --- ./fuse-2.3.0.ebuild 2005-06-09 02:35:55.000000000 +0900 +++ ./fuse-2.3.0.ebuild 2005-06-20 23:55:49.000000000 +0900 @@ -18,7 +18,7 @@ BUILD_PARAMS="majver=${KV_MAJOR}.${KV_MINOR} fusemoduledir=${ROOT}/lib/modules/${KV_FULL}/fs" BUILD_TARGETS="all" -ECONF_PARAMS="--with-kernel=${KV_DIR}" +ECONF_PARAMS="--with-kernel=${KV_OUT_DIR}" FUSE_FS_ERROR="We have detected FUSE already built into the kernel. We will continue, but we wont build the module this time."
thanks, fixed