Bug 166910

Summary: lm_sensors-debuginfo doesn't contain any debuginfo
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: lm_sensorsAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-01 17:37:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hans de Goede 2005-08-27 06:52:30 UTC
I've been busy writing a driver for a sensors chip on my new motherboard, the
driver worked ok, but I had trouble accessing it through libsensors based
programs, so I wanted to debug libsensors. However even after installing
lm_sensors-debuginfo, debugging was still inpossible.

The problem is that the current spec- (and make-) file don't pass -g to gcc when
building. Actually the current specfile doesn't pass any of the Fedora specific
CFLAGS to make, thus causing lm_sensors to be build without debuginfo,
fortifysource and stacksmashing protection.

I fixed this by adding:
export CFLAGS="%{optflags}"

Directly under %build, or you could add CFLAGS="%{optflags}" to the make command
under %build.

Comment 1 Phil Knirsch 2005-09-01 17:37:27 UTC
Fixed in latest development version.

Read ya, Phil