Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200254 - Backtrace docs: mention /etc/portage/env
Summary: Backtrace docs: mention /etc/portage/env
Status: RESOLVED DUPLICATE of bug 200257
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/proj/en/qa/back...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-25 05:48 UTC by virdiq
Modified: 2007-11-25 05:59 UTC (History)
0 users

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 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 ***