Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55977 - Provide package debug support inside of portage
Summary: Provide package debug support inside of portage
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-03 09:32 UTC by devsk
Modified: 2007-01-10 06:49 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 devsk 2004-07-03 09:32:49 UTC
Numerous times packages don't honour 'debug' flag. portage should in all cases:

1. not strip if USE contains 'debug' (FEATURES=nostrip)
2. append -g to final CFLAGS passed to the package
3. strip flags like -fomit-frame-pointer, -O3/2

If that's not what USE flags are used for, please provide a FEATURE=debug to accomplish this.

Reproducible: Always
Steps to Reproduce:
1. USE=debug emerge xmms
2.
3.

Actual Results:  
Everything stripped.

Expected Results:  
If xmms doesn't honour 'debug', at least not strip my libs and exes.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2004-08-03 10:59:49 UTC

*** This bug has been marked as a duplicate of 55708 ***
Comment 2 devsk 2005-08-01 17:32:41 UTC
Do we, at this point, have a FEATURE which 1.) adds -g to cflags for debug
symbols, removes fomit-frame-pointer, lowers the optimize flags to -O if greater
2.) turns the nostrip FEATURES on.

if not, why is the bug marked as duplicate of 55708 and closed? That bug is not
about portage debug support.

Why is this functionality not a FEATURE? typical users would want the above two
to be applicable to all packages, not just the ones coded with a debug (or
variant thereof) USE flag?
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-08-01 18:02:38 UTC
Your feature is not available because per-package features are not yet 
implemented, thus the only per-package method currently is a use flag.  This 
requires discussion on the gentoo-dev ML, which I was planning on starting in a 
few days.

per-package FEATURES should be available in the next major version of portage.

Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-08-02 04:02:32 UTC
I don't really like the idea of a debug "feature" at all. I think the idea of 
build profiles would better serve the purpose. 
Comment 5 devsk 2005-08-02 09:45:20 UTC
ok, let's elaborate. you mean users will have to switch to a debug profile to
get a decent stack from a package, and then revert back? if debug profiles can
be a backend to the debug feature, that would be better.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-08-02 16:36:11 UTC
No, I essentially mean "per-package environment", where environment is defined 
as a set of changes called "build profile" rather than having to specify 
individual settings for each package. 
Comment 7 devsk 2005-08-02 22:36:25 UTC
but the question still is: how do users use it? and what all things does it allow?
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2007-01-10 06:49:55 UTC
The things you mentioned can be done with a simple shell alias:

alias debug-merge="USE=debug FEATURES=nostrip CFLAGS='-g'"