From 23ab15d7fa428f5a0627abe8edab3fd383bceafe Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Tue, 26 Sep 2006 23:34:16 +0000 Subject: [PATCH] OpenAFS strips everything except for the fileserver and volserver, so for right now only provide debugging information for those two binaries. Document the new debugging support in README.Debian. --- debian/README.Debian | 17 ++++++++++++++++- debian/changelog | 6 +++--- debian/control | 8 +++----- debian/rules | 10 ++++++++++ 4 files changed, 32 insertions(+), 9 deletions(-) diff --git a/debian/README.Debian b/debian/README.Debian index 755fa84cb..5a0c0bf51 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -74,6 +74,21 @@ Changes Relative to Stock OpenAFS The OpenAFS PAM modules have been built with pthreads rather than the standard LWP AFS libraries for compatibility with a threaded sshd. +Debugging + + The current OpenAFS installation process installs fileserver and + volserver unstripped, since backtraces and other debugging information + for those binaries are necessary to track down file server problems. + For the Debian packages, the fileserver and volserver binaries in the + openafs-fileserver package are stripped, but the debugging information + is available in the openafs-dbg package, which can be installed + separately. If it is installed, gdb will find that debugging + information automatically. + + Eventually the openafs-dbg package will contain debugging information + for all OpenAFS binaries. This is pending upstream changes to the stock + OpenAFS installation rules. + PAM Authentication Any new OpenAFS cell is strongly encouraged to use Kerberos v5 for @@ -123,4 +138,4 @@ PAM Authentication the openafs-kpasswd package to get the administrative utilities for managing those Kerberos accounts. - -- Russ Allbery , Tue Dec 27 15:53:28 2005 + -- Russ Allbery , Tue, 26 Sep 2006 16:32:58 z diff --git a/debian/changelog b/debian/changelog index 9f3d8735c..65404b56d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,13 +1,13 @@ openafs (1.4.2~fc4-1) unstable; urgency=low * New upstream release candidate. - * Build an openafs-dbg package with debugging information for all - OpenAFS binaries. + * Build an openafs-dbg package with debugging information for the + OpenAFS fileserver and volserver. * Add LSB comments to the openafs-client and openafs-fileserver init scripts. * Update to debhelper compatibility level V5. - -- Russ Allbery Tue, 26 Sep 2006 16:06:17 -0700 + -- Russ Allbery Tue, 26 Sep 2006 16:33:16 -0700 openafs (1.4.2~fc2-1) unstable; urgency=low diff --git a/debian/control b/debian/control index f73963b56..09d48a4fb 100644 --- a/debian/control +++ b/debian/control @@ -129,7 +129,7 @@ Description: AFS distributed filesystem kaserver PAM module Package: openafs-dbg Priority: extra -Depends: openafs-client (= ${binary:Version}) +Depends: openafs-fileserver (= ${binary:Version}) Architecture: i386 powerpc sparc alpha s390 ia64 hppa amd64 ppc64 Section: libdevel Description: AFS distributed filesystem debugging information @@ -137,7 +137,5 @@ Description: AFS distributed filesystem debugging information files among multiple computers. Facilities are provided for access control, authentication, backup and administrative management. . - This package contains the debugging information for all of the OpenAFS - binaries in openafs-client, openafs-fileserver, openafs-dbserver, - openafs-krb5, etc. Make sure the version of this package matches the - version of the package being debugged. + This package contains the debugging information for the OpenAFS + fileserver and volserver. diff --git a/debian/rules b/debian/rules index b62c4793b..e26572046 100755 --- a/debian/rules +++ b/debian/rules @@ -176,6 +176,12 @@ binary-indep: build install binary-source # Build architecture-dependent files here. Pass -a to all debhelper commands # in this target to reduce clutter. +# +# We would like to install debugging information for everything, but currently +# OpenAFS's makefiles strip all binaries when installed except for the +# fileserver and the volserver. This is fixed in OpenAFS's development +# branch. Until that's released, only retain debugging information for the +# fileserver and the volserver. binary-arch: DH_OPTIONS=-a binary-arch: build install dh_testdir @@ -187,6 +193,10 @@ binary-arch: build install DH_OPTIONS= dh_installinit -popenafs-fileserver -r dh_link dh_strip --dbg-package=openafs-dbg + rm -r debian/openafs-dbg/usr/lib/debug/usr/bin + rm -r debian/openafs-dbg/usr/lib/debug/usr/sbin + cd debian/openafs-dbg/usr/lib/debug/usr/lib/openafs \ + && rm buserver ptserver salvager vlserver dh_compress dh_fixperms chmod 700 debian/openafs-client/var/cache/openafs -- 2.39.5