Package: release.debian.org Control: affects -1 + src:c-icap-modules X-Debbugs-Cc: [email protected] User: [email protected] Usertags: pu Tags: bookworm X-Debbugs-Cc: [email protected] Severity: normal
I prepared an update to build the package without clamav support on armel, mipsel and mips64el. The details why this is needed are covered in #1123789. The package has been build tested on mips64el and amd64. The resulting package on amd64 has still clamav dependencies while mips64el does not. I haven't noticed any other (relevant) differences. The libssl-dev package is required to build and was pulled in via libclamav-dev. Leaving it out resulted in FTBFS. I avoid creating libc-icap-mod-virus-scan instead of shipping an empty package. Sebastian
diff -Nru c-icap-modules-0.5.5/debian/changelog c-icap-modules-0.5.5/debian/changelog --- c-icap-modules-0.5.5/debian/changelog 2022-03-27 16:39:45.000000000 +0200 +++ c-icap-modules-0.5.5/debian/changelog 2026-01-05 12:53:25.000000000 +0100 @@ -1,3 +1,10 @@ +c-icap-modules (1:0.5.5-2+deb12u1) bookworm; urgency=medium + + * Disable clamav support on armel, mipsel and mips64el. See #1123789 for + details. + + -- Sebastian Andrzej Siewior <[email protected]> Mon, 05 Jan 2026 12:53:25 +0100 + c-icap-modules (1:0.5.5-2) unstable; urgency=medium * QA upload. diff -Nru c-icap-modules-0.5.5/debian/control c-icap-modules-0.5.5/debian/control --- c-icap-modules-0.5.5/debian/control 2022-03-27 16:31:14.000000000 +0200 +++ c-icap-modules-0.5.5/debian/control 2026-01-05 12:52:33.000000000 +0100 @@ -3,8 +3,9 @@ Priority: optional Maintainer: Debian QA Group <[email protected]> Build-Depends: debhelper-compat (= 13), - libclamav-dev, + libclamav-dev [!armel !mips !mips64el], libdb-dev, + libssl-dev, libicapapi-dev, libltdl-dev, Standards-Version: 4.6.0 @@ -13,7 +14,7 @@ Vcs-Git: https://salsa.debian.org/debian/c-icap-modules.git Package: libc-icap-mod-virus-scan -Architecture: any +Architecture: amd64 arm64 armhf i386 ppc64el s390x Pre-Depends: ${misc:Pre-Depends} Depends: c-icap, clamav, ${misc:Depends}, ${shlibs:Depends} Replaces: c-icap diff -Nru c-icap-modules-0.5.5/debian/rules c-icap-modules-0.5.5/debian/rules --- c-icap-modules-0.5.5/debian/rules 2022-03-27 16:31:14.000000000 +0200 +++ c-icap-modules-0.5.5/debian/rules 2026-01-05 12:52:14.000000000 +0100 @@ -2,6 +2,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpkg/architecture.mk # More hardening export DEB_BUILD_MAINT_OPTIONS := hardening=+all @@ -9,6 +10,12 @@ %: dh $@ +ifneq ($(filter armel mipsel mips64el,$(DEB_HOST_ARCH)),) + CLAMAV_OPTS := --with-clamav=no +else + CLAMAV_OPTS := --with-clamav=yes +endif + override_dh_auto_configure: dh_auto_configure -- \ --prefix=/usr \ @@ -18,7 +25,7 @@ --libexecdir=/usr/lib/c_icap \ --with-zlib=yes \ --with-bzlib=yes \ - --with-clamav=yes \ + $(CLAMAV_OPTS) \ --with-bdb=yes override_dh_auto_install: @@ -39,8 +46,12 @@ override_dh_fixperms-arch: dh_fixperms # config permissions +ifeq ($(filter armel mipsel mips64el,$(DEB_HOST_ARCH)),) chmod 0644 debian/libc-icap-mod-virus-scan/etc/c-icap/* +endif chmod 0644 debian/libc-icap-mod-urlcheck/etc/c-icap/* # template permissions chmod 0644 debian/libc-icap-mod-urlcheck/usr/share/c_icap/templates/srv_url_check/*/* +ifeq ($(filter armel mipsel mips64el,$(DEB_HOST_ARCH)),) chmod 0644 debian/libc-icap-mod-virus-scan/usr/share/c_icap/templates/virus_scan/*/* +endif

