From 49eefa4d033c3b9e0f6cae564f26bf04d6f09c16 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 24 Oct 2010 15:00:58 +0200 Subject: [PATCH] don't allow install_names referencing ${D}, even though they might exist --- bin/misc-functions.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 0a900ab9a..337376684 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -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/} -- 2.26.2