[Pkg-dkms-commits] [SCM] Dynamic Kernel Module Support branch, master, updated. debian/2.1.1.2-5-2-g935ae61

Michael Gilbert michael.s.gilbert at gmail.com
Wed Aug 18 03:52:43 UTC 2010


The following commit has been merged in the master branch:
commit 430b97f2a397b1b8f83798d712efec833d745022
Author: Michael Gilbert <michael.s.gilbert at gmail.com>
Date:   Tue Aug 17 23:16:14 2010 -0400

    Fix logging for compound make statements (closes: #577972)
    - Thanks to Anders Kaseorg!

diff --git a/debian/patches/make-logging-fix.patch b/debian/patches/make-logging-fix.patch
new file mode 100644
index 0000000..0adf6a4
--- /dev/null
+++ b/debian/patches/make-logging-fix.patch
@@ -0,0 +1,31 @@
+Description: Upstream changes introduced in version 2.1.1.2-5
+Author: Anders Kaseorg <andersk at mit.edu>
+Bug-Debian: http://bugs.debian.org/755972
+--- dkms-2.1.1.2.orig/dkms
++++ dkms-2.1.1.2/dkms
+@@ -25,14 +25,14 @@ function invoke_command ()
+     local exitval_file=`mktemp $tmp_location/dkms.XXXXXX`
+     [ -z "$verbose" ] && echo -en "$2..." || echo -e "$1"
+     if [ "$3" == background ] && [ -z "$verbose" ]; then
+-        (eval $1 >/dev/null 2>&1; echo "exitval=$?" >> "$exitval_file") &
++        (eval "$1" >/dev/null 2>&1; echo "exitval=$?" >> "$exitval_file") &
+         while [ -e "$exitval_file" ] && ! [ -s "$exitval_file" ]; do
+             sleep 3
+             echo -en "."
+         done
+         . "$exitval_file"
+     else
+-        eval $1; exitval=$?
++        eval "$1"; exitval=$?
+     fi
+     [ $exitval -gt 0 ] && echo -en "(bad exit status: $exitval)"
+     rm -f "$exitval_file"
+@@ -1524,7 +1524,7 @@ function do_build()
+     echo $"`date`" >> "$dkms_tree/$module/$module_version/build/make.log"
+     local the_make_command=`echo $make_command | sed "s/^make/make KERNELRELEASE=${kernelver_array[0]}/"`
+ 
+-    invoke_command "$the_make_command >> $dkms_tree/$module/$module_version/build/make.log 2>&1" "$the_make_command" background
++    invoke_command "{$the_make_command;} >> $dkms_tree/$module/$module_version/build/make.log 2>&1" "$the_make_command" background
+ 
+     # Make sure good return status
+     if [ "$?" -ne 0 ]; then
diff --git a/debian/patches/series b/debian/patches/series
index 870b237..36bc11b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ skip-non-matching-kernel.patch
 debian-lsb.patch
 framework_conf.patch
 mkdsc.patch
+make-logging-fix.patch

-- 
Dynamic Kernel Module Support



More information about the Pkg-dkms-commits mailing list