Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46509 - Make USE="debug" affect CFLAGS/CXXFLAGS regardless of an application's IUSE="debug"
Summary: Make USE="debug" affect CFLAGS/CXXFLAGS regardless of an application's IUSE="...
Status: RESOLVED DUPLICATE of bug 55708
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-01 12:00 UTC by Matt T. Proud
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt T. Proud 2004-04-01 12:00:30 UTC
It would prove handy for the ebuild system to automatically "inherit debug" upon the declaration of "debug in the USE flags.
Since I USE="debug", this would be very handy, for I try to report as many complete complete stack traces from crashes as I can.
Furthermore, since many applications grab their C(XX)FLAGS from the environment as established by configure, there is no rational reason for not having "inherit debug" occur at some top level above the ebuild, for it would simply be too much of a hassle to append "debug" to all of the ebuilds IUSE declaration.

Reproducible: Always
Steps to Reproduce:
1.Set FEATURES="nostrip" USE="debug" in /etc/make.conf
2.Include "-fomit-frame-pointer" in CFLAGS in /etc/make.conf
3.emerge an application which does not have explicit IUSE="debug" support--e.g., lynx.


Actual Results:  
Notice how the "-fomit-frame-pointer" remains in the CFLAGS during the Lynx build; this should not occur. The debug eclass explictly removes "-fomit-frame-pointer"

Expected Results:  
Bad CFLAGS--e.g., "-fomit-frame-pointer"--to be stripped and debugging flags "-g" appended to CFLAGS for all ebuilds.

This would really make the lives of testers very easy.
Comment 1 gatto 2004-10-19 18:12:23 UTC
Could somebody please fix this?

It would make the lives of those of us in the GNOME bugsquad much easier, as we wouldn't have to write a short essay to each crash bug reporter on gentoo user on how to rebuild all of GNOME with debugging symbols turned on and symbols not stripped from the binaries.
Comment 2 SpanKY gentoo-dev 2004-10-20 17:41:02 UTC
i personally dont think this should happen

the meaning of USE=debug varies from package to package ... often times it's whatever debug code the developer has designed themselves
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-05-16 06:33:52 UTC

*** This bug has been marked as a duplicate of 55708 ***