From 757b28157f1fbc28e3eb58dbf9e902a357ace83b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 24 Jul 2007 01:16:25 +0000 Subject: 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 --- bin/prepstrip | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3-1-g7c22