Debian Developers - Example for use of dh_strip --dbg-package=... and CDBS?

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > March 2005 > Example for use of dh_strip --dbg-package=... and CDBS?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Example for use of dh_strip --dbg-package=... and CDBS?
W. Borgert

2005-03-02, 6:11 pm

Hi,

are there any CDBS based packages using dh_strip with the
--dbg-package option? I tried, but no /usr/lib/debug/
directory is created. I'm using debhelper 4.2.30 with
cdbs 0.4.26-1.1. Many thanks in advance!

Cheers, WB


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Josselin Mouette

2005-03-02, 6:11 pm

Le mercredi 02 mars 2005 Ã_ 19:35 +0100, W. Borgert a écrit :
> Hi,
>
> are there any CDBS based packages using dh_strip with the
> --dbg-package option? I tried, but no /usr/lib/debug/
> directory is created. I'm using debhelper 4.2.30 with
> cdbs 0.4.26-1.1. Many thanks in advance!


I'm using it with fontconfig, just have a look at the rules file.

Regards,
--
.''`. Josselin Mouette /\./\
: :' : josselin.mouette@ens-lyon.org
`. `' joss@debian.org
`- Debian GNU/Linux -- The power of freedom

Aaron M. Ucko

2005-03-02, 6:11 pm

fltk1.1 does this. Here's its rules file:

#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/buildcore.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

# The original definition also includes -fno-exceptions, which we
# might as well punt so that throwing exceptions from callbacks
# actually works. We also punt -Wall, which CDBS puts in CFLAGS.
FLTK_OPTIM="$(CFLAGS) -Wunused -Wconversion -fPIC -D_REENTRANT"

DEB_CONFIGURE_EXTRA_FLAGS = --enable-shared --enable-threads --enable-xft --without-links
DEB_CONFIGURE_SCRIPT_ENV =
DEB_MAKE_INVOKE = make OPTIM=$(FLTK_OPTIM)
DEB_MAKE_CHECK_TARGET =
DEB_INSTALL_CHANGELOGS_ALL = CHANGES
DEB_INSTALL_DOCS_ALL = CREDITS README
DEB_DH_MAKESHLIBS_ARGS = -V
DEB_DH_SHLIBDEPS_ARGS = -l debian/libfltk1.1c102/usr/lib -Lfltk1.1c102
DEB_DH_STRIP_ARGS = --dbg-package=libfltk1.1c102

clean::
rm -rf autom4te.cache

build/fltk1.1-doc::
cd documentation && make fltk.ps && make fltk.pdf

binary-predeb/fluid:: binary-fixup/libfltk1.1c102

[Likewise for ncbi-tools6, but its rules file is much hairier.]

--
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger amu@monk.mit.edu (NOT a valid e-mail address) for more info.


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
W. Borgert

2005-03-03, 5:59 pm

Quoting Josselin Mouette <joss@debian.org>:
> I'm using it with fontconfig, just have a look at the rules file.


Thanks to Aaron and Josselin! My fault was to set
--dbg-package=libfoo-dbg instead of --dbg-package=libfoo :-)
Both fltk1.1 and fontconfig are fine examples.

Cheers!


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com