Hi,
the trivial patch to debian/rules solves the issue quite good:
diff -u suitesparse-3.4.0/debian/rules suitesparse-3.4.0/debian/rules
--- suitesparse-3.4.0/debian/rules
+++ suitesparse-3.4.0/debian/rules
@@ -12,7 +12,7 @@
DEB_MAKE_BUILD_TARGET := default
DEB_COMPRESS_EXCLUDE := .pdf
-CFLAGS=-fexceptions -Wall -O3
+CFLAGS=-fexceptions -Wall -O3 -g
ifeq ($(DEB_HOST_ARCH_CPU),amd64)
CFLAGS+=-m64
endif
My trivial test then yields:
% for f in {non-,}dbg/usr/lib/debug/usr/lib/lib*; do
echo -n "$f " && readelf --debug-dump $f |grep -q . && echo ok || echo fail;
done
non-dbg/usr/lib/debug/usr/lib/libamd.so.2.2.0 fail
non-dbg/usr/lib/debug/usr/lib/libbtf.so.1.1.0 fail
non-dbg/usr/lib/debug/usr/lib/libcamd.so.2.2.0 fail
non-dbg/usr/lib/debug/usr/lib/libccolamd.so.2.7.1 fail
non-dbg/usr/lib/debug/usr/lib/libcholmod.so.1.7.1 fail
non-dbg/usr/lib/debug/usr/lib/libcolamd.so.2.7.1 fail
non-dbg/usr/lib/debug/usr/lib/libcsparse.so.2.2.3 fail
non-dbg/usr/lib/debug/usr/lib/libcxsparse.so.2.2.3 fail
non-dbg/usr/lib/debug/usr/lib/libklu.so.1.1.0 fail
non-dbg/usr/lib/debug/usr/lib/libldl.so.2.0.1 fail
non-dbg/usr/lib/debug/usr/lib/libumfpack.so.5.4.0 fail
dbg/usr/lib/debug/usr/lib/libamd.so.2.2.0 ok
dbg/usr/lib/debug/usr/lib/libbtf.so.1.1.0 ok
dbg/usr/lib/debug/usr/lib/libcamd.so.2.2.0 ok
dbg/usr/lib/debug/usr/lib/libccolamd.so.2.7.1 ok
dbg/usr/lib/debug/usr/lib/libcholmod.so.1.7.1 ok
dbg/usr/lib/debug/usr/lib/libcolamd.so.2.7.1 ok
dbg/usr/lib/debug/usr/lib/libcsparse.so.2.2.3 fail
dbg/usr/lib/debug/usr/lib/libcxsparse.so.2.2.3 ok
dbg/usr/lib/debug/usr/lib/libklu.so.1.1.0 ok
dbg/usr/lib/debug/usr/lib/libldl.so.2.0.1 ok
dbg/usr/lib/debug/usr/lib/libumfpack.so.5.4.0 ok
So the only library without dbg symbols is libcsparse.so now.
(non-dbg is the -dbg package from the archive, dbg is my patched
rebuild).
Looking at the build-logs [1], it seems CFLAGS is just not passed into
CSparse/Lib.
This is because CSparse/Lib/Makefile sets CFLAGS itself and ignores what
was set previously. This will have to be patched too. I'd say it should
be something like
-CFLAGS = -O -I../Include
+CFLAGS += -I../Include
(as -O was already set in d/rules)
Regards
Evgeni
[1]
https://buildd.debian.org/status/fetch.php?pkg=suitesparse&arch=amd64&ver=1%3A3.4.0-2&stamp=1271327514
--
Bruce Schneier can read and understand Perl programs.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]