[Pkg-alsa-devel] Bug#246064: alsa-base: 'mv' fails when installing on new system

Darren Salt Darren Salt <linux@youmustbejoking.demon.co.uk>, 246064@bugs.debian.org
Wed, 28 Apr 2004 19:19:42 +0100


This message is in MIME format which your mailer apparently does not support.
You either require a newer version of your software which supports MIME, or
a separate MIME decoding utility.  Alternatively, ask the sender of this
message to resend it in a different format.

--1628740233--1146849126--1535338924
Content-Type: text/plain; charset=us-ascii

A second patch is needed in order that the package is properly configured on
installation. As things stand, for any given run of alsa-base's postinst
script, only ONE of the following actions will be carried out:

* /usr/share/alsa-base/alsa-base.conf will be copied to /etc/default/alsa;

* /etc/default/alsa will be modified to reflect the requested configuration.

-- 
| Darren Salt   | linux (or ds) at | nr. Ashington,
| woody, sarge, | youmustbejoking  | Northumberland
| RISC OS       | demon co uk      | Toon Army
|   <URL:http://www.youmustbejoking.demon.co.uk/progs.linux.html>

You will be winged by an anti-aircraft battery.

--1628740233--1146849126--1535338924
Content-Type: text/plain; charset=iso-8859-1; name="alsa-base-postinst-conf.patch"
Content-Disposition: attachment; filename="alsa-base-postinst-conf.patch"
Content-Transfer-Encoding: quoted-printable

--- alsa-driver-1.0.4/debian/alsa-base.postinst~
+++ alsa-driver-1.0.4/debian/alsa-base.postinst
@@ -20,15 +20,15 @@
=20
 case "$1" in
     configure)
-        if [ ! -f /etc/default/alsa ]; then
+        [ ! -f /etc/default/alsa ] ||
             cp /usr/share/alsa-base/alsa-base.conf /etc/default/alsa
-        else
+
             db_get alsa-base/alsactl_store_on_shutdown
             alsactl_store_on_shutdown=3D"$RET"
             sed -e "s/alsactl_store_on_shutdown=3D.*/alsactl_store_on_sh=
utdown=3D\"$alsactl_store_on_shutdown\"/" /etc/default/alsa > /etc/defaul=
t/alsa.tmp
             mv /etc/default/alsa /etc/default/alsa.debconf-backup
             mv /etc/default/alsa.tmp /etc/default/alsa
-        fi
+
         if [ ! -c /dev/audio -a ! -c /dev/dsp -a ! -c /dev/amixer ] || [=
 -h /dev/snd -o ! -d /dev/snd ]; then
             if [ ! -e /dev/.devfsd -a ! -e /dev/.udev.tdb ]; then
                 /usr/share/alsa-base/snddevices > /dev/null

--1628740233--1146849126--1535338924--