summaryrefslogtreecommitdiffstats
path: root/debian/patches/version-sort.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:20:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:20:55 +0000
commit751abe5af6e60af060ea7979512574d903a49eb0 (patch)
tree991d21305c4f60a4b0c13964436f8b8e08fee34b /debian/patches/version-sort.patch
parentAdding upstream version 3.0.10. (diff)
downloaddkms-751abe5af6e60af060ea7979512574d903a49eb0.tar.xz
dkms-751abe5af6e60af060ea7979512574d903a49eb0.zip
Adding debian version 3.0.10-8+deb12u1.debian/3.0.10-8+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/version-sort.patch')
-rw-r--r--debian/patches/version-sort.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/version-sort.patch b/debian/patches/version-sort.patch
new file mode 100644
index 0000000..d0f0327
--- /dev/null
+++ b/debian/patches/version-sort.patch
@@ -0,0 +1,22 @@
+--- a/dkms_common.postinst
++++ b/dkms_common.postinst
+@@ -127,7 +127,7 @@ if [ -r /etc/dkms/framework.conf ]; then
+ . /etc/dkms/framework.conf
+ fi
+
+-KERNELS=$(ls /lib/modules/ 2>/dev/null || true)
++KERNELS=$(ls -v /lib/modules/ 2>/dev/null || true)
+ CURRENT_KERNEL=$(uname -r)
+
+ #We never want to keep an older version side by side to prevent conflicts
+--- a/dkms.in
++++ b/dkms.in
+@@ -269,7 +269,7 @@ setup_kernels_arches()
+ kernelver[$i]=${line%/*}
+ arch[$i]=${line#*/}
+ i=$(($i + 1))
+- done < <(module_status_built "$module" "$module_version")
++ done < <(module_status_built "$module" "$module_version" | sort -V)
+ fi
+
+ # Set default kernel version and arch, if none set (but only --all isn't set)