install_qa_check: more RESTRICT=binchecks
authorZac Medico <zmedico@gentoo.org>
Wed, 21 Dec 2011 19:36:31 +0000 (11:36 -0800)
committerZac Medico <zmedico@gentoo.org>
Wed, 21 Dec 2011 19:36:31 +0000 (11:36 -0800)
bin/misc-functions.sh

index b536a63e97015b9ede3a709889951be923a7837f..b6bd8ed36ffc374ceb4bafce3519a2c6bccf1995 100755 (executable)
@@ -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 ::")