[Buildd-tools-devel] [PATCH 02/22] Add debug symbols package

Jan-Marek Glogowski glogow at fbihome.de
Thu Mar 26 21:13:40 UTC 2009


---
 debian/.gitignore |    9 ++-------
 debian/control    |   20 ++++++++++++++++++++
 debian/rules      |    2 +-
 3 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/debian/.gitignore b/debian/.gitignore
index 24351da..358803a 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -1,18 +1,13 @@
-dchroot-dsa.substvars
 dchroot-dsa
-dchroot.substvars
 dchroot
 files
 install
 libsbuild-dev
-libsbuild-doc.postinst.debhelper
-libsbuild-doc.prerm.debhelper
 libsbuild-doc
 schroot-common
-schroot.postinst.debhelper
-schroot.postrm.debhelper
-schroot.substvars
 schroot
+schroot-dbg
 build
+*.debhelper
 *.log
 *.substvars
diff --git a/debian/control b/debian/control
index 458aeed..1097ea9 100644
--- a/debian/control
+++ b/debian/control
@@ -27,6 +27,7 @@ Package: libsbuild-dev
 Architecture: any
 Section: libdevel
 Depends: pkg-config (>= 0.14.0)
+Suggests: schroot-dbg, libsbuild-doc
 Description: development files for the Debian source builder
  sbuild provides facilities to manage and access chroots, as part of
  schroot.
@@ -43,6 +44,25 @@ Description: development files for the Debian source builder
  develop applications which make use of sbuild.  Once the API and ABI
  are stable, a shared library will replace the static library.
 
+Package: schroot-dbg
+Architecture: any
+Section: devel
+Recommends: libsbuild-dev (=${source:Version})
+Description: schroot and libsbuild debuggging symbols
+ sbuild provides facilities to manage and access chroots, as part of
+ schroot.
+ .
+ schroot allows users to execute commands or interactive shells in
+ different chroots.  Any number of named chroots may be created, and
+ access permissions given to each, including root access for normal
+ users, on a per-user or per-group basis.  Additionally, schroot can
+ switch to a different user in the chroot, using PAM for
+ authentication and authorisation.  All operations are logged for
+ security.
+ .
+ This package contains the debugging-symbols from schroot, dchroot and
+ libsbuild packages.
+
 Package: libsbuild-doc
 Architecture: all
 Section: doc
diff --git a/debian/rules b/debian/rules
index 9339dfa..1491499 100755
--- a/debian/rules
+++ b/debian/rules
@@ -111,7 +111,7 @@ binary-arch: build install
 	dh_installman -a
 	dh_installinit -a --no-start --update-rcd-params='start 75 S .'
 	dh_link -a
-	dh_strip -a
+	dh_strip -a --dbg-package=schroot-dbg
 	dh_compress -a
 	dh_fixperms -a
 	chmod 4755 $(CURDIR)/debian/dchroot/usr/bin/dchroot
-- 
1.6.2.1




More information about the Buildd-tools-devel mailing list