[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Patch for review: create debug packages for BRLTTY



Here is a first attempt to create packages of debugging symbols for BRLTTY.

I haven't yet tested what happens if the Java packages are disabled; clearly,
a conditional can be used in debian/rules, if necessary, to handle that case.

Comments and fixes are welcome.


>From 6eaff729ae6de694169deb8e5ade28c3869c7a25 Mon Sep 17 00:00:00 2001
From: Jason White <jason@jasonjgw.net>
Date: Fri, 15 Jun 2012 12:24:58 +1000
Subject: [PATCH] Create packages for debug symbols.

---
 debian/control |   17 +++++++++++++++++
 debian/rules   |    3 ++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index b576a1a..636fe36 100644
--- a/debian/control
+++ b/debian/control
@@ -66,6 +66,14 @@ Description: Access software for a blind person using a braille display
  programming languages can be found in cl-brlapi (Lisp), libbrlapi-java (Java)
  and python-brlapi (Python).
 
+Package: brltty-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${shlibs:Depends}, ${misc:Depends}, brltty (= ${binary:Version})
+Description: BRLTTY - debugging symbols.
+  This package contains the debugging symbols for BRLTTY.
+
 Package: libbrlapi0.5
 Architecture: any
 Multi-arch: same
@@ -76,6 +84,15 @@ Description: braille display access via BRLTTY - shared library
  This package contains the shared library necessary to run programs which
  need to communicate with a braille display.
 
+Package: libbrlapi-dbg
+Architecture: any
+Multi-Arch: same
+Section: debug
+Priority: extra
+Depends: ${shlibs:Depends}, ${misc:Depends}, libbrlapi0.5 (= ${binary:Version})
+Description: braille display access via BRLTTY - shared library debugging symbols.
+  This package contains the debugging symbols for the brlapi shared library.
+
 Package: libbrlapi-dev
 Architecture: any
 Section: libdevel
diff --git a/debian/rules b/debian/rules
index 8f2343b..c405eb2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -139,7 +139,8 @@ endif
 	cp build-brltty/Documents/brltty.conf debian/brltty/etc/brltty.conf
 	dh_link -p$@ -plibbrlapi0.5 -plibbrlapi-dev
 	dh_link -plibbrlapi-dev /lib/$(DEB_HOST_MULTIARCH)/libbrlapi.so /usr/lib/$(DEB_HOST_MULTIARCH)/libbrlapi.so
-	dh_strip
+	dh_strip -p$@ -p$@-espeak -p$@-flite -p$@-speechd -p$@-x11 --dbg-package=$@-dbg
+	dh_strip -plibbrlapi0.5 -ppython-brlapi -plibbrlapi-jni --dbg-package=libbrlapi-dbg
 	dh_compress
 	dh_fixperms
 	dh_makeshlibs -n -p$@
-- 
1.7.10


Reply to: