debian: Look in /lib/modules instead of /usr/src for DKMS kernel sources.
authorBen Pfaff <blp@nicira.com>
Tue, 10 Jan 2012 22:22:22 +0000 (14:22 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 13 Feb 2012 18:04:58 +0000 (10:04 -0800)
DKMS packages usually look in /lib/modules for kernel sources, since that
is the "standard" location, but our packages was looking directly in
/usr/src.  This fixes the problem.

Reported-by: Alban Browaeys <prahal@yahoo.com>
Tested-by: Alban Browaeys <prahal@yahoo.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
AUTHORS
debian/dkms.conf.in

diff --git a/AUTHORS b/AUTHORS
index c2fdca6..4e9a7df 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -55,6 +55,7 @@ provided helpful bug reports or suggestions.
 
 Aaron M. Ucko           ucko@debian.org
 Ahmed Bilal             numan252@gmail.com
+Alban Browaeys          prahal@yahoo.com
 Alex Yip                alex@nicira.com
 Alexey I. Froloff       raorn@altlinux.org
 Bob Ball                bob.ball@citrix.com
index 56c6398..a6dc316 100644 (file)
@@ -1,6 +1,6 @@
 PACKAGE_NAME="openvswitch"
 PACKAGE_VERSION="__VERSION__"
-MAKE="./configure --with-linux=/usr/src/linux-headers-`uname -r` ; make -C datapath/linux"
+MAKE="./configure --with-linux=/lib/modules/`uname -r`/build ; make -C datapath/linux"
 BUILT_MODULE_NAME[0]=openvswitch_mod
 BUILT_MODULE_NAME[1]=brcompat_mod
 BUILT_MODULE_LOCATION[0]=datapath/linux/