From: Ben Pfaff <blp@nicira.com>
Date: Tue, 10 Jan 2012 22:22:22 +0000 (-0800)
Subject: debian: Look in /lib/modules instead of /usr/src for DKMS kernel sources.
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=8c36bdd19fafc517b135f744613dfb10e06475f3;p=sliver-openvswitch.git

debian: Look in /lib/modules instead of /usr/src for DKMS kernel sources.

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>
---

diff --git a/AUTHORS b/AUTHORS
index c2fdca6a5..4e9a7dfc1 100644
--- 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
diff --git a/debian/dkms.conf.in b/debian/dkms.conf.in
index 56c6398f5..a6dc316b2 100644
--- a/debian/dkms.conf.in
+++ b/debian/dkms.conf.in
@@ -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/