[ovs-dev] Bug#659685: [PATCH] debian: Do not run "make" if "configure" fails during DKMS build.

Thomas Goirand thomas at goirand.fr
Mon Feb 13 23:50:23 UTC 2012


On 02/14/2012 07:41 AM, Thomas Goirand wrote:
> On 02/14/2012 02:09 AM, Ben Pfaff wrote:
>> There is no point in trying to run "make" if "configure" failed.  The
>> "make" will fail too and the log will be harder to read.
>>
>> CC: Thomas Goirand <zigo at debian.org>
>> CC: Simon Horman <horms at verge.net.au>
>> Signed-off-by: Ben Pfaff <blp at nicira.com>
>> ---
>>  debian/dkms.conf.in |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/debian/dkms.conf.in b/debian/dkms.conf.in
>> index a6dc316..ae1fc7a 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=/lib/modules/`uname -r`/build ; 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/
> 
> Hi,
> 
> I can confirm that the above fixes the issue.
> 
> If you need someone to sponsor the upload of this fix, let me know, and
> I'll do that. Or would you accept that I do an NMU, maybe?
> 
> Thomas

I just thought about something... Using "uname -r" is wrong by
definition. Why? Well, simply because you are pretending that the target
build will use the running kernel version, which is wrong: I well may be
running kernel 3.1, and want to have a build of the dkms module for 3.2!
And in fact, that's exactly what I need right now. I'd need that
openvswitch build some kernel modules for BOTH of my installed kernel,
eg 3.1 and 3.2, and that, even if I'm running 3.1 right now.

So you will have to find a way to get the kernel target version here,
and *not* using "uname -r", which is the wrong approach.

I'm not a kernel developer, and I have only a limited experience with
dkms (I only helped a bit Citrix guys to have blktap-dkms in SID). But
if you need someone to tell how to get this variable, I suppose that you
can either look at other dkms packages in the Debian archive, or ask the
kernel mailing list.

Thomas Goirand (zigo)





More information about the dev mailing list