+++ Jonathan Nieder [2012-07-22 10:54 -0500]:
> Source: libpaper
> Version: 1.1.24+nmu2
> Severity: important
> X-Debbugs-Cc: Colin Watson <cjwat...@ubuntu.com>, Wookey <woo...@wookware.org>
> 
> libpaper1.postrm contains the following code:
> 
>       case "$1" in
>         purge)
>           [ -x /usr/bin/ucf ] && ucf --purge /etc/papersize
>           rm -f /etc/papersize
>         ;;
>       esac
> 
> Therefore if I run the following operations, /etc/papersize will be
> removed even though libpaper1 is still installed.
> 
>       dpkg -i libpaper1_1.1.24+nmu2_i386.deb libpaper1_1.1.24+nmu2_amd64.deb
>       echo a4 >/etc/papersize
>       dpkg --purge libpaper1_1.1.24+nmu2_amd64.deb
> 
> Possible fixes:
> 
>  a) Remove "Multi-Arch: same" for libpaper1 in wheezy

Having this package M-A: same is genuinely useful because to
cross-build cups, for example, which is quite low in the bootstrapping
tree, it is needed in both host and build arch versions. So I'd like
to avoid reverting this is possible.

>  b) Manage /etc/papersize in a separate libpaper-common package.  The
>     configuration file's name doesn't vary with the soname so the
>     current state seems like a policy ยง10.7.4 violation waiting to
>     happen anyway.

Do we need to do this for every M-A: same lib that has a config file?
It seems like there might be a lot of those, but maybe there aren't...
And a single-config-file package seems inelegant.

>  c) Guard the code that purges /etc/papersize with a test that
>     libpaper1 is already purged for all other architectures.

That seems the most attractive suggestion to me. Perhaps it should be
standard practice?

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to