Package: hylafax-server Version: 3:6.0.6-5 Severity: serious User: debian...@lists.debian.org Usertags: piuparts
Hi, during a test with piuparts I noticed your package removes directories that were installed by another package. The removed directories were already present before the package was installed, they may have been shipped or created by a dependency. This could be a violation of policy 10.7.4 ("Sharing configuration files"), see http://www.debian.org/doc/debian-policy/ch-files.html#s10.7.4 or policy chapter 6 ("Package maintainer scripts..."), see http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html or policy 7.6 ("Overwriting files..."), see http://www.debian.org/doc/debian-policy/ch-relationships.html#s-replaces If a directory is used by several packages, all should ship it as part of the package (possibly empty, using $package.dirs to create it), and no package should mkdir/rmdir it in the maintainer scripts as dpkg will take care of this. >From the attached log (scroll to the bottom...): 0m58.5s ERROR: FAIL: After purging files have disappeared: /var/spool/hylafax/bin/ owned by: hylafax-server, capi4hylafax /var/spool/hylafax/etc/ owned by: hylafax-server, capi4hylafax Looking at hylafax-server.postrm: * rm -rf /var/spool/hylafax/etc is very critical, since capi4hylafax also places files in this directory => please only remove stuff placed there by hylafax-server (and leave the directory itself for dpkg to handle) * rmdir --ignore-fail-on-non-empty /var/spool/hylafax/bin not needed since this directory is shipped, let dpkg do its job (and it dpkg does not properly remove some directories, let's fix this in dpkg) The logfile also contains 0m58.5s DEBUG: Modified(uid, gid, mode, size, target): /var/spool/hylafax/ (0, 0, d 40755, 80, None) != (10, 10, d 40755, 40, None) maybe the two packages capi4hylafax and hylafax-server could agree on the ownership of that directory ... cheers, Andreas
capi4hylafax=1%01.03.00.99.svn.300-20_hylafax-server=3%6.0.6-5+b1.log.gz
Description: application/gzip