[Pkg-samba-maint] Bug#696149: samba4: deletes directories owned by samba-common during purge: /var/{cache, lib, log}/samba

Andreas Beckmann debian at abeckmann.de
Mon Dec 17 10:45:48 UTC 2012


Package: samba4
Version: 4.0.0~beta2+dfsg1-3
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.

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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba4_4.0.0~beta2+dfsg1-3.log.gz
Type: application/x-gzip
Size: 11908 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20121217/3fe8d05f/attachment.bin>


More information about the Pkg-samba-maint mailing list