Package: libboost-dbg
Version: 1.34.1-11
Severity: important

Hey Debian Boost Team,

The libboost-dbg package doesn't have any debug symbols for most of the
libraries that are shipping with libboost-*. It does have the "debug
versions" which are quite different to symbols (they include extra
asserts and such).

This makes it very hard to debug boost programs. I've included a patch
which enabled debug-symbols and then strips them into the libboost-dbg
package.

The same procedure will probably work for boost 1.35 and 1.36.

Hope this helps,

Tim 'Mithro' Ansell
--- rules.orig	2008-08-21 01:32:56.000000000 +1000
+++ rules	2008-08-21 01:35:48.285275000 +1000
@@ -3,6 +3,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export DH_COMPAT=5
 export DH_OPTIONS
 export CC
 
@@ -84,7 +85,7 @@
 pyste_prefix = $(PWD)/debian/pyste/usr
 bjam = $(shell pwd)/tools/jam/src/bjam
 
-JAM = $(bjam) $(JOBS) -d2 --user-config=$(shell pwd)/user-config.jam -sHAVE_ICU=1
+JAM = $(bjam) $(JOBS) -d2 --user-config=$(shell pwd)/user-config.jam -sHAVE_ICU=1 debug-symbols=on
 
 $(bjam):
 	cd tools/jam/src && sh build.sh gcc && mv bin.*/bjam .
@@ -93,6 +94,7 @@
 build-stamp: $(bjam)
 	dh_testdir
 
+	rm user-config.jam || true
 	echo $(TOOLSET_CONFIG) >> user-config.jam
 	echo $(PYTHON_CONFIG) >> user-config.jam
 
@@ -310,7 +312,7 @@
 	dh_installexamples
 	dh_installinfo
 	dh_installchangelogs
-	dh_strip -Nlibboost-dbg
+	dh_strip --dbg-package=libboost-dbg -X"-d-"
 	dh_link
 	dh_compress -Xlibboost-doc/HTML
 	dh_pysupport

Reply via email to