summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-05-05 00:32:34 -0700
committerZac Medico <zmedico@gentoo.org>2012-05-05 00:32:34 -0700
commit72314d2e24aa96af614b052b8b29e6d02d37a641 (patch)
tree44307d33189c35f41861f8e97b302a53b6f92dd0
parent61571e4e8ee3f4f999782c542b4be84d8be8c729 (diff)
downloadportage-72314d2e24aa96af614b052b8b29e6d02d37a641.tar.gz
portage-72314d2e24aa96af614b052b8b29e6d02d37a641.tar.bz2
portage-72314d2e24aa96af614b052b8b29e6d02d37a641.zip
QA Notice for RESTRICT=binchecks + ELF files
-rwxr-xr-xbin/misc-functions.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 1098f1802..4a74984b2 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -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}:/:")