Package: libnotcurses2,libnotcurses++2
Version: 2.0.4+dfsg.1-2
Severity: serious
User: debian...@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.

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 .../libnotcurses2_2.0.4+dfsg.1-2_amd64.deb ...
  Unpacking libnotcurses2:amd64 (2.0.4+dfsg.1-2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/libnotcurses2_2.0.4+dfsg.1-2_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libnotcurses.so.2.0.4', which 
is also in package libnotcurses1:amd64 2.0.4+dfsg.1-1
  dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
  Preparing to unpack .../libnotcurses++2_2.0.4+dfsg.1-2_amd64.deb ...
  Unpacking libnotcurses++2:amd64 (2.0.4+dfsg.1-2) ...
  dpkg: error processing archive 
/var/cache/apt/archives/libnotcurses++2_2.0.4+dfsg.1-2_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libnotcurses++.so.2.0.4', 
which is also in package libnotcurses++1:amd64 2.0.4+dfsg.1-1
  Errors were encountered while processing:
   /var/cache/apt/archives/libnotcurses2_2.0.4+dfsg.1-2_amd64.deb
   /var/cache/apt/archives/libnotcurses++2_2.0.4+dfsg.1-2_amd64.deb


The versioned constraint (>= 2) may look curious, but is the correct
solution for this case where a SONAME change was not (immediately)
followed by a package rename. The libnotcurses[++]1 packages built
from versions 1.x.y should be co-installable with libnotcurses[++]2.


cheers,

Andreas

Attachment: libnotcurses++1=2.0.4+dfsg.1-1_libnotcurses++2=2.0.4+dfsg.1-2.log.gz
Description: application/gzip

Reply via email to