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

Bug 200254

Summary: Backtrace docs: mention /etc/portage/env
Product: [OLD] Docs on www.gentoo.org Reporter: virdiq <virdiq>
Component: Other documentsAssignee: Docs Team <docs-team>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/proj/en/qa/backtraces.xml
Whiteboard:
Package list:
Runtime testing required: ---

Description virdiq 2007-11-25 05:48:36 UTC
The backtrace/debugging documentation currently doesn't refer to changing FEATURES/CFLAGS per-package via /etc/portage/env.

I think it'd be very handy to have this information in the document to make it easier for people to build debug versions of a particular package (rather than having them build it separately without using portage).

An example of expanded documentation may include the requirement to install "debugedit", the "installsources" FEATURE and how to change the CFLAGS/FEATURES from within /etc/portage/env.

An example of an entry in /etc/portage/env (zmedico kindly helped me out with this example for glibc):
<zmedico> cat /etc/portage/env/sys-libs/glibc
<zmedico> if [[ ${EBUILD_PHASE} != depend ]] && ! hasq splitdebug ${FEATURES} ; then
<zmedico>         einfo "bashrc is enabling splitdebug for glibc"
<zmedico>         export FEATURES="${FEATURES} installsources splitdebug"
<zmedico>         export CFLAGS="${CFLAGS} -ggdb"
<zmedico> fi

The reason I ask for these changes is that I couldn't find much information on this topic when searching with Google and it would make the backtrace documentation far easier for people to understand and put into practice.

Reproducible: Always

Steps to Reproduce:
Comment 1 virdiq 2007-11-25 05:59:59 UTC

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