Your message dated Thu, 04 Dec 2014 23:13:34 +0100
with message-id <[email protected]>
and subject line Re: Bug#768840: hylafax-server: removes files that were 
installed by another package: /var/spool/hylafax/{bin, etc}
has caused the Debian Bug report #768840,
regarding hylafax-server: removes files that were installed by another package: 
/var/spool/hylafax/{bin, etc}
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
768840: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768840
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: hylafax-server
Version: 3:6.0.6-5
Severity: serious
User: [email protected]
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

Attachment: capi4hylafax=1%01.03.00.99.svn.300-20_hylafax-server=3%6.0.6-5+b1.log.gz
Description: application/gzip


--- End Message ---
--- Begin Message ---
Package: hylafax-server
Version: 3:6.0.6-6

Hi Andreas,

Il giorno dom, 09/11/2014 alle 16.51 +0100, Andreas Beckmann ha scritto:
> 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.
> [...]

I spent a lot of time trying to fix the way hylafax manage these
configuration files, but the patch is quite large and would never allow
hylafax in jessie.

So, I simplified at best the changes and uploaded a new package that
only fix this problem: the directory you listed are not deleted any more
from postrm script.

Bye,
Giuseppe

--- End Message ---

Reply via email to