Bug#904519: libx2go-server-db-perl: purging deletes /etc/x2go/x2gosql/sql which is owned by x2goserver-common

Andreas Beckmann anbe at debian.org
Wed Jul 25 01:37:02 BST 2018


Package: libx2go-server-db-perl
Version: 4.1.0.0-4
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

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
https://www.debian.org/doc/debian-policy/#sharing-configuration-files
or policy chapter 6 ("Package maintainer scripts..."), see
https://www.debian.org/doc/debian-policy/#package-maintainer-scripts-and-installation-procedure
or policy 7.6 ("Overwriting files..."), see
https://www.debian.org/doc/debian-policy/#overwriting-files-and-replacing-packages-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...):

0m39.7s DEBUG: Starting command: ['chroot', '/srv/piuparts/tmp/tmpjP2Kww', 'dpkg', '--purge', 'libx2go-server-db-perl']
0m39.7s DUMP: 
  (Reading database ... 7091 files and directories currently installed.)
  Purging configuration files for libx2go-server-db-perl (4.1.0.0-4) ...
  Removing X2Go session database
  removed '/etc/x2go/x2gosql/passwords/pgadmin'
  removed '/etc/x2go/x2gosql/sql'
0m39.7s DEBUG: Command ok: ['chroot', '/srv/piuparts/tmp/tmpjP2Kww', 'dpkg', '--purge', 'libx2go-server-db-perl']

0m40.5s ERROR: FAIL: debsums reports modifications inside the chroot:
  debsums: missing file /etc/x2go/x2gosql/sql (from x2goserver-common package)


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libx2go-server-db-perl_4.1.0.0-4.log.gz
Type: application/gzip
Size: 11130 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-remote-team/attachments/20180725/1bb9e8b5/attachment-0001.gz>


More information about the pkg-remote-team mailing list