Package: libfontconfig-doc
Version: 2.13.1-4
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts replaces-without-breaks

Hi,

during a test with piuparts and DOSE tools I noticed your package causes
removal of files that also belong to another package.
This is caused by using Replaces without corresponding Breaks.

The installation sequence to reproduce this problem is

  apt-get install libfontconfig1-dev/stable
  # (1)
  apt-get install libfontconfig-doc
  apt-get remove libfontconfig-doc
  # (2)

The list of installed files at points (1) and (2) should be identical,
but the following files have disappeared:

  /usr/share/doc-base/fontconfig-devel
  /usr/share/man/man3/FcAtomicCreate.3.gz
  /usr/share/man/man3/FcAtomicDeleteNew.3.gz
  /usr/share/man/man3/FcAtomicDestroy.3.gz
...
  /usr/share/man/man3/FcWeightFromOpenTypeDouble.3.gz
  /usr/share/man/man3/FcWeightToOpenType.3.gz
  /usr/share/man/man3/FcWeightToOpenTypeDouble.3.gz

This is a serious bug violating policy 7.6, see
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces
and also see the footnote that describes this incorrect behavior:
https://www.debian.org/doc/debian-policy/ch-relationships.html#id13

The libfontconfig-doc package has the following relationships with 
libfontconfig1-dev:

  Conflicts: n/a
  Breaks:    n/a
  Replaces:  libfontconfig1-dev (<< 2.13.1-3)

>From the attached log (scroll to the bottom...):

0m16.4s DEBUG: Modified(user, group, mode, size, target): 
/var/lib/dpkg/info/libfontconfig1-dev:amd64.list expected(root, root, - 100644, 
25846, None) != found(root, root, - 100644, 16768, None)
0m16.4s ERROR: FAIL: After purging files have disappeared:
  /usr/share/doc-base/fontconfig-devel   owned by: libfontconfig-doc
  /usr/share/man/man3/FcAtomicCreate.3.gz        owned by: libfontconfig-doc
  /usr/share/man/man3/FcAtomicDeleteNew.3.gz     owned by: libfontconfig-doc
...
  /usr/share/man/man3/FcWeightToOpenType.3.gz    owned by: libfontconfig-doc
  /usr/share/man/man3/FcWeightToOpenTypeDouble.3.gz      owned by: 
libfontconfig-doc

0m16.4s ERROR: FAIL: After purging files have been modified:
  /var/lib/dpkg/info/libfontconfig1-dev:amd64.list       not owned


cheers,

Andreas

Attachment: libfontconfig1-dev=2.13.1-2_libfontconfig-doc=2.13.1-4.log.gz
Description: application/gzip

Reply via email to