Package: python-clang-4.0,python-lldb-4.0
Version: 1:4.0.1-10~deb9u2
Severity: serious
Tags: stretch
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to upgrade from
'jessie'.
It installed fine in 'jessie', then the upgrade to 'stretch' 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/#overwriting-files-and-replacing-packages-replaces

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

  Preparing to unpack .../python-clang-4.0_1%3a4.0.1-10~deb9u2_amd64.deb ...
  Unpacking python-clang-4.0 (1:4.0.1-10~deb9u2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/python-clang-4.0_1%3a4.0.1-10~deb9u2_amd64.deb 
(--unpack):
   trying to overwrite '/usr/lib/python2.7/dist-packages/clang/__init__.py', 
which is also in package python-clang-3.4 1:3.4.2-13
  Errors were encountered while processing:
   /var/cache/apt/archives/python-clang-4.0_1%3a4.0.1-10~deb9u2_amd64.deb

  Preparing to unpack .../python-clang-4.0_1%3a4.0.1-10~deb9u2_amd64.deb ...
  Unpacking python-clang-4.0 (1:4.0.1-10~deb9u2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/python-clang-4.0_1%3a4.0.1-10~deb9u2_amd64.deb 
(--unpack):
   trying to overwrite '/usr/lib/python2.7/dist-packages/clang/__init__.py', 
which is also in package python-clang-3.5 1:3.5-10
  Errors were encountered while processing:
   /var/cache/apt/archives/python-clang-4.0_1%3a4.0.1-10~deb9u2_amd64.deb

  Selecting previously unselected package python-lldb-4.0.
  Preparing to unpack .../python-lldb-4.0_1%3a4.0.1-10~deb9u2_amd64.deb ...
  Unpacking python-lldb-4.0 (1:4.0.1-10~deb9u2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/python-lldb-4.0_1%3a4.0.1-10~deb9u2_amd64.deb 
(--unpack):
   trying to overwrite '/usr/lib/python2.7/dist-packages/lldb', which is also 
in package python-lldb-3.5 1:3.5-10

The inclusion of llvm-4.0 in stretch brought it into proximity of the
old packages from jessie (that predate the virtual python-{clang,lldb}-x.y
packages), which might remain after an upgrade from jessie to stretch.



cheers,

Andreas

Attachment: python-clang-3.4=1%3.4.2-13_python-clang-4.0=1%4.0.1-10~deb9u2.log.gz
Description: application/gzip

Reply via email to