Le 06/11/2018 à 14:34, Andreas Beckmann a écrit :
Package: libc++1-7,libc++1-8
Severity: serious
User: [email protected]
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install
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...):

   Selecting previously unselected package libc++abi1-8:amd64.
   Preparing to unpack .../libc++abi1-8_1%3a8~svn343154-1_amd64.deb ...
   Unpacking libc++abi1-8:amd64 (1:8~svn343154-1) ...
   dpkg: error processing archive 
/var/cache/apt/archives/libc++abi1-8_1%3a8~svn343154-1_amd64.deb (--unpack):
    trying to overwrite '/usr/lib/x86_64-linux-gnu/libc++abi.so.1', which is 
also in package libc++abi1-7:amd64 1:7-8
   Selecting previously unselected package libc++1-8:amd64.
   Preparing to unpack .../libc++1-8_1%3a8~svn343154-1_amd64.deb ...
   Unpacking libc++1-8:amd64 (1:8~svn343154-1) ...
   dpkg: error processing archive 
/var/cache/apt/archives/libc++1-8_1%3a8~svn343154-1_amd64.deb (--unpack):
    trying to overwrite '/usr/lib/x86_64-linux-gnu/libc++.so.1', which is also 
in package libc++1-7:amd64 1:7-8
   Errors were encountered while processing:
    /var/cache/apt/archives/libc++abi1-8_1%3a8~svn343154-1_amd64.deb
    /var/cache/apt/archives/libc++1-8_1%3a8~svn343154-1_amd64.deb


You probably want to use C/R/B on a virtual package similar to what is
done in python-clang-7:

   Conflicts+Replaces+Provides: libc++1-x.y


yeah, this is fixed in 7. I need to upload -8 to fix that.
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/blob/7/debian/control#L488

S

Reply via email to