diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-12-21 11:36:31 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-12-21 11:36:31 -0800 |
commit | a192ba876959823534ebfbe2fcb7989a02f68810 (patch) | |
tree | 5542f582e68fbf304bfd048c899e525dfb38df0e | |
parent | 4e3a6eb60d48edddbe6a279f02b0cfc561394841 (diff) | |
download | portage-a192ba876959823534ebfbe2fcb7989a02f68810.tar.gz portage-a192ba876959823534ebfbe2fcb7989a02f68810.tar.bz2 portage-a192ba876959823534ebfbe2fcb7989a02f68810.zip |
install_qa_check: more RESTRICT=binchecks
-rwxr-xr-x | bin/misc-functions.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 ::") |