Tzafrir Cohen schrieb:
> On Fri, Oct 24, 2008 at 09:46:25PM +0200, thomas schorpp wrote:
>> Tzafrir Cohen schrieb:
> 
>>> Does the callweaver binary have debug information or is it stripped?
>> dh_strip
>>
>>> If you use debs, use a -dbg package.
>> current debian/ scripts included do not build one.
>>
> 
> dh_strip --dbg-package=callweaver-dbg
> 
> and add a (binary) package called callweaver-dbg in the control .
> 
> diff --git a/debian/control b/debian/control
> index 10fb21a..779b39e 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -33,6 +33,17 @@ Description: Development files for Callweaver
>   This package contains the include files used if you wish to compile a
>   package which requires Callweaver source file headers.
> 
> +Package: callweaver-dev
> +Section: devel
> +Priority: extra
> +Architecture: any
> +Depends: Depends: callweaver (= ${binary:Version})
> +Description: Development files for Callweaver
> + Callweaver is an Open Source PBX and telephony toolkit.
> + .
> + This package contains the debugging symbols for modules. Use it if you want
> + to run callweaver under a debugger.
> +
>  Package: callweaver-doc
>  Recommends: callweaver
>  Section: doc
> diff --git a/debian/rules b/debian/rules
> index 5c1fde4..1c5d6c2 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -169,7 +169,7 @@ binary-arch: install
>  #      dh_installinfo -a
>  #      dh_installman  -a
>         dh_link -a
> -       dh_strip -a
> +       dh_strip -a --dbg-package=callweaver-dbg
>         dh_compress -a
>         dh_fixperms -a
>  #      dh_perl -a
> 

does not work
+Depends: Depends: callweaver (= ${binary:Version})
gives some unresolved deps error

the below runs but no symbols in -dbg package if tried the same with spandsp 
dpkg-buildpackage, 
gives empty package, --enable-debug needed? but undocumented configure flag for 
spandsp.

tom3:/usr/src# dpkg -L libspandsp-dbg
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libspandsp-dbg
/usr/share/doc/libspandsp-dbg/changelog.Debian.gz
/usr/share/doc/libspandsp-dbg/changelog.gz
tom3:/usr/src# 

and what is it above now
> +       dh_strip -a --dbg-package=callweaver-dbg
or
> dh_strip --dbg-package=callweaver-dbg
?

and this is typo
> +Package: callweaver-dev
?

ok adding --enable-debug and -g3 to debian/control later.

y
tom

Index: debian/control
===================================================================
--- debian/control      (Revision 5210)
+++ debian/control      (Arbeitskopie)
@@ -33,6 +33,16 @@
  This package contains the include files used if you wish to compile a
  package which requires OpenPBX source file headers.
 
+Package: callweaver-dbg
+Section: devel
+Priority: extra
+Architecture: any
+Description: Development files for Callweaver
+ Callweaver is an Open Source PBX and telephony toolkit.
+ .
+ This package contains the debugging symbols for modules. Use it if you want
+ to run callweaver under a debugger or with -p for coredumps.
+
 Package: callweaver-doc
 Recommends: callweaver
 Section: doc
@@ -43,15 +53,3 @@
  This package contains the source documentation needed if you wish to
  extend the callweaver package.
 
-Package: callweaver-zaptel
-Depends: callweaver
-Section: comm
-Architecture: all
-Description: zaptel module for CallWeaver
- CallWeaver is an Open Source PBX and telephony toolkit
- .
- This Package contains the CallWeaver zaptel Module, which is needed to
- let CallWeaver talk to zaptel kernelmodules.
- You will also need kernel support, which can be achieved by running
- module-assistant install zaptel
-
Index: debian/changelog
===================================================================
--- debian/changelog    (Revision 5210)
+++ debian/changelog    (Arbeitskopie)
@@ -1,5 +1,5 @@
 callweaver (1.2.0-1) unstable; urgency=low
 
-  * SVN checkout build for callweaver RC branch
+  * SVN checkout build for callweaver rel branch
   
  -- Massimo Cetra <[EMAIL PROTECTED]>  Sun,  6 May 2007 16:28:16 +0100
Index: debian/rules
===================================================================
--- debian/rules        (Revision 5210)
+++ debian/rules        (Arbeitskopie)
@@ -71,22 +71,10 @@
                                --datarootdir=\$${prefix}/share \
                                --localstatedir=/var \
                                --sysconfdir=/etc \
-                               \
-                               --with-pbx_ael=yes \
-                               --with-app_sql_postgres=yes 
--enable-postgresql=yes \
-                               --with-res_config_pgsql --with-res_sqlite=yes \
-                               --with-cdr_pgsql=yes --with-app_meetme=no 
--with-chan-capi=yes \
-                               --enable-iax-trunking=yes 
--with-res_config_curl=yes \
-                               --enable-t38=yes --with-chan-fax=yes \
-                               --with-res_jabber=yes --enable-odbc=yes 
--with-cdr_odbc=yes \
-                               --with-res_config_odbc=yes --with-res_odbc=yes \
-                               --with-chan_bluetooth=yes \
-                               --enable-mysql=yes --with-app_sql_mysql=yes 
--with-cdr_mysql=yes \
-                               --with-res_config_mysql=yes  
--with-chan_zap=yes \
-                               --enable-zaptel \
-                               --with-app_icd=no \
-                                --with-chan_unicall=no \
-                               --with-chan_misdn=no
+                               --enable-rtp-payload-2=yes \
+                               --with-chan_woomera=no \
+                               --with-chan_zap=no \
+                               --disable-zaptel
 
 build: build-stamp
 
@@ -171,7 +159,8 @@
 #      dh_installinfo -a
 #      dh_installman  -a
        dh_link -a
-       dh_strip -a
+#      dh_strip -a
+       dh_strip -a --dbg-package=callweaver-dbg
        dh_compress -a
        dh_fixperms -a
 #      dh_perl -a



_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to