[Pkg-electronics-devel] Bug#960508: removal of pcb-rnd-{core, doc, rnd-import-net} makes files disappear from pcb-rnd/stable

Andreas Beckmann anbe at debian.org
Wed May 13 13:17:34 BST 2020


Package: pcb-rnd-core,pcb-rnd-doc,pcb-rnd-import-net
Version: 2.2.0-3
Severity: serious
User: debian-qa at 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 pcb-rnd/buster
  # (1)
  apt-get install pcb-rnd-core
  apt-get remove pcb-rnd-core
  # (2)

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

  /usr/bin/fp2subc
  /usr/bin/pcb-prj2lht
  /usr/bin/pcb-rnd
  /usr/share/man/man1/fp2subc.1.gz
  /usr/share/man/man1/pcb-prj2lht.1.gz
  /usr/share/man/man1/pcb-rnd.1.gz
  /usr/share/pcb-rnd/default2.lht
  /usr/share/pcb-rnd/default4.lht
  /usr/share/pcb-rnd/default_font
  /usr/share/pcb-rnd/pcblib/connector/BNC_LAY.fp
  /usr/share/pcb-rnd/pcblib/connector/DB15F.fp
  /usr/share/pcb-rnd/pcblib/connector/DB15M.fp
  /usr/share/pcb-rnd/pcblib/connector/DB25F.fp
  /usr/share/pcb-rnd/pcblib/connector/DB25M.fp
...
  /usr/share/pcb-rnd/pcblib/tru-hole/TO247.fp
  /usr/share/pcb-rnd/pcblib/tru-hole/TO247_2.fp
  /usr/share/pcb-rnd/pcblib/tru-hole/TO251.fp
  /usr/share/pcb-rnd/pcblib/tru-hole/TO264.fp
  /usr/share/pcb-rnd/pcblib/tru-hole/TO39.fp
  /usr/share/pcb-rnd/pcblib/tru-hole/TO92.fp


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 pcb-rnd-core package has the following relationships with pcb-rnd:

  Conflicts: n/a
  Breaks:    n/a
  Replaces:  pcb-rnd (<< 2.2.0-2)

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

2m24.4s DEBUG: Modified(user, group, mode, size, target): /var/lib/dpkg/info/pcb-rnd.list expected(root, root, - 100644, 17589, None) != found(root, root, - 100644, 12508, None)
2m24.4s ERROR: FAIL: After purging files have disappeared:
  /usr/bin/fp2subc       owned by: pcb-rnd-core
  /usr/bin/pcb-prj2lht   owned by: pcb-rnd-core
  /usr/bin/pcb-rnd       owned by: pcb-rnd-core
  /usr/share/man/man1/fp2subc.1.gz       owned by: pcb-rnd-core
  /usr/share/man/man1/pcb-prj2lht.1.gz   owned by: pcb-rnd-core
...
  /usr/share/pcb-rnd/pcblib/tru-hole/TO251.fp    owned by: pcb-rnd-core
  /usr/share/pcb-rnd/pcblib/tru-hole/TO264.fp    owned by: pcb-rnd-core
  /usr/share/pcb-rnd/pcblib/tru-hole/TO39.fp     owned by: pcb-rnd-core
  /usr/share/pcb-rnd/pcblib/tru-hole/TO92.fp     owned by: pcb-rnd-core

2m24.4s ERROR: FAIL: After purging files have been modified:
  /var/lib/dpkg/info/pcb-rnd.list        not owned


Similar problems happen with pcb-rnd-doc and pcb-rnd-import-net.

Please add
  Breaks: pcb-rnd (<< 2.2.0-2)
to all three packages to prevent such partial upgrades.


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcb-rnd=2.1.1-1_pcb-rnd-core=2.2.0-3.log.gz
Type: application/gzip
Size: 18663 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-electronics-devel/attachments/20200513/58225457/attachment-0001.gz>


More information about the Pkg-electronics-devel mailing list