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

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Fri Jun 19 19:36:26 UTC 2015


On Fri, Jun 19, 2015 at 02:41:45PM +0100, Simon Hobson wrote:

> 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

Who says it does not?

> 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

Interresting. Really. How did you managed install clamav-daemon without
libsystemd0?

The official way of running a system post wheezy without systemd is to install
sysvinit-core. You can remove some of the systemd packages then. libsystemd0
is one of the packages that can be pulled in by others but do no harm. It has
to stay.

> 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.

I just booted my jessie-amd64 kvm, installed sysvinit-core and clamav-daemon
and removed the systemd package. From my quick test everything works as
expected.

If you remove libsystemd0 apt wants to remove bsdutils as well. How did you
workaround this? From here it looks like you run a broken setup.

If you come up with something that is broken in the official setup (that is as
describned +sysvinit-core -systemd) then we will look into this. If this
remains about "I don't want anything on my system that contains a systemd
string" then I *will* close this bug and you can complain about this one level
higher.

Sebastian



More information about the Pkg-clamav-devel mailing list