[Build-common-hackers] Bug#214327: cbds: new -dbg changes break stripping of binaries/libs in packages

Andres Salomon Andres Salomon <dilinger@voxel.net>, 214327@bugs.debian.org
Mon, 06 Oct 2003 03:51:42 -0400


Package: cdbs
Version: 0.4.11
Severity: important
Tags: sid


The new change, which makes cdbs not call dh_strip on -dbg packages,
causes cdbs to not call dh_strip at all.  The logic in the script
(from /usr/share/cdbs/1/rules/debhelper.mk, line 151) is:

if test "$(is_debug_package)"; then : else dh_strip -p$(cdbs_curpkg) $(foreach entry,$(DEB_STRIP_EXCLUDE),$(patsubst %,-X %,$(entry))) $(DEB_DH_STRIP_ARGS); fi

	
Unfortunately, that doesn't work:

dilinger@wax:~$ export is_debug_package=""; if test "$is_debug_package";
then : else echo "not debug"; fi
dilinger@wax:~$

What that line should be is:

if test "$(is_debug_package)"; then true; else dh_strip -p$(cdbs_curpkg) $(foreach entry,$(DEB_STRIP_EXCLUDE),$(patsubst %,-X %,$(entry))) $(DEB_DH_STRIP_ARGS); fi

or even better:

if ! test "$(is_debug_package)"; then dh_strip -p$(cdbs_curpkg) $(foreach entry,$(DEB_STRIP_EXCLUDE),$(patsubst %,-X %,$(entry))) $(DEB_DH_STRIP_ARGS); fi


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux wax.hq.voxel.net 2.4.21 #1 Wed Jul 9 14:15:24 EDT 2003 i686
Locale: LANG=C, LC_CTYPE=C

-- no debconf information