From: Fabian Groffen Date: Tue, 27 Feb 2007 20:05:07 +0000 (-0000) Subject: First shot at getting some checks for potentially wrong dynamic X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=bb72e4d0681dcf9796dbcbc3b6ab7e93bfe212cb;p=portage.git First shot at getting some checks for potentially wrong dynamic libraries on Darwin. svn path=/main/branches/prefix/; revision=6095 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 537964482..e0c62b7ab 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -238,6 +238,24 @@ install_qa_check() { unset INSTALLTOD fi + if kernel_Darwin ; 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 + # about it. Packages such as python do ship .so files on Darwin + # and make it work (ugly!). + for i in $(find ${ED%/} -name "*.so" -or -name "*.so.*") ; do + vecho -ne '\a\n' + eqawarn "QA Notice: Found a .so dynamic library on Darwin:" + eqawarn " ${i#${D}}" + done + for i in $(find ${ED%/} -name "*.dylib.*") ; do + vecho -ne '\a\n' + eqawarn "QA Notice: Found a wrongly named dynamic library on Darwin:" + eqawarn " ${i#${D}}" + done + fi + # this should help to ensure that all (most?) shared libraries are executable # and that all libtool scripts / static libraries are not executable for i in "${ED}"opt/*/lib{,32,64} \