[Pkg-alsa-devel] Bug#231973: alsa-modules postinst sholdn't only run depmod on the same kernel version
Michel Daenzer
Michel Daenzer <daenzer@debian.org>, 231973@bugs.debian.org
Tue, 10 Feb 2004 01:17:51 +0100
This is a multi-part MIME message sent by reportbug.
--===============0928666920==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: alsa-source
Version: 1.0.1-1
Severity: normal
Tags: patch
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
If you install a package of ALSA modules while running a kernel version which
is different than the one they were built against, the postinst does not run
depmod, so when you then boot the kernel they were built for, the modules may
not be found.
- -- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux thor 2.6.2-ben1-ck1 #1 Fri Feb 6 15:21:11 CET 2004 ppc
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8
Versions of packages alsa-source depends on:
ii bzip2 1.0.2-1 A high-quality block-sorting file
ii debconf 1.4.8 Debian configuration management sy
ii debconf-utils 1.4.8 debconf utilities
ii debhelper 4.1.89 helper programs for debian/rules
ii gcc [c-compiler] 4:3.3.2-2 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-0pre3 The GNU C compiler
ii make 3.80-4 The GNU version of the "make" util
- -- debconf information:
alsa-source/really_overwrite_cards_to_be_built: true
alsa-common/card-list:
* alsa-source/cards_to_be_built: powermac (PowerMac)
* alsa-source/debug: false
alsa-source/really_overwrite_has_pnp: true
* alsa-source/has_pnp: false
alsa-source/really_overwrite_debug: true
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAKCMuWoGvjmrbsgARAse5AJ9jz/RftSJ+Q6UYUpPOdjIsHDJTdgCfdjfN
LBva2TeIzEg+1pt9lqBvd9M=
=1b2/
-----END PGP SIGNATURE-----
--===============0928666920==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="/tmp/alsa-driver.diff"
diff -up -r alsa-driver-1.0.1.orig/debian/alsa-modules.postinst alsa-driver-1.0.1/debian/alsa-modules.postinst
--- alsa-driver-1.0.1.orig/debian/alsa-modules.postinst 2004-02-07 14:34:21.194936651 +0100
+++ alsa-driver-1.0.1/debian/alsa-modules.postinst 2004-02-07 14:34:01.648997056 +0100
@@ -21,12 +21,13 @@ case "$1" in
;;
esac
+depmod -a _KVERS_ || :
+
if [ -s /etc/alsa/modutils/_MAJORVERSION_ ]; then
echo "Configuration file for ALSA _MAJORVERSION_ exists."
if [ $(uname -r) = "_KVERS_" ]; then
echo "Attempting to start."
echo
- depmod -a || :
invoke-rc.d alsa restart
fi
else
--===============0928666920==--