[Pkg-alsa-devel] Bug#106244:

Thomas Hood Thomas Hood <jdthood@yahoo.co.uk>, 106244@bugs.debian.org
Fri, 27 Feb 2004 10:29:15 +0100


On Fri, 2004-02-27 at 01:27, David B Harris wrote:
> tags 106244 + pending
> thanks
> 
> Hey there :) This is fixed in CVS, and it'll be in the next upload.

Good news!  This is important for the goal of making /etc/ a
static directory so that the root filesystem can easily be mounted
read-only.


> Here's a snippet from the changelog:
> 
> - alsaconf/alsaconf.in, alsactl/alsactl.{1,c} via
>   patches/10_move_asound_state_to_var.dpatch:
>   Move the default asound.state from /etc/ to /var/lib/alsa/
>   (Closes: #106244)

OK


> - debian/postinst: If /etc/asound.state exists, copy it to /var/lib/alsa.

The file should be moved in alsa-utils's preinst instead of in
the postinst.  That way asound.state is in the right place as soon
as the new alsactl is executable.  Also, only moving the file in
preinst is consistent with un-moving it in the postrm.  See ch. 6
of the policy manual for a description of how the maintainer scripts
are run.


>  alsa-base will require a versioned Depends: on this package so that
>   restarting ALSA in its postinst will get the state from the right place.

I don't see a need to version the Depends unless something in alsa-base
accesses the asound.state file directly.


> - debian/postrm: Add abort-{upgrade,install} support so that
>   /var/lib/alsa/asound.state is moved back to /etc/ on a failed upgrade.

OK

Thanks for taking care of this.
--
Thomas