From ba0c6747d28b0bc31ab4d93833b46d4d845b4875 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 15 Jul 2008 19:40:07 +0000 Subject: [PATCH] Prevent false positives on AIX for .a files. On AIX these are pseudo "dynamic libraries". svn path=/main/branches/prefix/; revision=11059 --- bin/misc-functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index d14f51d62..5e3644771 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -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" -- 2.26.2