[Pkg-dkms-maint] Bug#554843: Hmm... I take that back :)
Bill Gatliff
bgat at billgatliff.com
Fri Aug 20 20:31:36 UTC 2010
Guys:
Seems I'm confused... Well, I *am* confused, I'm just not sure where
the confusion is coming from... :)
I took a look at the psb-kernel-source-4.41.1.dkms.tar.gz file, and it
looks like this:
$ dpkg --extract
/var/lib/dkms/psb-kernel-source/4.41.1/deb/psb-kernel-source-dkms_4.41.1_all.deb
.
$ cd usr/src
$ tar xzvf psb-kernel-source-4.41.1.dkms.tar.gz
./dkms_main_tree/
./dkms_main_tree/dkms_dbversion
./dkms_main_tree/2.6.28.10-a1rvc/
./dkms_main_tree/2.6.28.10-a1rvc/i686/
./dkms_main_tree/2.6.28.10-a1rvc/i686/module/
./dkms_main_tree/2.6.28.10-a1rvc/i686/module/drm.ko
./dkms_main_tree/2.6.28.10-a1rvc/i686/module/psb.ko
./dkms_main_tree/2.6.28.10-a1rvc/i686/log/
./dkms_main_tree/2.6.28.10-a1rvc/i686/log/make.log
...
So the package file *does* indeed contain prebuilt, kernel-specific
modules as I had hoped. Of course, it also contains a big pile of
source code that I don't need, but it looks like --binaries-only
command line option to dkms will fix that.
Unfortunately, when I do:
$ sudo dkms -m psb-kernel-source -v 4.41.1 -k `uname -r`
--binaries-only mkdeb mkdsc
$ sudo dpkg --install
/var/lib/dkms/psb-kernel-source/4.41.1/deb/psb-kernel-source-dkms_4.41.1_all.deb
(Reading database ... 65369 files and directories currently installed.)
Preparing to replace psb-kernel-source-dkms 4.41.1 (using
.../psb-kernel-source-dkms_4.41.1_all.deb) ...
Unpacking replacement psb-kernel-source-dkms ...
Setting up psb-kernel-source-dkms (4.41.1) ...
Removing old psb-kernel-source-4.41.1 DKMS files...
Loading new psb-kernel-source-4.41.1 DKMS files...
Error! Tarball is a DKMS binaries-only archive, but your DKMS tree
does not have the source installed for psb-kernel-source-4.41.1.
To load a DKMS binaries-only archive, you must already have the module
source in your DKMS tree.
This can be overridden by using --force, but this is not recommended since
it will eliminate your ability to actually build for this module.
dpkg: error processing psb-kernel-source-dkms (--install):
subprocess post-installation script returned error exit status 6
Errors were encountered while processing:
psb-kernel-source-dkms
If I already have the pre-built binaries, why do I need the sources
for them? The target machine has no need for the source code. Oh,
and I don't know which --force I should be using...
b.g.
--
Bill Gatliff
bgat at billgatliff.com
More information about the Pkg-dkms-maint
mailing list