[From nobody Fri Jul  3 22:51:10 2026
Received: (at submit) by bugs.debian.org; 3 Jul 2026 07:27:29 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-21.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,NO_RELAYS,XMAILER_REPORTBUG,
 X_DEBBUGS_CC autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 13; hammy, 150; neutral, 84; spammy,
 0. spammytokens: hammytokens:0.000-+--trixie, 0.000-+--H*Ad:N*Bug,
 0.000-+--H*Ad:N*Tracking, 0.000-+--HTo:N*Debian, 0.000-+--sk:taint_o
Return-path: &lt;hector.cao@canonical.com&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;hector.cao@canonical.com&gt;) id 1wfYJ7-00HL4o-1t
 for submit@bugs.debian.org; Fri, 03 Jul 2026 07:27:29 +0000
Content-Type: multipart/mixed; boundary=&quot;===============0092741017643324104==&quot;
MIME-Version: 1.0
From: Hector Cao &lt;hector.cao@canonical.com&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: clamav: set cmake build profile to RelWithDebInfo for better build
 optimization
Message-ID: &lt;178306364195.82987.10927708467234561902.reportbug@hector-pc&gt;
X-Mailer: reportbug 13.0.1+ubuntu1
Date: Fri, 03 Jul 2026 09:27:21 +0200
X-Debbugs-Cc: hector.cao@canonical.com
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============0092741017643324104==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: clamav
Version: 1.4.4+dfsg-2
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
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 &quot;None&quot; 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

--===============0092741017643324104==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;clamav_1.4.4+dfsg-2ubuntu1.debdiff&quot;

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

--===============0092741017643324104==--
]