Package: clamav
Version: 1.4.4+dfsg-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu stonking ubuntu-patch
Dear Maintainer,
d/rules does not set the DEBUG_OPTS leading to cmake build profie Debug
to be used for clamav build.
This leads to unoptimized build, I would like to propose to explicitly
set the build profile to RelWithDebInfo.
* d/rules: use RelWithDebInfo profile as the Rust CMake scripts can not
recognize the "None" type specified by dh-cmake leading to unoptimized
build (LP 2071663).
Thanks for considering the patch.
-- System Information:
Debian Release: trixie/sid
APT prefers noble-updates
APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'),
(100, 'noble-backports')
Architecture: amd64 (x86_64)
Kernel: Linux 6.17.0-35-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru clamav-1.4.4+dfsg/debian/rules clamav-1.4.4+dfsg/debian/rules
--- clamav-1.4.4+dfsg/debian/rules 2026-06-28 16:09:10.000000000 +0200
+++ clamav-1.4.4+dfsg/debian/rules 2026-07-03 09:10:23.000000000 +0200
@@ -55,7 +55,7 @@
# Enable debug code, if nostrip was given.
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
- DEBUG_OPTS =
+ DEBUG_OPTS = -DCMAKE_BUILD_TYPE=RelWithDebInfo
else
DEBUG_OPTS = -DCMAKE_BUILD_TYPE=Debug
endif