[Pkg-clamav-devel] Bug#1027698: libclamav11: please move libfreshclam.so.2 to a separate package

Andreas Beckmann anbe at debian.org
Mon Jan 2 08:41:07 GMT 2023


Package: libclamav11
Version: 1.0.0+dfsg-1
Severity: serious
User: debian-qa at 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.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libclamav9=0.103.7+dfsg-1+b2_libclamav11=1.0.0+dfsg-1.log.gz
Type: application/gzip
Size: 10078 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-clamav-devel/attachments/20230102/1e1d7e0e/attachment.gz>


More information about the Pkg-clamav-devel mailing list