From: Zac Medico Date: Wed, 21 Dec 2011 19:36:31 +0000 (-0800) Subject: install_qa_check: more RESTRICT=binchecks X-Git-Tag: v2.2.0_alpha82~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a192ba876959823534ebfbe2fcb7989a02f68810;p=portage.git install_qa_check: more RESTRICT=binchecks --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index b536a63e9..b6bd8ed36 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -309,7 +309,8 @@ install_qa_check() { fi # Check for files built without respecting CFLAGS - if [[ "${CFLAGS}" == *-frecord-gcc-switches* ]] && [[ "${PN}" != *-bin ]] ; then + if [[ "${CFLAGS}" == *-frecord-gcc-switches* ]] && \ + ! has binchecks ${RESTRICT} ; then qa_var="QA_DT_SWITCHES_${ARCH/-/_}" eval "[[ -n \${!qa_var} ]] && QA_DT_SWITCHES=(\"\${${qa_var}[@]}\")" f=$(scanelf -qyRF '%k %p' -k \!.GCC.command.line "${ED}" | sed -e "s:\!.GCC.command.line ::") @@ -349,7 +350,8 @@ install_qa_check() { fi # Check for files built without respecting LDFLAGS - if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && [[ "${PN}" != *-bin ]] ; then + if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && \ + ! has binchecks ${RESTRICT} ; then qa_var="QA_DT_HASH_${ARCH/-/_}" eval "[[ -n \${!qa_var} ]] && QA_DT_HASH=(\"\${${qa_var}[@]}\")" f=$(scanelf -qyRF '%k %p' -k .hash "${ED}" | sed -e "s:\.hash ::")