[Pkg-alsa-devel] Bug#238994: marked as done (alsa-base: /etc/apm.event.d/alsa is buggy)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 13 Apr 2004 16:18:17 -0700


Your message dated Tue, 13 Apr 2004 19:02:07 -0400
with message-id <E1BDWut-000402-00@newraff.debian.org>
and subject line Bug#238994: fixed in alsa-driver 1.0.4-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Mar 2004 02:53:07 +0000
>From mgedmin@b4net.lt Fri Mar 19 18:53:07 2004
Return-path: <mgedmin@b4net.lt>
Received: from bitute.b4net.lt (perlas.localdomain) [213.190.46.50] (mg)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1B4Wbi-0005Ev-00; Fri, 19 Mar 2004 18:53:07 -0800
Received: by perlas.localdomain (Postfix, from userid 1000)
	id 2066B10C16B; Sat, 20 Mar 2004 04:53:01 +0200 (EET)
Date: Sat, 20 Mar 2004 04:53:01 +0200
From: Marius Gedminas <mgedmin@b4net.lt>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: alsa-base: /etc/apm.event.d/alsa is buggy
Message-ID: <20040320025301.GA24481@perlas>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 2.53
X-Message-Flag: If you do not see this message correctly, stop using Outlook.
X-GPG-Fingerprint: 8121 AD32 F00A 8094 748A  6CD0 9157 445D E7A6 D78F
X-GPG-Key: http://mg.b4net.lt/mg-pgp-key.txt
X-URL: http://mg.b4net.lt/
User-Agent: Mutt/1.5.5.1+cvs20040105i
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_12 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_12
X-Spam-Level: 

Package: alsa-base
Version: 1.0.3-1
Severity: normal

/etc/apm/event.d/alsa contains the following snippet:

  kill -STOP $(fuser $devices) | cut -d: -f2 | tr '\n' ' '

This is a very unreliable way of stopping processes that use sound devices:
  1) cut and tr should be applied to the output of fuser, not the output
     of kill
  2) the output of fuser includes things like '22228m' which are not
     valid pids

I suggest replacing that line with a simple

  fuser -k -STOP $devices

The same applies to kill -CONT ... near the bottom of the script.

Another problem is that $devices does not contain all ALSA devices.  The
ones in /dev/snd have a different major number (116 instead of 14).
If this is not an intentional omission, I suggest replacing

  devices=$(find /dev -type c | xargs stat -c '%t %n' | sed -n 's/^e //p')

near the top of the script with

  devices=$(find /dev -type c | xargs stat -c '%t %n' | sed -n 's/^e //p; s/^74 //p')

-- System Information:
Debian Release: 3.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.24-mg2
Locale: LANG=C, LC_CTYPE=lt_LT.UTF-8

Versions of packages alsa-base depends on:
ii  alsa-utils                   1.0.3-1     Advanced Linux Sound Architecture 
ii  debconf                      1.4.16      Debian configuration management sy
ii  debianutils                  2.7.2       Miscellaneous utilities specific t
ii  lsof                         4.70-1      List open files.
ii  module-init-tools            3.0-pre10-1 tools for managing Linux kernel mo
ii  modutils                     2.4.26-1    Linux module utilities
ii  procps                       1:3.2.0-1   The /proc file system utilities
ii  psmisc                       21.4-1      Utilities that use the proc filesy

-- debconf information:
  alsa-common/card-list: 
* alsa-base/alsactl_store_on_shutdown: true
* alsa-base/current_card: done
* alsa-base/force_stop_alsa_before_suspend: stop-procs
* alsa-base/card_list: intel8x0 done

Marius Gedminas
-- 
MCSE == Minesweeper Consultant / Solitaire Expert

