From b279b0f4eb08d994161942dd66575dd39efb5d24 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 28 Oct 2009 13:16:34 -0700 Subject: [PATCH] debian: fix -dbg packages --- debian/control | 4 ++++ debian/move_dbg_files.sh | 8 ++++++++ debian/rules | 5 ++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 debian/move_dbg_files.sh diff --git a/debian/control b/debian/control index 6b1d0209497af..048c72f423b0b 100644 --- a/debian/control +++ b/debian/control @@ -73,6 +73,7 @@ Description: CRUSH placement algorithm Package: libcrush1-dbg Architecture: any Section: debug +Priority: extra Depends: libcrush1 (= ${binary:Version}), ${misc:Depends} Description: debugging symbols for libcrush1 CRUSH is a pseudo-random hash-like algorithm for mapping inputs to @@ -117,6 +118,7 @@ Description: RADOS distributed object store client library Package: librados1-dbg Architecture: any Section: debug +Priority: extra Depends: librados1 (= ${binary:Version}), ${misc:Depends} Description: debugging symbols for librados1 RADOS is a reliable, autonomic distributed object storage cluster @@ -151,6 +153,7 @@ Description: Ceph distributed file system client library Package: libceph1-dbg Architecture: any Section: debug +Priority: extra Depends: libceph1 (= ${binary:Version}), ${misc:Depends} Description: debugging symbols for libceph1 Ceph is a distributed network file system designed to provide @@ -187,6 +190,7 @@ Description: REST gateway for RADOS distributed object store Package: radosgw-dbg Architecture: any Section: debug +Priority: extra Depends: radosgw (= ${binary:Version}), ${misc:Depends} Description: debugging symbols for radosgw RADOS is a distributed object store used by the Ceph distributed diff --git a/debian/move_dbg_files.sh b/debian/move_dbg_files.sh new file mode 100755 index 0000000000000..7b4cba6d04d88 --- /dev/null +++ b/debian/move_dbg_files.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +for f in ceph ceph-fuse libcrush1 librados1 libceph1 radosgw +do + echo moving $f unstripped binaries into $f-dbg + mkdir -p debian/$f-dbg/usr/lib + mv debian/$f/usr/lib/debug debian/$f-dbg/usr/lib +done diff --git a/debian/rules b/debian/rules index eb29d4781b7f5..6ea3ef10697ef 100755 --- a/debian/rules +++ b/debian/rules @@ -70,7 +70,10 @@ binary-arch: build install # dh_installinfo dh_installman dh_link - dh_strip -k # --dbg-package=ceph-dbg --dbg-package=ceph-fuse-dbg #--dbg-package=libcrush1-dbg --dbg-package=libceph1-dbg --dbg-package=librados1-dbg --dbg-package=radosgw-dbg + + dh_strip -k + debian/move_dbg_files.sh + dh_compress dh_fixperms # dh_perl -- 2.39.5