Source: pv
Version: 1.10.1-1
Severity: minor

Dear maintainer,

The pv package fails to build when using LTO 
(https://wiki.debian.org/ToolChain/LTO).

Build log from Ubuntu:
https://launchpadlibrarian.net/768023003/buildlog_ubuntu-plucky-amd64.pv_1.9.7-1ubuntu1_BUILDING.txt.gz

The issue is that the Memory Safety tests are failing, Michael Hudson-Doyle 
workaround the issue by disabling LTO with that comment
"  * Disable LTO as it causes failures in the tests using valgrind (because
    more functions get inlined and the suppressions stop working)."

Currently Debian isn't building with LTO and doesn't need the change but it 
should make no difference by default and could be of use in case someone tries 
to build the package with LTO enabled
(or if some day the default changes in Debian). It would also allows Ubuntu to 
drop its current Delta and to let the package be in sync between distribution.

I'm attaching a debdiff that does that, thanks for considering it.

Cheers,
Sébastien Bacher
diff -Nru pv-1.10.1/debian/changelog pv-1.10.1/debian/changelog
--- pv-1.10.1/debian/changelog  2025-11-17 17:44:35.000000000 +0100
+++ pv-1.10.1/debian/changelog  2025-11-21 22:38:56.000000000 +0100
@@ -1,3 +1,11 @@
+pv (1.10.1-2) UNRELEASED; urgency=medium
+
+  * debian/rules: 
+    - Disable LTO as it causes failures in the tests using valgrind (because
+      more functions get inlined and the suppressions stop working).
+
+ -- Sebastien Bacher <[email protected]>  Fri, 21 Nov 2025 22:38:56 +0100
+
 pv (1.10.1-1) unstable; urgency=medium
 
   * new upstream release
diff -Nru pv-1.10.1/debian/rules pv-1.10.1/debian/rules
--- pv-1.10.1/debian/rules      2025-11-17 17:44:35.000000000 +0100
+++ pv-1.10.1/debian/rules      2025-11-21 22:38:56.000000000 +0100
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
+
 %:
        dh $@
 

Reply via email to