Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96613 - sys-fs/fuse does not build if KV_OUT_DIR != KV_DIR
Summary: sys-fs/fuse does not build if KV_OUT_DIR != KV_DIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-20 08:02 UTC by Georgi Georgiev
Modified: 2005-06-20 08:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Georgi Georgiev 2005-06-20 08:02:17 UTC
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."
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-20 08:50:56 UTC
thanks, fixed