don't allow install_names referencing ${S}
authorFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 13:07:40 +0000 (15:07 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 13:07:40 +0000 (15:07 +0200)
bin/misc-functions.sh

index 337376684e3bb3e9694c15e65946905abcbc80a0..1dc0f0a2b42609a98beb5d84e800006602c1a1ce 100644 (file)
@@ -920,6 +920,9 @@ install_qa_check_macho() {
                        if [[ ${lib} == ${D}* ]] ; then
                                eqawarn "QA Notice: install_name references \${D}: ${lib} in ${obj}"
                                touch "${T}"/.install_name_check_failed
+                       elif [[ ${lib} == ${S}* ]] ; then
+                               eqawarn "QA Notice: install_name references \${S}: ${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