[Pkg-dkms-commits] [SCM] Dynamic Kernel Module Support branch, master, updated. debian/2.2.0.1-1-1-g6b2d392

Giuseppe Iuculano iuculano at debian.org
Fri Jul 15 13:50:11 UTC 2011


The following commit has been merged in the master branch:
commit 6b2d3923ece359e2c498d32c9d486a226506a302
Author: Giuseppe Iuculano <iuculano at debian.org>
Date:   Fri Jul 15 15:48:09 2011 +0200

    Run depmod command only in Linux
    
    Closes: #631657
    Thanks: Robert Millan

diff --git a/debian/patches/kfreebsd.patch b/debian/patches/kfreebsd.patch
new file mode 100644
index 0000000..b596451
--- /dev/null
+++ b/debian/patches/kfreebsd.patch
@@ -0,0 +1,26 @@
+--- a/dkms
++++ b/dkms
+@@ -233,6 +233,9 @@ setup_kernels_arches()
+ do_depmod()
+ {
+     # $1 = kernel version
++    if [ "${uname_s}" != "Linux" ] ; then
++        return
++    fi
+     if [[ -f /boot/System.map-$1 ]]; then
+ 	/sbin/depmod -a "$1" -F "/boot/System.map-$1"
+     else
+--- a/kernel_postinst.d_dkms
++++ b/kernel_postinst.d_dkms
+@@ -39,11 +39,6 @@ if [ -x /usr/lib/dkms/dkms_autoinstaller
+     /usr/lib/dkms/dkms_autoinstaller start $inst_kern >&2
+ fi
+ 
+-if [ ! -e /lib/modules/$inst_kern/build/include ] ; then
+-    echo "dkms: WARNING: linux headers are missing, which may explain the above failures." >&2
+-    echo "      please install the linux-headers-$inst_kern package to fix this." >&2
+-fi
+-
+ if ! _check_kernel_dir $inst_kern ; then
+     echo "dkms: WARNING: $kernel headers are missing, which may explain the above failures." >&2
+     echo "      please install the $header_pkg package to fix this." >&2
diff --git a/debian/patches/series b/debian/patches/series
index 686e575..5dc9a13 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 improved-error-messages.patch
 debian-lsb.patch
+kfreebsd.patch

-- 
Dynamic Kernel Module Support



More information about the Pkg-dkms-commits mailing list