[Pkg-clamav-devel] Bug#992776: clamav: FTBFS on kfreebsd

Laurent Bigonville bigon at debian.org
Mon Aug 23 10:54:53 BST 2021


Source: clamav
Version: 0.103.3+dfsg-1
Severity: important
Tags: patch ftbfs
Justification: fails to build from source (but built successfully in the past)

Hello,

clamav currently FTBFS on kfreebsd

The attached patch fixes this.

The patch also includes a change to ship clamonacc manpage

Can you please merge this change?

Kind regards,
Laurent Bigonville


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8), LANGUAGE=fr_BE:fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: SELinux: enabled - Mode: Permissive - Policy name: refpolicy
-------------- next part --------------
diff -Nru clamav-0.103.3+dfsg/debian/clamav-daemon.manpages clamav-0.103.3+dfsg/debian/clamav-daemon.manpages
--- clamav-0.103.3+dfsg/debian/clamav-daemon.manpages	2021-06-27 23:34:02.000000000 +0200
+++ clamav-0.103.3+dfsg/debian/clamav-daemon.manpages	2021-08-23 11:23:18.000000000 +0200
@@ -2,3 +2,4 @@
 debian/tmp/usr/share/man/man1/clamdtop.1
 debian/tmp/usr/share/man/man5/clamd.conf.5
 debian/tmp/usr/share/man/man8/clamd.8
+debian/tmp/usr/share/man/man8/clamonacc.8
diff -Nru clamav-0.103.3+dfsg/debian/rules clamav-0.103.3+dfsg/debian/rules
--- clamav-0.103.3+dfsg/debian/rules	2021-06-30 21:48:08.000000000 +0200
+++ clamav-0.103.3+dfsg/debian/rules	2021-08-23 11:23:18.000000000 +0200
@@ -145,6 +145,11 @@
 endif
 
 override_dh_install:
+# clamonacc is only built on linux architectures
+ifneq (linux, $(DEB_HOST_ARCH_OS))
+	grep -v 'clamonacc' debian/clamav-daemon.install > debian/clamav-daemon.install.$(DEB_HOST_ARCH_OS)
+	grep -v 'clamonacc' debian/clamav-daemon.manpages > debian/clamav-daemon.manpages.$(DEB_HOST_ARCH_OS)
+endif
 	dh_install
 	dh_apparmor -pclamav-freshclam --profile-name=usr.bin.freshclam
 	dh_apparmor -pclamav-daemon --profile-name=usr.sbin.clamd
@@ -168,3 +173,7 @@
 # Don't compress the example configuration files and the documentation PDFs.
 override_dh_compress:
 	dh_compress -Xexamples
+
+override_dh_clean:
+	rm -f debian/clamav-daemon.install.$(DEB_HOST_ARCH_OS) debian/clamav-daemon.manpages.$(DEB_HOST_ARCH_OS)
+	dh_clean


More information about the Pkg-clamav-devel mailing list