tags 1132300 + patch
thanks

Hello,

after some investigation I found that the commit from 2022 does introduce the 
switch from release to debug here:
https://salsa.debian.org/science-team/benchmark/-/commit/f80dc6ea135428b97df2c271ec2815a729e5ff78

This is because google benchmark defaults to debug and the commit removed the 
explicit `-DCMAKE_BUILD_TYPE=Release`.

The attached patch should fix the problem though I cannot completely test it 
because I have no means to trigger the
debian CI to run a test pipeline.
Please note that everything since 1.7.0 was affected, so everything since (and 
including) bookworm.

Best regards,
Georg
diff --git a/debian/rules b/debian/rules
index d82a7b2..86281e0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
 
 override_dh_auto_configure:
 	dh_auto_configure -- -DGIT_VERSION="$(DEB_VERSION_UPSTREAM)" \
+		-DCMAKE_BUILD_TYPE=Release \
 		-DBUILD_SHARED_LIBS=ON \
 		-DBENCHMARK_ENABLE_LTO=ON \
 		-DBENCHMARK_USE_BUNDLED_GTEST=OFF \

Reply via email to