Package: libruby1.8-dbg
Version: 1.8.2-9
Tags: patch
Severity: minor

The attached patch modifies the method of producing the debug package by
creating detached symbols rather than unstripped versions of the library.

This is better because gdb (amongst others) automatically loads the symbols
produced in this way, without having to fiddle with LD_LIBRARY_PATH.

- Matt
diff -u ruby1.8-1.8.2/debian/control ruby1.8-1.8.2/debian/control
--- ruby1.8-1.8.2/debian/control
+++ ruby1.8-1.8.2/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: akira yamada <[EMAIL PROTECTED]>
 Uploaders: Fumitoshi UKAI <[EMAIL PROTECTED]>, Akira TAGOH <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 3.0), dbs, patch, autoconf, m4, bison, 
libgdbm-dev, libncurses5-dev, libreadline4-dev, tcl8.4-dev, tk8.4-dev, 
zlib1g-dev, libssl-dev (>= 0.9.6b)
+Build-Depends: debhelper (>= 3.0), dbs, patch, autoconf, m4, bison, 
libgdbm-dev, libncurses5-dev, libreadline4-dev, tcl8.4-dev, tk8.4-dev, 
zlib1g-dev, libssl-dev (>= 0.9.6b), binutils (>= 2.14.90.0.7)
 Build-Conflicts: gcc-3.3 (<< 1:3.3.2-0pre1)
 Standards-Version: 3.5.8
 
@@ -39,14 +39,12 @@
 Priority: extra
 Architecture: any
 Depends: ${shlibs:Depends}, libruby1.8 (= ${Source-Version})
-Description: Debugging libraries for Ruby 1.8
- Contains unstripped shared libraries.
+Description: Debugging symbols for Ruby 1.8
+ Contains the symbols for libruby1.8.
  .
  This package is provided primarily to provide a backtrace with names
  in a debugger, this makes it somewhat easier to interpret core
- dumps. The libraries are installed in /usr/lib/debug and can be used
- by placing that directory in LD_LIBRARY_PATH.  Most people will not
- need this package.
+ dumps.  Most people will not need this package.
 
 Package: ruby1.8-dev
 Section: devel
diff -u ruby1.8-1.8.2/debian/rules ruby1.8-1.8.2/debian/rules
--- ruby1.8-1.8.2/debian/rules
+++ ruby1.8-1.8.2/debian/rules
@@ -107,8 +107,6 @@
 erb_bin      = $(erb_base)/usr/bin
 el_dir       = usr/share/emacs/site-lisp/ruby$(deb_sfx)-elisp
 el_etc       = etc/emacs/site-start.d
-dbg_base     = debian/libruby$(deb_sfx)-dbg
-dbg_lib      = $(dbg_base)/usr/lib/debug
 
 #Architecture 
 build: build-arch build-indep
@@ -168,11 +166,6 @@
        # creates debian/*.{files,manpages,docs,examples}...
        #
 
-       # libruby-dbg
-       install -d $(dbg_lib)
-       (cd debian/tmp/usr/lib && tar cf - libruby$(deb_sfx).so*) | \
-         (cd $(dbg_lib) && tar xf -)
-
        # ruby-elisp
        install -d debian/ruby$(deb_sfx)-elisp/$(el_dir)
        install -d debian/ruby$(deb_sfx)-elisp/$(el_etc)
@@ -432,12 +425,12 @@
 #      dh_installinfo
        dh_installman
        dh_link
-       dh_strip -Xlibruby$(deb_sfx)-dbg
+       dh_strip --dbg-package=libruby$(deb_sfx)
        dh_compress -X.rb -X.pl -X.py -X.scm -X.awk -X.dat
        dh_fixperms
 #      dh_perl
 #      dh_python
-       dh_makeshlibs -m$(rb_ver_base) -V -Xlibruby$(deb_sfx)-dbg
+       dh_makeshlibs -m$(rb_ver_base) -V
        dh_installdeb
        dh_shlibdeps -Llibruby$(deb_sfx) -ldebian/libruby$(deb_sfx)/usr/lib
        dh_gencontrol

Attachment: signature.asc
Description: Digital signature

Reply via email to