From 559cca2c0c83850871a5f85c0d0a70cd542c3ad6 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 28 Sep 2009 20:32:37 +0000 Subject: [PATCH] don't run all those expensice ELF checks on Darwin, it has scanelf, but it doesn't have ELF, make bundle check restrictable svn path=/main/branches/prefix/; revision=14457 --- bin/misc-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 393cf97f5..40ef835d4 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -59,7 +59,7 @@ install_qa_check() { sleep 1 done - if type -P scanelf > /dev/null && ! hasq binchecks ${RESTRICT}; then + if [[ ${CHOST} != *-darwin* ]] && type -P scanelf > /dev/null && ! hasq binchecks ${RESTRICT}; then local qa_var insecure_rpath=0 tmp_quiet=${PORTAGE_QUIET} local f x @@ -520,7 +520,7 @@ install_qa_check() { fi fi - if [[ ${CHOST} == *-darwin* ]] ; then + if [[ ${CHOST} == *-darwin* ]] && ! hasq binchecks ${RESTRICT} ; then # on Darwin, dynamic libraries are called .dylibs instead of # .sos. In addition the version component is before the # extension, not after it. Check for this, and *only* warn -- 2.26.2