Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488248 - =sys-fs/vhba-20130607 - Fails to build with custom kernel object directory
Summary: =sys-fs/vhba-20130607 - Fails to build with custom kernel object directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexandre Rostovtsev (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-10-16 15:41 UTC by nE0sIghT
Modified: 2013-10-20 22:07 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 nE0sIghT 2013-10-16 15:41:06 UTC
If kernel built outside of source directory, sys-fs/vhba fails to compile

Patch to fix this issue:
--- ../../../../../portage/sys-fs/vhba/vhba-20130607.ebuild	2013-07-20 15:31:34.000000000 +0400
+++ ./vhba-20130607.ebuild	2013-10-16 19:38:32.050954667 +0400
@@ -27,7 +27,7 @@
 pkg_setup() {
 	CONFIG_CHECK="~BLK_DEV_SR ~CHR_DEV_SG"
 	check_extra_config
-	BUILD_PARAMS="KDIR=${KV_DIR}"
+	BUILD_PARAMS="KDIR=${KV_OUT_DIR}"
 	linux-mod_pkg_setup
 
 	enewgroup cdemu
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-10-20 22:07:15 UTC
Fixed, thanks for reporting!

+  20 Oct 2013; Alexandre Rostovtsev <tetromino@gentoo.org>
+  -vhba-20120422-r1.ebuild, vhba-20130607.ebuild:
+  Use kernel build directory as KDIR (bug #488248, thanks to nE0sIghT). Remove
+  old.