having a hyphen '-' as part of PACKAGE_VERSION caused strange failures from the resulting deb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DKMS |
New
|
Undecided
|
Unassigned | ||
dkms (Debian) |
Fix Released
|
Unknown
|
Bug Description
Previously my config file looked like this:
PACKAGE_
# no dashes or underscores allowed, less is more
PACKAGE_
AUTOINSTALL="yes"
OBSOLETE_
# We've got to build with a extra makefile because
# dkms sources this file, which locks in what pwd
# is and causes all sorts of problems.
#
MAKE="make KVER=$kernelver"
CLEAN="make KVER=$kernelver clean"
BUILT_MODULE_
BUILT_MODULE_
DEST_MODULE_
That "-21" wasted many hours of my time. It created a deb that upon installation would claim
that there was no source code present to compile against and wouldn't even install the binaries
I had built for it.
$ sudo dpkg -i alsa-driver-
...
Selecting previously deselected package alsa-driver-
(Reading database ... 54571 files and directories currently installed.)
Unpacking alsa-driver-
Setting up alsa-driver-
Loading new alsa-driver-
First Installation: checking all kernels...
Building only for 2.6.32-22-generic
Building for architecture i686
This package appears to be a binaries-only package
you will not be able to build against kernel 2.6.32-21-generic
since the package source was not provided
This package appears to be a binaries-only package
you will not be able to build against kernel 2.6.32-
since the package source was not provided
$ dkms status
[no output]
I don't have a root cause as to why the deb thinks it's configured this way. I
removed the "-21" from the version and in return had a fully functioning deb.
Related branches
Changed in dkms: | |
status: | Fix Committed → Fix Released |
Changed in dkms (Debian): | |
status: | Unknown → New |
Changed in dkms (Debian): | |
status: | New → Fix Released |
Peter,
There was a massive rewrite of DKMS for bash optimization over the last year. Within this a lot of little weird corner case bugs like this got cleaned up. I actually just tried using a package with a "-" in the name and it appears to handle properly now:
supermario@ mlimonciello ~ $ sudo dkms add -m nvidia_bl -v 0.69-1
Creating symlink /var/lib/ dkms/nvidia_ bl/0.69- 1/source ->
/usr/ src/nvidia_ bl-0.69- 1
DKMS: add Completed. mlimonciello ~ $ sudo dkms install -m nvidia_bl -v 0.69-1
supermario@
Kernel preparation unnecessary for this kernel. Skipping...
Building module: 2.6.38- 8-generic- pae -C /lib/modules/ 2.6.38- 8-generic- pae/build SUBDIRS= /var/lib/ dkms/nvidia_ bl/0.69- 1/build modules....
cleaning build area....
make KERNELRELEASE=
cleaning build area....
DKMS: build Completed.
nvidiabl.ko: 2.6.38- 8-generic- pae/updates/ dkms/
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/
depmod....
DKMS: install Completed.