dkms.conf can be broken in subtle ways the sourcing the file miss
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DKMS |
New
|
Undecided
|
Unassigned |
Bug Description
Take the following config file for example
PACKAGE_
PACKAGE_
AUTOINSTALL="yes"
OBSOLETE_
MAKE="make KVER=$kernelver
CLEAN="make KVER=$kernelver clean
BUILT_MODULE_
BUILT_MODULE_
DEST_MODULE_
There's a double quote missing from the end of MAKE & CLEAN
(lucid-
-bash: clean: command not found
(lucid-
0
While dkms normally checks the return value when it sources the conf file, plain
syntax errors like this sometimes get through. This caused some strange errors
for me later in the build (it did build) which were not readily identifiable.
dkms should actually parse the config file and verify at least basic shell syntax
e.g. proper variable name + equals sign + double quoted expression
What is the behavior if you run this file though dkms right now? Does it fail and give you an error message?