Bug#1027699: llvm-toolchain-14: epoch missing in B-R for split -dev packages

Andreas Beckmann anbe at debian.org
Mon Jan 2 08:54:34 GMT 2023


Source: llvm-toolchain-14
Version: 1:14.0.6-10~exp5
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
'sid' to 'experimental'.
It installed fine in 'sid', then the upgrade to 'experimental' fails
because it tries to overwrite other packages files without declaring a
Breaks+Replaces relation.
This error may also be triggered by having a predecessor package from
'sid' installed while installing the package from 'experimental'.

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 .../libclang-rt-14-dev_1%3a14.0.6-10~exp5_amd64.deb ...
  Unpacking libclang-rt-14-dev:amd64 (1:14.0.6-10~exp5) ...
  dpkg: error processing archive /var/cache/apt/archives/libclang-rt-14-dev_1%3a14.0.6-10~exp5_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/llvm-14/lib/clang/14.0.6/README.txt', which is also in package libclang-common-14-dev 1:14.0.6-9


Package: libclang-rt-14-dev
Source: llvm-toolchain-14
Version: 1:14.0.6-10~exp6
Replaces: libclang-common-14-dev (<< 14.0.6-10~exp4)
Breaks: libclang-common-14-dev (<< 14.0.6-10~exp4)
...

The Breaks+Replaces are there, but missing the epoch.

This bug seems to affect the following packages:
  libclang-rt-14-dev-wasm32
  libclang-rt-14-dev-wasm64
  libclang-rt-14-dev
  libpolly-14-dev

cheers,

Andreas

PS: If you want to get rid of the epoch in the llvm-toolchain-XX packages,
talk to me before packaging a snapshot of version 17, I have some ideas how
to achieve that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libclang-common-14-dev=1:14.0.6-9_libclang-rt-14-dev=1:14.0.6-10~exp5.log.gz
Type: application/gzip
Size: 8393 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20230102/535aa049/attachment-0001.gz>


More information about the Pkg-llvm-team mailing list