Bug#913058: libc++1-7,libc++1-8: both ship libc++.so.1{,.0}

Andreas Beckmann anbe at debian.org
Tue Nov 6 13:34:17 GMT 2018


Package: libc++1-7,libc++1-8
Severity: serious
User: debian-qa at lists.debian.org
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


The following files are shipped by both packages:

  usr/lib/x86_64-linux-gnu/libc++.so.1
  usr/lib/x86_64-linux-gnu/libc++.so.1.0


Similar problems exist between these package pairs:

  libc++abi1-7/libc++abi1-8
  libomp5-7/libomp5-8

The corresponding clashes in the -dev packages should automatically
be solved once the library packages are no longer co-installable.


cheers,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc++1-7=1%7-8_libc++1-8=1%8~svn343154-1.log.gz
Type: application/gzip
Size: 6581 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20181106/00176e5d/attachment.gz>


More information about the Pkg-llvm-team mailing list