Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 366065

Summary: new emerge flag to NOT install debug symbols
Product: Portage Development Reporter: Fab <netbox253>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Fab 2011-05-05 09:37:39 UTC
Hi,

I'm using a build farm to create tbz2 packages that I unpack on anothers
systems. I would like to build these packages by default with CFLAGS="-ggdb"
and FEATURES="splitdebug", but I also would like to have a new emerge flag
which would remove these debug files on installation :

 # emerge -k --do-not-install-/usr/lib/debug-files foo_package

This new flag could also be set into EMERGE_DEFAULT_OPTS.

This would allow me to build packages with debug symbols by default,
but install these symbols only when needed.

For example, today I have a segfault crash with firefox, but if I want
to run into a debug session to report a bug, I must rebuild half of the
system. This flag would allow me to reinstall packages (-k or -K) with debug
symbols easily and quickly.

Thanks.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2011-05-05 10:29:18 UTC
use INSTALL_MASK then
Comment 2 Fab 2011-05-05 11:10:48 UTC
ok, i didn't know this variable, thanks.