don't allow install_names referencing ${D}, even though they might exist
authorFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 13:00:58 +0000 (15:00 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 13:00:58 +0000 (15:00 +0200)
bin/misc-functions.sh

index 0a900ab9a8d952fcdfd97c0fa0dc10c8d18b78d6..337376684e3bb3e9694c15e65946905abcbc80a0 100644 (file)
@@ -917,7 +917,10 @@ 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 [[ ${lib} == ${D}* ]] ; then
+                               eqawarn "QA Notice: install_name references \${D}: ${lib} in ${obj}"
+                               touch "${T}"/.install_name_check_failed
+                       elif [[ ! -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/}