Package: openafs-modules-dkms
Version: 1.4.11+dfsg-4
Severity: minor

Hi Russ,

since DKMS has been announced as the new blessed way to build
out-of-tree modules, I thought I'd give it a spin.
However, when the appropriate linux-headers are not installed,
installing openafs-modules-dkms fails pretty ungracefully:

| Setting up openafs-modules-dkms (1.4.11+dfsg-4) ...
| 
| Creating symlink /var/lib/dkms/openafs/1.4.11/source ->
|                  /usr/src/openafs-1.4.11
| 
| DKMS: add Completed.
| 
| Error! Your kernel source for kernel 2.6.30-2-686 cannot be found at
| /lib/modules/2.6.30-2-686/build or /lib/modules/2.6.30-2-686/source.
| You can use the --kernelsourcedir option to tell DKMS where it's located.

So far so good, it tells me roughly what it's missing. But after
installing linux-headers-2.6.30-2-686, i see this:

| Setting up openafs-modules-dkms (1.4.11+dfsg-4) ...
| 
| Error! DKMS tree already contains: openafs-1.4.11
| You cannot add the same module/version combo more than once.
| dpkg: error processing openafs-modules-dkms (--configure):
|  subprocess installed post-installation script returned error exit status 3

I think this should fall back more gracefully - possibly by removing the
module from DKMS' list if the automatic build fails.

Looking over /etc/dkms/template-dkms-mkdeb/debian, it seems the "new
style" source package template outsources all this to a central
/usr/lib/dkms/common.postinst file (installed by dkms, ofcourse) - which
would handle the problem gracefully.

Bye,
  Philipp

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (60, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openafs-modules-dkms depends on:
ii  bison                     1:2.4.1.dfsg-3 A parser generator that is compati
ii  dkms                      2.1.0.1-1      Dynamic Kernel Module Support Fram
ii  flex                      2.5.35-8       A fast lexical analyzer generator.

openafs-modules-dkms recommends no packages.

openafs-modules-dkms suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to