summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-default-built_module_name-0-to-PACKAGE_NAME.patch
blob: ae73d88d78fd4d7be021ec6b6a0748b894d4a050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 78bc5aa693ec9928778836469b815d2da5434e19 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <anbe@debian.org>
Date: Mon, 27 Mar 2023 01:39:01 +0200
Subject: [PATCH] default built_module_name[0] to $PACKAGE_NAME

$module is not yet set in add_source_tree
---
 dkms.in     |  2 +-
 run_test.sh | 13 ++++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/dkms.in b/dkms.in
index 25d4b9e..6069e82 100644
--- a/dkms.in
+++ b/dkms.in
@@ -540,7 +540,7 @@ read_conf()
         # If unset, set by defaults
         [[ ! ${built_module_name[$index]} ]] && \
             ((${#DEST_MODULE_LOCATION[@]} == 1)) && \
-            built_module_name[$index]=$module
+            built_module_name[$index]=$PACKAGE_NAME
         [[ ! ${dest_module_name[$index]} ]] && \
             dest_module_name[$index]=${built_module_name[$index]}
         [[ ${built_module_location[$index]} && \