[Pkg-postgresql-public] Bug#793861: postgresql-9.4: purging deletes directories owned by postgresql-common: /var/{lib, log}/postgresql/

Andreas Beckmann anbe at debian.org
Tue Jul 28 09:36:15 UTC 2015

Package: postgresql-9.4
Version: 9.4.4-1
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts


during a test with piuparts I noticed your package removes files that
were installed by another package.
The removed files 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
or policy chapter 6 ("Package maintainer scripts..."), see
or policy 7.6 ("Overwriting files..."), see

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...):

1m13.3s ERROR: FAIL: After purging files have disappeared:
  /var/lib/postgresql/	 owned by: postgresql-common
  /var/log/postgresql/	 owned by: postgresql-common


-------------- next part --------------
A non-text attachment was scrubbed...
Name: postgresql-9.4.log.gz
Type: application/gzip
Size: 17253 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-postgresql-public/attachments/20150728/454d4e6a/attachment.bin>

More information about the Pkg-postgresql-public mailing list