summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-24 01:18:08 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-24 01:18:08 +0000
commit606e8f2cbaee1f4c5a22ac1ead99b5892f660256 (patch)
treea8e226ba8a794f71e34f3db588bd82247a9b4b73 /bin/prepstrip
parentAdd FEATURES=fakeroot support which causes install and package phases to run ... (diff)
downloadportage-multirepo-606e8f2cbaee1f4c5a22ac1ead99b5892f660256.tar.gz
portage-multirepo-606e8f2cbaee1f4c5a22ac1ead99b5892f660256.tar.bz2
portage-multirepo-606e8f2cbaee1f4c5a22ac1ead99b5892f660256.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. (trunk r7381)
svn path=/main/branches/2.1.2/; revision=7382
Diffstat (limited to 'bin/prepstrip')
-rwxr-xr-xbin/prepstrip5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index c5b23d3a..178b5c17 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