QA Notice for RESTRICT=binchecks + ELF files
authorZac Medico <zmedico@gentoo.org>
Sat, 5 May 2012 07:32:34 +0000 (00:32 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 5 May 2012 07:32:34 +0000 (00:32 -0700)
bin/misc-functions.sh

index 1098f180255cd1ad4960038ef9cfe537360c44da..4a74984b244dbfba55bf49f99b520a72660f6d72 100755 (executable)
@@ -551,6 +551,12 @@ install_qa_check() {
                [ -n "${QA_SONAME_NO_SYMLINK}" ] && \
                        echo "${QA_SONAME_NO_SYMLINK}" > \
                        "${PORTAGE_BUILDDIR}"/build-info/QA_SONAME_NO_SYMLINK
+
+               if has binchecks ${RESTRICT} && \
+                       [ -s "${PORTAGE_BUILDDIR}/build-info/NEEDED.ELF.2" ] ; then
+                       eqawarn "QA Notice: RESTRICT=binchecks prevented checks on these ELF files:"
+                       eqawarn "$(while read -r x; do x=${x#*;} ; echo ${x%%;*} ; done < "${PORTAGE_BUILDDIR}"/build-info/NEEDED.ELF.2)"
+               fi
        fi
 
        local unsafe_files=$(find "${ED}" -type f '(' -perm -2002 -o -perm -4002 ')' | sed -e "s:^${ED}:/:")