From: Fabian Groffen Date: Thu, 24 May 2007 10:31:13 +0000 (-0000) Subject: Also check .dylibs, such that we don't exclude Darwin from "much X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b2824e932c602bbd2b56e87ff6c786452a132ada;p=portage.git Also check .dylibs, such that we don't exclude Darwin from "much appreciated" sanity checks svn path=/main/branches/prefix/; revision=6614 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 6d1865c75..8b3be397d 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -261,7 +261,7 @@ install_qa_check() { "${ED}"usr/X11R6/lib{,32,64} ; do [[ ! -d ${i} ]] && continue - for j in "${i}"/*.so.* "${i}"/*.so ; do + for j in "${i}"/*.so.* "${i}"/*.so "${i}"/*.dylib ; do [[ ! -e ${j} ]] && continue if [[ -L ${j} ]] ; then linkdest=$(readlink "${j}") @@ -294,7 +294,9 @@ install_qa_check() { # http://bugs.gentoo.org/4411 abort="no" for a in "${ED}"usr/lib*/*.a ; do - s=${a%.a}.so + [[ ${CHOST} == *-darwin* ]] \ + && s=${a%.a}.dylib \ + || s=${a%.a}.so if [[ ! -e ${s} ]] ; then s=${s%usr/*}${s##*/usr/} if [[ -e ${s} ]] ; then