Package: libclamav11
Version: 1.0.0+dfsg-1
Severity: serious
User: [email protected]
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 .../libclamav11_1.0.0+dfsg-1_amd64.deb ...
  Unpacking libclamav11:amd64 (1.0.0+dfsg-1) ...
  dpkg: error processing archive 
/var/cache/apt/archives/libclamav11_1.0.0+dfsg-1_amd64.deb (--unpack):
   trying to overwrite '/usr/lib/x86_64-linux-gnu/libfreshclam.so.2', which is 
also in package libclamav9:amd64 0.103.7+dfsg-1+b2
  Errors were encountered while processing:
   /var/cache/apt/archives/libclamav11_1.0.0+dfsg-1_amd64.deb

Mixing libraries with different soversions in a single package is
not a good idea as can be seen here. Having to add Breaks+Replaces
between shared library packages also makes (future) transitions
more difficult.
Please move libfreshclam.so.2 to a new libfreshclam2 package and add
  Breaks+Replaces: libclamav9 (<< 1), libclamav11 (<< 1.0.0+dfsg-2)
there. (The transition to libclamav11 will be not smooth, but future
transitions will be.)


cheers,

Andreas

Attachment: libclamav9=0.103.7+dfsg-1+b2_libclamav11=1.0.0+dfsg-1.log.gz
Description: application/gzip

_______________________________________________
Pkg-clamav-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-clamav-devel

Reply via email to