dev-util/sysdig: Build against correct kernel, #564282
authorMichał Górny <mgorny@gentoo.org>
Thu, 29 Oct 2015 20:48:29 +0000 (21:48 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 29 Oct 2015 20:49:34 +0000 (21:49 +0100)
Pass KERNELDIR to kernel module build to force correct kernel source
directory.

Fixes: https://bugs.gentoo.org/show_bug.cgi?id=564282

dev-util/sysdig/sysdig-0.1.104.ebuild

index 0c4d00a5cf57676e46c0e9b0a16d480381cf3886..b6f02fe81a9c6475c06b23c623d470a5e95e740a 100644 (file)
@@ -64,6 +64,7 @@ src_configure() {
 
        # setup linux-mod ugliness
        MODULE_NAMES="sysdig-probe(extra:${BUILD_DIR}/driver:)"
+       BUILD_PARAMS='KERNELDIR="${KERNEL_DIR}"'
        BUILD_TARGETS="driver"
 }