The following commit has been merged in the master branch:
commit 47e453e1cc0f8f31d27924cfa4b21b9c640b97c2
Author: David Paleino <[email protected]>
Date:   Sun Nov 1 12:56:17 2009 +0100

    debian/patches/02-improve_error_message.patch: improve error message, and 
add Debian/Ubuntu specific suggestion. (Closes: #553600)

diff --git a/debian/patches/02-improve_error_message.patch 
b/debian/patches/02-improve_error_message.patch
new file mode 100644
index 0000000..698a4e0
--- /dev/null
+++ b/debian/patches/02-improve_error_message.patch
@@ -0,0 +1,31 @@
+From: David Paleino <[email protected]>
+Subject: Improve error message, and add Debian/Ubuntu specific changes
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=553600
+Forwarded: no
+
+---
+ dkms |   12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+--- dkms.orig/dkms
++++ dkms/dkms
+@@ -1055,9 +1055,17 @@ function prepare_kernel()
+     # Check that kernel-source exists
+     if ! [ -e "$kernel_source_dir/include" ]; then
+       echo $"" >&2
+-      echo $"Error! Your kernel source for kernel $1 cannot be found at" >&2
++      echo $"Error! Your kernel headers for kernel $1 cannot be found at" >&2
+       echo $"/lib/modules/$1/build or /lib/modules/$1/source." >&2
+-      echo $"You can use the --kernelsourcedir option to tell DKMS where it's 
located."
++      echo -n $"You can use the --kernelsourcedir option to tell DKMS where 
it's located"
++      case "$running_distribution" in
++              Debian* | Ubuntu* )
++                      echo $", or you could install the linux-headers-$1 
package."
++                      ;;
++              * )
++                      echo $"."
++                      ;;
++      esac
+       exit 1
+     fi
+ 
diff --git a/debian/patches/series b/debian/patches/series
index cc46177..1f095d6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_init.patch
+02-improve_error_message.patch

-- 
Maintainance of the dkms package

_______________________________________________
Pkg-dkms-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-dkms-commits

Reply via email to