---------------------------------------
Received: (at 238994-close) by bugs.debian.org; 13 Apr 2004 23:09:18 +0000
>From katie@ftp-master.debian.org Tue Apr 13 16:09:18 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BDX1q-0002be-00; Tue, 13 Apr 2004 16:09:18 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BDWut-000402-00; Tue, 13 Apr 2004 19:02:07 -0400
From: Jordi Mallach <jordi@debian.org>
To: 238994-close@bugs.debian.org
X-Katie: $Revision: 1.47 $
Subject: Bug#238994: fixed in alsa-driver 1.0.4-1
Message-Id: <E1BDWut-000402-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 13 Apr 2004 19:02:07 -0400
Delivered-To: 238994-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: alsa-driver
Source-Version: 1.0.4-1

We believe that the bug you reported is fixed in the latest version of
alsa-driver, which is due to be installed in the Debian FTP archive:

alsa-base_1.0.4-1_all.deb
  to pool/main/a/alsa-driver/alsa-base_1.0.4-1_all.deb
alsa-driver_1.0.4-1.diff.gz
  to pool/main/a/alsa-driver/alsa-driver_1.0.4-1.diff.gz
alsa-driver_1.0.4-1.dsc
  to pool/main/a/alsa-driver/alsa-driver_1.0.4-1.dsc
alsa-driver_1.0.4.orig.tar.gz
  to pool/main/a/alsa-driver/alsa-driver_1.0.4.orig.tar.gz
alsa-headers_1.0.4-1_all.deb
  to pool/main/a/alsa-driver/alsa-headers_1.0.4-1_all.deb
alsa-source_1.0.4-1_all.deb
  to pool/main/a/alsa-driver/alsa-source_1.0.4-1_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 238994@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jordi Mallach <jordi@debian.org> (supplier of updated alsa-driver package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 14 Apr 2004 00:11:52 +0200
Source: alsa-driver
Binary: alsa-source alsa-headers alsa-base
Architecture: source all
Version: 1.0.4-1
Distribution: unstable
Urgency: low
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
Changed-By: Jordi Mallach <jordi@debian.org>
Description: 
 alsa-base  - ALSA sound driver common files
 alsa-headers - ALSA sound driver header files
 alsa-source - ALSA sound driver source
Closes: 235644 236543 238994
Changes: 
 alsa-driver (1.0.4-1) unstable; urgency=low
 .
   * New upstream release.
   * Jordi Mallach:
     - debian/po/cs.po: new Czech translation of debconf templates
       (thanks Miroslav Kure <kurem@upcase.inf.upol.cz>; closes: #235644).
     - debian/alsa-modules.postinst: apply patch from Jamin W. Collins to
       avoid unresolved symbols when calling depmod on alsa-modules's
       postinsts (closes: #236543).
     - debian/control: change Maintainer name to "Debian ALSA Maintainers".
     - debian/alsa-base.apm: apply suggestions from Marius Gedminas to
       improve the detection of ALSA devices and the usage of fuser to stop
       processes, thanks! (closes: #238994).
Files: 
 0323d1a5485e416c07e3b099d46eff37 805 sound optional alsa-driver_1.0.4-1.dsc
 34cedc41bd4832bf97549d37b74b38b7 2193094 sound optional alsa-driver_1.0.4.orig.tar.gz
 14d62fedc8f8c7138bc7e35a5dc2e790 136202 sound optional alsa-driver_1.0.4-1.diff.gz
 ef9fd64871307e2b8568ac9dc41be81d 52916 sound optional alsa-base_1.0.4-1_all.deb
 bc9f5f55d75c1bc22d9b11271b8ff9a5 1807596 sound optional alsa-source_1.0.4-1_all.deb
 c262fb60a58fb1f5cec2ac4113f35fba 55248 sound optional alsa-headers_1.0.4-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAfGgvJYSUupF6Il4RAmEnAKCzqW8kudqBduKkyIy5dh4XBx2pDACfX5Sc
wjHaPeLfUCfPJ2Rew7tuifY=
=i5oN
-----END PGP SIGNATURE-----