[Pkg-alsa-devel] Bug#236543: alsa-source: depmod -a reports freak out for new kernel

Jamin W. Collins "Jamin W. Collins" <jcollins@asgardsrealm.net>, 236543@bugs.debian.org
Tue, 16 Mar 2004 15:01:37 -0700


This is a multi-part MIME message sent by reportbug.

--===============0617214662==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: alsa-source
Version: 1.0.2c-3
Severity: normal
Followup-For: Bug #236543

This problem is actually due to the way depmod is called in the postinst
maintainer script.  The generated postinst script calls:

   depmod -a 2.4.24-ar-k7 || :

Where 2.4.24-ar-k7 is the version of the kernel I compiled it for.  If
this call was instead:

   depmod -a -F /boot/System.map-2.4.24-ar-k7 2.4.24-ar-k7 || :

It would not generate these errors.  The attached patch appears to
correct this.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.22-ar-k7
Locale: LANG=C, LC_CTYPE=C

Versions of packages alsa-source depends on:
ii  bzip2                        1.0.2-1     A high-quality block-sorting file 
ii  debconf                      1.4.11      Debian configuration management sy
ii  debconf-utils                1.4.11      debconf utilities
ii  debhelper                    4.2.4       helper programs for debian/rules
ii  gcc [c-compiler]             4:3.3.3-2   The GNU C compiler
ii  gcc-2.95 [c-compiler]        1:2.95.4-20 The GNU C compiler
ii  gcc-3.0 [c-compiler]         1:3.0.4-7   The GNU C compiler.
ii  gcc-3.2 [c-compiler]         1:3.2.3-9   The GNU C compiler
ii  gcc-3.3 [c-compiler]         1:3.3.3-1   The GNU C compiler
ii  make                         3.80-6      The GNU version of the "make" util

-- debconf information:
  alsa-common/card-list: 
* alsa-source/cards_to_be_built: all
* alsa-source/debug: false
* alsa-source/has_pnp: true


--===============0617214662==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="alsa-depmod.patch"

diff -Naur alsa-driver.orig/debian/postinst alsa-driver/debian/postinst
--- alsa-driver.orig/debian/postinst	2004-02-16 05:29:56.000000000 -0700
+++ alsa-driver/debian/postinst	2004-03-16 13:53:34.000000000 -0700
@@ -21,7 +21,7 @@
 	;;
 esac
 
-depmod -a _KVERS_ || :
+depmod -a -F /boot/System.map-_KVERS_ _KVERS_ || :
 
 if [ -s /etc/alsa/modutils/1.0 ]; then
 	echo "Configuration file for ALSA 1.0 exists."

--===============0617214662==--