Debian Bug report logs - #651973
BUILT_MODULE_NAME[#] required if linux-headers-* is installed/updated after the foo-dkms package

version graph

Package: dkms; Maintainer for dkms is Dynamic Kernel Modules Support Team <dkms@tracker.debian.org>; Source for dkms is src:dkms (PTS, buildd, popcon).

Affects: ndiswrapper-dkms

Reported by: pmatthaei@debian.org

Date: Tue, 13 Dec 2011 18:09:01 UTC

Severity: important

Merged with 690747, 704122

Found in version dkms/2.2.0.3-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Andreas Beckmann <debian@abeckmann.de>:
Bug#651973; Package r8168-dkms. (Tue, 13 Dec 2011 18:09:04 GMT) (full text, mbox, link).


Acknowledgement sent to pmatthaei@debian.org:
New Bug report received and forwarded. Copy sent to Andreas Beckmann <debian@abeckmann.de>. (Tue, 13 Dec 2011 18:09:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Patrick Matthäi <pmatthaei@debian.org>
To: Debian Bug <submit@bugs.debian.org>
Subject: Missing module name in dkms.conf
Date: Tue, 13 Dec 2011 19:05:25 +0100
[Message part 1 (text/plain, inline)]
Package: r8168-dkms
Version: 8.026.00-1
Severity: important

Hi,

in dkms.conf following line is missing:
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"

So dkms.conf looks at the end like this:
PACKAGE_NAME="r8168"
PACKAGE_VERSION="8.026.00"
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/updates/dkms"
AUTOINSTALL="YES"
REMAKE_INITRD="YES"

Else I get this warning/error on updating linux-headers-3.1.0-1-amd64:

linux-image-3.1.0-1-amd64 (3.1.5-1) wird eingerichtet ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.1.0-1-amd64
/boot/vmlinuz-3.1.0-1-amd64
dkms.conf: Error! No 'BUILT_MODULE_NAME' directive specified for record #0.
Error! Bad conf file.
File:
does not represent a valid dkms.conf file.


-- 
/*
Mit freundlichem Gruß / With kind regards,
 Patrick Matthäi
 GNU/Linux Debian Developer

E-Mail: pmatthaei@debian.org
        patrick@linux-dev.org
*/

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#651973; Package r8168-dkms. (Wed, 14 Dec 2011 11:15:03 GMT) (full text, mbox, link).


Acknowledgement sent to Andreas Beckmann <debian@abeckmann.de>:
Extra info received and forwarded to list. (Wed, 14 Dec 2011 11:15:06 GMT) (full text, mbox, link).


Message #10 received at 651973@bugs.debian.org (full text, mbox, reply):

From: Andreas Beckmann <debian@abeckmann.de>
To: pmatthaei@debian.org, 651973@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: Bug#651973: Missing module name in dkms.conf
Date: Wed, 14 Dec 2011 12:09:52 +0100
reassign 651973 dkms 2.2.0.3-1
retitle 651973 BUILT_MODULE_NAME[#] required if linux-headers-* is installed/updated after the foo-dkms package
thanks

dkms(8):

    BUILT_MODULE_NAME[#]=
        ... If your DKMS module package contains more than one module 
        to install, this is a required directive for all of the modules.
        ...

I interpret this as "if the dkms package builds exactly one module, the 
BUILT_MODULE_NAME is optional", so I omitted that option for r8168.
This works fine if the dkms package is installed after the headers, but
not the other way around (e.g. on header updates).

Andreas

On 2011-12-13 19:05, Patrick Matthäi wrote:
> Package: r8168-dkms
> Version: 8.026.00-1
> Severity: important
> 
> Hi,
> 
> in dkms.conf following line is missing:
> BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
> 
> So dkms.conf looks at the end like this:
> PACKAGE_NAME="r8168"
> PACKAGE_VERSION="8.026.00"
> BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
> DEST_MODULE_LOCATION[0]="/updates/dkms"
> AUTOINSTALL="YES"
> REMAKE_INITRD="YES"
> 
> Else I get this warning/error on updating linux-headers-3.1.0-1-amd64:
> 
> linux-image-3.1.0-1-amd64 (3.1.5-1) wird eingerichtet ...
> Running depmod.
> Examining /etc/kernel/postinst.d.
> run-parts: executing /etc/kernel/postinst.d/dkms 3.1.0-1-amd64
> /boot/vmlinuz-3.1.0-1-amd64
> dkms.conf: Error! No 'BUILT_MODULE_NAME' directive specified for record #0.
> Error! Bad conf file.
> File:
> does not represent a valid dkms.conf file.
> 
> 





Bug reassigned from package 'r8168-dkms' to 'dkms'. Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Wed, 14 Dec 2011 11:15:09 GMT) (full text, mbox, link).


Bug No longer marked as found in versions r8168/8.026.00-1. Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Wed, 14 Dec 2011 11:15:10 GMT) (full text, mbox, link).


Bug Marked as found in versions dkms/2.2.0.3-1. Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Wed, 14 Dec 2011 11:15:11 GMT) (full text, mbox, link).


Changed Bug title to 'BUILT_MODULE_NAME[#] required if linux-headers-* is installed/updated after the foo-dkms package' from 'Missing module name in dkms.conf' Request was from Andreas Beckmann <debian@abeckmann.de> to control@bugs.debian.org. (Wed, 14 Dec 2011 11:15:11 GMT) (full text, mbox, link).


Added indication that 651973 affects ndiswrapper-dkms Request was from Jan Braun <janbraun@gmx.de> to control@bugs.debian.org. (Sat, 15 Jun 2013 13:45:04 GMT) (full text, mbox, link).


Merged 651973 690747 704122 Request was from Jan Braun <janbraun@gmx.de> to control@bugs.debian.org. (Sat, 15 Jun 2013 13:45:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Oct 1 14:29:55 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.