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): all How reproducible: always 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 3. Actual results: file reports that binary file is stripped Expected results: file should not be stripped Additional info:
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.
Yeah. this has been bugging me for a while, but I haven't gotten around to fixing it yet. Thanks for doing the work! -Jeff
No worries, happy to help!
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.
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}
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.
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.
A fix for this problem was committed in autofs-4.1.3-176.
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. http://rhn.redhat.com/errata/RHBA-2006-0459.html