Package: blist
Version: 1.3.6-7
Followup-For: Bug #983996
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch
Control: tags -1 patch

Hello,

I've been able to get blist to build with gcc-11 in Ubuntu by reducing the
optimization level from -O2 (default) to -O1.  Please see the attached patch.

Trying to debug the binary built with -O2 under gdb, I find that all the
variables are optimized out, making it difficult to figure out what's
actually happening.  So at least for now, reducing the optimization seems a
reasonable workaround IMHO.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru blist-1.3.6/debian/rules blist-1.3.6/debian/rules
--- blist-1.3.6/debian/rules    2020-10-15 10:05:56.000000000 -0700
+++ blist-1.3.6/debian/rules    2021-11-17 15:45:43.000000000 -0800
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export DEB_CFLAGS_MAINT_APPEND=-O1
+
 export DH_VERBOSE=1
 export PYBUILD_NAME=blist
 

Reply via email to