Attached is a patch to enable a debugging symbols package. I created it from the similar patch for ruby 2.2. It builds for me. It's the first patch of this kind i ever created though. So please have a close look.
diff --git a/debian/control b/debian/control index a481e46..9c33f60 100644 --- a/debian/control +++ b/debian/control @@ -63,6 +63,22 @@ Description: Libraries necessary to run Ruby 2.1 This package includes the 'libruby-2.1' library, necessary to run Ruby 2.1. (API version 2.1.0) +Package: libruby2.1-dbg +Section: debug +Priority: extra +Multi-Arch: same +Architecture: any +Depends: + libruby2.1 (= ${binary:Version}), + ${misc:Depends} +Description: Debugging symbols for libruby2.1 + Ruby is the interpreted scripting language for quick and easy + object-oriented programming. It has many features to process text + files and to do system management tasks (as in perl). It is simple, + straight-forward, and extensible. + . + This package includes the debugging symbols for the 'libruby-2.1' library. + Package: ruby2.1-dev Multi-Arch: same Architecture: any diff --git a/debian/rules b/debian/rules index 3fb31b0..6b844f8 100755 --- a/debian/rules +++ b/debian/rules @@ -91,3 +91,7 @@ override_dh_install-arch: dh_install # split Ruby/Tk files $(baseruby) debian/split-tk-out.rb + +.PHONY: override_dh_strip +override_dh_strip: + dh_strip --dbg-package=libruby2.1-dbg