Package: release.debian.org
Control: affects -1 + src:e2guardian
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.

Sebastian
diff -Nru e2guardian-5.3.5/debian/changelog e2guardian-5.3.5/debian/changelog
--- e2guardian-5.3.5/debian/changelog   2022-10-22 22:05:11.000000000 +0200
+++ e2guardian-5.3.5/debian/changelog   2026-01-05 19:58:49.000000000 +0100
@@ -1,3 +1,10 @@
+e2guardian (5.3.5-4+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 
19:58:49 +0100
+
 e2guardian (5.3.5-4) unstable; urgency=medium
 
   * debian/watch:
diff -Nru e2guardian-5.3.5/debian/control e2guardian-5.3.5/debian/control
--- e2guardian-5.3.5/debian/control     2022-10-22 22:04:40.000000000 +0200
+++ e2guardian-5.3.5/debian/control     2026-01-05 19:57:45.000000000 +0100
@@ -23,7 +23,7 @@
 Architecture: any
 Pre-Depends: ${misc:Pre-Depends},
 Depends: adduser,
-         clamav-daemon,
+         clamav-daemon [!armel !mips !mips64el],
          perl, ${misc:Depends},
          ${shlibs:Depends},
 Suggests: squid,
diff -Nru e2guardian-5.3.5/debian/rules e2guardian-5.3.5/debian/rules
--- e2guardian-5.3.5/debian/rules       2020-02-15 10:53:35.000000000 +0100
+++ e2guardian-5.3.5/debian/rules       2026-01-05 19:58:45.000000000 +0100
@@ -5,15 +5,22 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/architecture.mk
 
 %:
        dh $@  --with-systemd --without autoreconf $(DHFLAGS)
 
+ifneq ($(filter armel mipsel mips64el,$(DEB_HOST_ARCH)),)
+  CLAMAV_OPTS := --enable-clamd=no
+else
+  CLAMAV_OPTS := --enable-clamd=yes
+endif
+
 override_dh_auto_configure:
        NOCONFIGURE=1 ./autogen.sh
        dh_auto_configure $(DHFLAGS) -- \
            --prefix=/usr \
-           --enable-clamd=yes \
+           $(CLAMAV_OPTS) \
            --with-proxyuser=e2guardian \
            --with-proxygroup=e2guardian \
            --sysconfdir=/etc \

Reply via email to