diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-24 01:16:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-24 01:16:25 +0000 |
commit | 757b28157f1fbc28e3eb58dbf9e902a357ace83b (patch) | |
tree | ffa61399ecf2e40b763d3ef4df55a79552e4fb33 | |
parent | c2b6ed727403b5066190ae241dd2d5457bd6d51b (diff) | |
download | portage-757b28157f1fbc28e3eb58dbf9e902a357ace83b.tar.gz portage-757b28157f1fbc28e3eb58dbf9e902a357ace83b.tar.bz2 portage-757b28157f1fbc28e3eb58dbf9e902a357ace83b.zip |
For bug #186337, show an ewarn message if FEATURES=installsources is enabled but debugedit is not installed. Also document installsources and splitdebug in make.conf.example.
svn path=/main/trunk/; revision=7381
-rwxr-xr-x | bin/prepstrip | 5 | ||||
-rw-r--r-- | cnf/make.conf | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/bin/prepstrip b/bin/prepstrip index c5b23d3a8..178b5c173 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -25,6 +25,11 @@ type -P -- ${OBJCOPY} > /dev/null || OBJCOPY=objcopy export SAFE_STRIP_FLAGS="--strip-unneeded" export PORTAGE_STRIP_FLAGS=${PORTAGE_STRIP_FLAGS-${SAFE_STRIP_FLAGS} -R .comment} +if hasq installsources ${FEATURES} && ! type -P debugedit >/dev/null ; then + ewarn "FEATURES=installsources is enabled but the debugedit binary could not" + ewarn "be found. This feature will not work unless debugedit is installed!" +fi + save_elf_sources() { hasq installsources ${FEATURES} || return 0 type -P debugedit >/dev/null || return 0 diff --git a/cnf/make.conf b/cnf/make.conf index 8dc0aa760..4a456e3c3 100644 --- a/cnf/make.conf +++ b/cnf/make.conf @@ -262,6 +262,11 @@ # 'distlocks' enables distfiles locking using fcntl or hardlinks. This # is enabled by default. Tools exist to help clean the locks # after crashes: /usr/lib/portage/bin/clean_locks. +# 'installsources' +# Install source code into /usr/src/debug/${CATEGORY}/${PF} +# (also see 'splitdebug'). This feature works only if debugedit +# is installed and CFLAGS is set to include debug information +# (such as with the -ggdb flag). # 'test' causes ebuilds to perform testing phases if they are capable # of it. Some packages support this automatically via makefiles. # 'metadata-transfer' @@ -275,6 +280,10 @@ # 'parallel-fetch' # do fetching in parallel to compilation # 'sandbox' enables sandboxing when running emerge and ebuild. +# 'splitdebug' Prior to stripping ELF etdyn and etexec files, the debugging +# info is stored for later use by various debuggers. This +# feature is disabled by 'nostrip'. For installation of source +# code, see 'installsources'. # 'strict' causes portage to react strongly to conditions that are # potentially dangerous, like missing/incorrect Manifest files. # 'stricter' causes portage to react strongly to conditions that may |