[Pkg-clamav-devel] Bug#789283: Depends on SystemD component while SystemD is supposed to be optional

Simon Hobson linux at thehobsons.co.uk
Fri Jun 19 13:41:45 UTC 2015


Package: clamav-daemon
Version: 0.98.7+dfsg-0+deb8u1

It would appear that ClamD should function on a system without SystemD.
http://lists.clamav.net/pipermail/clamav-users/2015-June/001590.html
http://lists.clamav.net/pipermail/clamav-users/2015-June/001592.html

However, the package depends on SystemD libraries, and the daemon won't start without the library being present.
# /etc/init.d/clamav-daemon start
[....] Starting ClamAV daemon: clamd /usr/sbin/clamd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory


Suggested fix :
Remove the dependency - if package systemd is installed (ie SystemD is the init system) then the library will be present, if the library isn't present then the init system is not SystemD and there should be no need to call any of it's libraries.
Test for the presence of the library before attempting to use it.



More information about the Pkg-clamav-devel mailing list