[pkg-horde] Bug#720139: Bug#720139: php-horde: fails to purge: subprocess installed post-removal script returned error exit status 1

Mathieu Parent math.parent at gmail.com
Tue Aug 20 11:34:55 UTC 2013


2013/8/19 Andreas Beckmann <anbe at debian.org>:
> Package: php-horde
> Version: 5.1.1+debian0-1
> Severity: important
> Tags: patch
> User: debian-qa at lists.debian.org
> Usertags: piuparts
>
> Hi,
>
> during a test with piuparts I noticed your package failed to purge.
> According to policy 7.2 you cannot rely on the depends being available
> during purge, only the essential packages are available for sure.
>
> Filing this as important because a.) it's a clear policy violation (to
> not clean up at purge) b.) having a piuparts clean archive is a release
> goal since lenny and c.) this package being piuparts buggy blocks
> packages depending on it from being tested by piuparts (and thus
> possibly the detection of more severe problems).
>
> >From the attached log (scroll to the bottom...):
>
>   Removing php-horde ...
>   Purging configuration files for php-horde ...
>   dpkg: error processing php-horde (--purge):
>    subprocess installed post-removal script returned error exit status 1
>
>
> Adding set -x to the postrm script produces
>
> Removing php-horde ...
> Purging configuration files for php-horde ...
> + dpkg-maintscript-helper mv_conffile /etc/apache2/conf.d/horde.conf /etc/apache2/conf-available/php-horde.conf 5.1.0+debian0-1~ -- purge
> + '[' purge = remove ']'
> + '[' purge = purge ']'
> + CONF=php-horde
> + '[' -e /usr/share/apache2/apache2-maintscript-helper ']'
> + dpkg-query -f '${Version}' -W apache2.2-common
> + '[' -L /etc/apache2/conf.d/php-horde.conf ']'
> dpkg: error processing php-horde (--purge):
>  subprocess installed post-removal script returned error exit status 1
> Errors were encountered while processing:
>  php-horde
>
>
> Regarding the postrm script:
> * it misses at the beginning
>
>     #!/bin/sh
>     set -e
>
> * the failing test should be rewritten as
>
>     [ ! -L /etc/apache2/conf.d/$CONF.conf ] || rm /etc/apache2/conf.d/$CONF.conf
>
>   to not fail if the file is missing

Thanks,

I have used another kind of patch:
http://anonscm.debian.org/gitweb/?p=pkg-horde/PEAR/php-horde.git;a=commitdiff;h=abe1780824241f69c8ee7ae3218d9fc26c8d2179

Will upload within a week.

Regards
-- 
Mathieu Parent



More information about the pkg-horde-hackers mailing list