From: Ben Pfaff 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: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=715a77b74caf22e38d1f232d1cc45036b9b83e62;p=openvswitch 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 Tested-by: Alban Browaeys Signed-off-by: Ben Pfaff --- diff --git a/AUTHORS b/AUTHORS index d413523d..87b3ccdf 100644 --- a/AUTHORS +++ b/AUTHORS @@ -60,6 +60,7 @@ provided helpful bug reports or suggestions. Aaron M. Ucko ucko@debian.org Aaron Rosen arosen@clemson.edu 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 56c6398f..a6dc316b 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/