Bug 147378 - (IT_65082) makefiles strip debug symbols from autofs binaries before debuginfo package is built
makefiles strip debug symbols from autofs binaries before debuginfo package i...
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: autofs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Moyer
Brock Organ
Depends On:
Blocks: RHEL3U8CanFix
  Show dependency treegraph
Reported: 2005-02-07 13:55 EST by Neil Horman
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHBA-2006-0459
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-07-20 10:42:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to remove stripping from build Makefiles (464 bytes, patch)
2005-02-07 13:56 EST, Neil Horman
no flags Details | Diff
Add a make option to not strip binaries. (486 bytes, patch)
2006-04-05 13:28 EDT, Jeff Moyer
no flags Details | Diff

  None (edit)
Description Neil Horman 2005-02-07 13:55:20 EST
Description of problem:
The autofs package makefiles include strip commands to remove debug
information from built package binaries, instead of allowing rpm to do
the stripping.  This results in a debuginfo package that contains
stripped binaries, making them useless

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.install the autofs-4.1-3 (or any autofs) debuginfo package
2.run file on /usr/lib/debug/usr/sbin/automount.debug
Actual results:
file reports that binary file is stripped

Expected results:
file should not be stripped

Additional info:
Comment 1 Neil Horman 2005-02-07 13:56:53 EST
Created attachment 110737 [details]
patch to remove stripping from build Makefiles

This patch removes the stripping stage from the Makefile.rules makefile used to
build autofs.  This allows rpmbuild to generate a symboled debuginfo package
and still produce a stripped distribution package.
Comment 2 Jeff Moyer 2005-02-07 13:58:43 EST
Yeah. this has been bugging me for a while, but I haven't gotten
around to fixing it yet.  Thanks for doing the work!

Comment 3 Neil Horman 2005-02-07 14:01:08 EST
No worries, happy to help!
Comment 12 Jeff Moyer 2005-10-19 15:24:09 EDT
Given that I can debug most any problem with the automounter through the logging
facility, I'm NAKing this fix for this round of updates.  There is no real need
for this functionality.  Having said that, I would accept patches which
implement this.
Comment 15 Jeff Moyer 2006-04-05 13:22:35 EDT
For testing, you should be able to install the autofs and autofs-debuginfo
packages, and run:
$ gdb /usr/sbin/automount

At the gdb prompt, issue the following commands.  If you get the output listed
here, then the debuginfo packages are useful.

(gdb) whatis ap
type = struct autofs_point
(gdb) p (struct autofs_point) ap
$2 = {path = 0x0, pipefd = 0, ioctlfd = 0, dev = 0, maptype = 0x0, type = 0, 
  exp_timeout = 0, exp_runfreq = 0, ghost = 0, exp_process = 0, mounts = 0x0, 
  lookup = 0x0, state = ST_INIT, state_pipe = {0, 0}, dir_created = 0}
Comment 16 Jeff Moyer 2006-04-05 13:28:05 EDT
Created attachment 127359 [details]
Add a make option to not strip binaries.

This patch adds the ability to specify "DONTSTRIP=1" on the make command line,
in order to keep the build process from stripping binaries.  The .spec file
needs to be modified to use this option in the %build section.
Comment 17 Bob Johnson 2006-04-11 11:56:49 EDT
This issue is on Red Hat Engineering's list of planned work items 
for the upcoming Red Hat Enterprise Linux 3.8 release.  Engineering 
resources have been assigned and barring unforeseen circumstances, Red 
Hat intends to include this item in the 3.8 release.
Comment 18 Jeff Moyer 2006-04-13 15:36:11 EDT
A fix for this problem was committed in autofs-4.1.3-176.
Comment 21 Red Hat Bugzilla 2006-07-20 10:42:48 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.