don't match libs which have @loader_path in the middle
authorFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 12:56:33 +0000 (14:56 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 12:56:33 +0000 (14:56 +0200)
bin/misc-functions.sh

index 2396c1a499ba600c59a789926a89ae34a9eb6c69..0a900ab9a8d952fcdfd97c0fa0dc10c8d18b78d6 100644 (file)
@@ -917,7 +917,7 @@ install_qa_check_macho() {
                # this is ugly, paths with spaces won't work
                reevaluate=0
                for lib in ${needed//,/ } ; do
-                       if [[ ! -e ${lib} && ! -e ${D}${lib} && ${lib} != "@executable_path/"* && *${lib} != "@loader_path/"* ]] ; then
+                       if [[ ! -e ${lib} && ! -e ${D}${lib} && ${lib} != "@executable_path/"* && ${lib} != "@loader_path/"* ]] ; then
                                # try to "repair" this if possible, happens because of
                                # gen_usr_ldscript tactics
                                s=${lib%usr/*}${lib##*/usr/}