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:
*** This bug has been marked as a duplicate of bug 200257 ***