Package: samba4
Version: 4.0.0~beta2+dfsg1-3
Severity: serious
User: debian...@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.

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

0m48.7s ERROR: FAIL: After purging files have disappeared:
  /var/cache/samba/      owned by: samba4-common-bin, samba-common
  /var/lib/samba/        owned by: samba4, samba-common
  /var/log/samba/        owned by: samba-common

In this test only the samba4 package was purged, all dependencies are
still installed.

samba4.postrm purge performs:

        # Remove Samba's state files, both volatile and non-volatile
        rm -Rf /var/run/samba/ /var/cache/samba/ /var/lib/samba

        # Remove log files
        rm -Rf /var/log/samba/

(the debconf db_purge is run twice, there is no need to add this
manually to the maintainer script as dh_installdebconf already adds it)


cheers,

Attachment: samba4_4.0.0~beta2+dfsg1-3.log.gz
Description: GNU Zip compressed data

Reply via email to