:: Re: [DNG] Systemd Shims
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Rainer Weikusat
Fecha:  
A: dng
Asunto: Re: [DNG] Systemd Shims
Simon Hobson <linux@???> writes:
> Rainer Weikusat <rainerweikusat@???> wrote:
>
>> ClamAV claims to support FreeBSD, OpenBSD, NetBSD, Solaris, OpenVMS,
>> Slackware and Windows, all of which certainly don't have systemd. I've
>> just cloned the current development repository and build it on Wheezy
>> using a plain
>>
>> ./configure
>> make
>>
>> which worked without issues and this system is certainly systemd-free,
>> too.
>
> Which makes it even more non-sensical to make it have systemd dependencies.
>
>> Could perhaps provide some kind of link illustrating what you were
>> referring to?
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789283
>
> And from http://lists.clamav.net/pipermail/clamav-users/2015-June/001604.html
>> BTW, since I'm the primary clamav maintainer in Debian, guess how
> >much action your report is going to get.


> As you've pointed out, this is a package widely used across various
> OSs, and is still officially supported in Wheezy through security
> updates. But the Debian Jessie package hard depends on libsystemd0.


Since that's basically a requirement one of Debian guys gratuitiously
added and the package actually supports building without systemd, just
not for Debian 8 onwards, it's easy to get rid of it:

-----------------
diff -rNu clamav-0.98.7+dfsg/debian/clamav-daemon.install clamp/debian/clamav-daemon.install
--- clamav-0.98.7+dfsg/debian/clamav-daemon.install    2015-05-02 03:48:31.000000000 +0100
+++ clamp/debian/clamav-daemon.install    2015-08-15 16:53:27.732670081 +0100
@@ -1,6 +1,4 @@
 debian/script usr/share/bug/clamav-daemon/
-debian/tmp/lib/systemd/system/clamav-daemon.service
-debian/tmp/lib/systemd/system/clamav-daemon.socket
 debian/tmp/usr/bin/clamconf
 debian/tmp/usr/bin/clamdtop
 debian/tmp/usr/sbin/clamd
diff -rNu clamav-0.98.7+dfsg/debian/clamav-freshclam.install clamp/debian/clamav-freshclam.install
--- clamav-0.98.7+dfsg/debian/clamav-freshclam.install    2015-05-02 03:48:31.000000000 +0100
+++ clamp/debian/clamav-freshclam.install    2015-08-15 16:53:11.237179310 +0100
@@ -3,6 +3,5 @@
 debian/clamav-freshclam-ifupdown etc/ppp/ip-down.d/
 debian/clamav-freshclam-ifupdown etc/ppp/ip-up.d/
 debian/script usr/share/bug/clamav-freshclam/
-debian/tmp/lib/systemd/system/clamav-freshclam.service
 debian/tmp/usr/bin/freshclam
 debian/usr.bin.freshclam etc/apparmor.d/
diff -rNu clamav-0.98.7+dfsg/debian/rules clamp/debian/rules
--- clamav-0.98.7+dfsg/debian/rules    2015-05-03 02:57:42.000000000 +0100
+++ clamp/debian/rules    2015-08-15 16:54:28.970779493 +0100
@@ -48,7 +48,6 @@
     --disable-clamav --disable-unrar --enable-milter --enable-dns-fix \
     --with-libjson \
     --with-gnu-ld $(SYSTEM_LLVM) \
-    --with-systemdsystemunitdir=/lib/systemd/system


DEBUG_OPTS=

@@ -60,20 +59,19 @@
endif

# The autotools in squeeze (Debian 6) are too old, so don't use autoreconf.
-# And don't use systemd.
ifeq ($(shell cut -c1 /etc/debian_version),6)
AUTORECONF =
- SYSTEMD =
else
ifeq ($(shell cut -c1 /etc/debian_version),7)
AUTORECONF = --with autoreconf
- SYSTEMD =
else
AUTORECONF = --with autoreconf
- SYSTEMD = --with systemd
endif
endif

+# don't use systemd
+SYSTEMD =
+
# Use the default debhelper scripts, where possible.
# Enable parallel building and conditionally autoreconf and systemd.
%:

-----------------

The patch is supposed to be applied to the unpacked Debian source
package. Without the changes to the install files, the package
apparently can't be build on wheezy at all, at least, it failed for me.
I've tested that it builds on wheezy with these changes.

BTW, one of the reasons why I'll try to stay clear of systemd is because
I won't ever voluntarily trust people who employ this "aggressive jerk
in a position of power" communication style in order to (man-)'handle'
individuals with dissenting opinions: This is not only unpleasant but
also deeply irrational.