Bug#979817: lld: missing Breaks+Replaces: llvm (= 1:11.0-51+nmu1)

Andreas Beckmann anbe at debian.org
Mon Jan 11 13:52:22 GMT 2021


Package: lld
Version: 1:11.0-51+nmu2
Severity: serious
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'testing'.
It installed fine in 'testing', then the upgrade to 'sid' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.

See policy 7.6 at
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-and-replacing-packages-replaces

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

  Preparing to unpack .../lld_1%3a11.0-51+nmu2_amd64.deb ...
  Unpacking lld (1:11.0-51+nmu2) ...
  dpkg: error processing archive /var/cache/apt/archives/lld_1%3a11.0-51+nmu2_amd64.deb (--unpack):
   trying to overwrite '/usr/bin/wasm-ld', which is also in package llvm 1:11.0-51+nmu1
  Errors were encountered while processing:
   /var/cache/apt/archives/lld_1%3a11.0-51+nmu2_amd64.deb

The existing

  Replaces: llvm (= 0.51+nmu1)
  Breaks: llvm (= 0.51+nmu1)

are versioned after the source version, not the binary version of the llvm binary package.


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm=1:11.0-51+nmu1_lld=1:11.0-51+nmu2.log.gz
Type: application/gzip
Size: 12718 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20210111/2aceb3fc/attachment.gz>


More information about the Pkg-llvm-team mailing list