[Pkg-alsa-devel] Bug#247109: marked as done (alsa-base: apm script exits with nonzero status)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 09 Jun 2004 17:03:05 -0700


Your message dated Wed, 09 Jun 2004 19:47:07 -0400
with message-id <E1BYCmh-0003u5-00@newraff.debian.org>
and subject line Bug#247109: fixed in alsa-driver 1.0.5a-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; 3 May 2004 11:36:05 +0000
>From mgedmin@b4net.lt Mon May 03 04:36:05 2004
Return-path: <mgedmin@b4net.lt>
Received: from office.pov.lt (mg.homelinux.net) [213.197.143.150] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BKbjx-0000OY-00; Mon, 03 May 2004 04:36:05 -0700
Received: by mg.homelinux.net (Postfix, from userid 1000)
	id C500510C0F7; Mon,  3 May 2004 14:35:59 +0300 (EEST)
Date: Mon, 3 May 2004 14:35:59 +0300
From: Marius Gedminas <mgedmin@b4net.lt>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: alsa-base: apm script exits with nonzero status
Message-ID: <20040503113559.GA18195@perlas>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 2.58
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/
X-Message-Flag: If you do not see this message correctly, stop using Outlook.
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_25 
	(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_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: alsa-base
Version: 1.0.4-3
Severity: normal

/etc/init.d/apm can exit with nonzero status code and prevent other APM
scripts from being run (this broke laptop-net on my machine).  The
reason is that fuser returns a nonzero status code when there are no
processes that are using sound devices.

Proposed fix:

--- /etc/apm/event.d/alsa.dpkg-dist   2004-05-02 13:50:34.000000000 +0300
+++ /etc/apm/event.d/alsa        2004-05-03 14:33:27.000000000 +0300
@@ -7,12 +7,12 @@
 devices=$(find /dev -type c | xargs stat -c '%t %n' | sed -n 's/^e //p; s/^74 //p')
 if [ "$1" = suspend ]; then
     if [ -d /proc/asound ]; then
-       fuser -k -STOP $devices
+       fuser -k -STOP $devices || true
     fi
     sleep 1
 elif [ "$1" = resume ]; then
     if [ -d /proc/asound ]; then
-       fuser -k -CONT $devices
+       fuser -k -CONT $devices || true
     fi
 fi


Also, is that 'sleep 1' line really necessary?  If it is, shouldn't it
be moved inside 'if [ -d /proc/asound ]'?

-- System Information:
Debian Release: 3.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
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.4-1     Advanced Linux Sound Architecture 
ii  debconf                      1.4.25      Debian configuration management sy
ii  debianutils                  2.8.1       Miscellaneous utilities specific t
ii  module-init-tools            3.0-pre10-2 tools for managing Linux kernel mo
ii  modutils                     2.4.26-1    Linux module utilities
ii  psmisc                       21.4-1      Utilities that use the proc filesy

-- debconf information excluded

Marius Gedminas
-- 
Read what I mean, not what I write.

---------------------------------------
Received: (at 247109-close) by bugs.debian.org; 9 Jun 2004 23:53:10 +0000
>From katie@ftp-master.debian.org Wed Jun 09 16:53:10 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 1BYCsY-0006vv-00; Wed, 09 Jun 2004 16:53:10 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1BYCmh-0003u5-00; Wed, 09 Jun 2004 19:47:07 -0400
From: dbharris@debian.org (David B. Harris)
To: 247109-close@bugs.debian.org
X-Katie: $Revision: 1.49 $
Subject: Bug#247109: fixed in alsa-driver 1.0.5a-1
Message-Id: <E1BYCmh-0003u5-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Wed, 09 Jun 2004 19:47:07 -0400
Delivered-To: 247109-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=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Source: alsa-driver
Source-Version: 1.0.5a-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.5a-1_all.deb
  to pool/main/a/alsa-driver/alsa-base_1.0.5a-1_all.deb
alsa-driver_1.0.5a-1.diff.gz
  to pool/main/a/alsa-driver/alsa-driver_1.0.5a-1.diff.gz
alsa-driver_1.0.5a-1.dsc
  to pool/main/a/alsa-driver/alsa-driver_1.0.5a-1.dsc
alsa-driver_1.0.5a.orig.tar.gz
  to pool/main/a/alsa-driver/alsa-driver_1.0.5a.orig.tar.gz
alsa-headers_1.0.5a-1_all.deb
  to pool/main/a/alsa-driver/alsa-headers_1.0.5a-1_all.deb
alsa-source_1.0.5a-1_all.deb
  to pool/main/a/alsa-driver/alsa-source_1.0.5a-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 247109@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David B. Harris <dbharris@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,  9 Jun 2004 19:37:25 -0400
Source: alsa-driver
Binary: alsa-source alsa-headers alsa-base
Architecture: source all
Version: 1.0.5a-1
Distribution: unstable
Urgency: low
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
Changed-By: David B. Harris <dbharris@debian.org>
Description: 
 alsa-base  - ALSA sound driver common files
 alsa-headers - ALSA sound driver header files
 alsa-source - ALSA sound driver source
Closes: 247109 251678 253347
Changes: 
 alsa-driver (1.0.5a-1) unstable; urgency=low
 .
   * New upstream release.
   * Steve Kowalik:
     - fuser may exit non-zero. Fix the apm event script. (Closes: #247109)
     - Update the Czech debconf translation. (Closes: #251678)
   * Jordi Mallach:
     - debian/po/da.po: Add Danish translation (thanks, Michael Kristensen;
       closes: #253347).
Files: 
 4f9c3016fbe18e6e067217ed571dceea 1100 sound optional alsa-driver_1.0.5a-1.dsc
 2cfe864b423d4ae00930161b79453573 2237029 sound optional alsa-driver_1.0.5a.orig.tar.gz
 1cb70a9000cbd1e5a9048c0aa60de405 134482 sound optional alsa-driver_1.0.5a-1.diff.gz
 371ce5ba870158e40b0728e618fd2bf8 46612 sound optional alsa-base_1.0.5a-1_all.deb
 254dd331facba008ec6fb1319cf64c94 1833830 sound optional alsa-source_1.0.5a-1_all.deb
 1d5ad8f328fc88c71b6ee77583f0dd6b 56324 sound optional alsa-headers_1.0.5a-1_all.deb

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

iQEVAwUBQMefvGdoLXfrvKobAQKYtQf/cVOpkC6XeqfbYf35LggK8X1bPTViBY9X
Pw4za7pr0mJzAcKwf9RT63K+rewBvbwj0XnKXdrXVcJ4oOXBODoq4vlBLcjUf7uY
DvJkM3gXOfW0t7dqXUSGtASB/AkBZeqDWqX8eyGH4oLeomlFTNzrxuk3PS2Jzwnm
wnLtiL5qhP61grmnX4+C9ZdTY6qkm2KBV1G+qz5WbmGVO/neO31+T527FmRyhLS8
9reGvrfZpnknajF7gm6aJr2NoR/BmhGsDRAteIeDwSvOldxIE2N7GkNSZcyepcaJ
rvAaepZcddZ/W7fPycBTMlM9U3OxUlknYrXTNlWDg1XxrJ5IuUpJzQ==
=6x5h
-----END PGP SIGNATURE-----