Prevent false positives on AIX for .a files. On AIX these are pseudo "dynamic librar...
authorFabian Groffen <grobian@gentoo.org>
Tue, 15 Jul 2008 19:40:07 +0000 (19:40 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 15 Jul 2008 19:40:07 +0000 (19:40 -0000)
svn path=/main/branches/prefix/; revision=11059

bin/misc-functions.sh

index d14f51d62fc6567a26d9a9e7748430842bee8697..5e3644771e093e1101f934286e375a0a0891c08b 100644 (file)
@@ -345,7 +345,11 @@ install_qa_check() {
        [[ ${abort} == "yes" ]] && die "add those ldscripts"
 
        # Make sure people don't store libtool files or static libs in /lib
-       f=$(ls "${ED}"lib*/*.{a,la} 2>/dev/null)
+       # on AIX, "dynamic libs" have extention .a, so don't get false
+       # positives
+       [[ ${CHOST} == *-aix* ]] \
+               && f=$(ls "${ED}"lib*/*.la 2>/dev/null) \
+               || f=$(ls "${ED}"lib*/*.{a,la} 2>/dev/null)
        if [[ -n ${f} ]] ; then
                vecho -ne '\a\n'
                eqawarn "QA Notice: Excessive files found in the / partition"