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

Andreas Beckmann anbe at debian.org
Mon Aug 19 06:53:37 UTC 2013


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


(please check the other maintainer scripts, too)


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: php-horde-gollem_3.0.1-1.log.gz
Type: application/x-gzip
Size: 17526 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-horde-hackers/attachments/20130819/135db344/attachment-0001.bin>


More information about the pkg-horde-hackers mailing list