summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-08-19 16:58:29 +0000
committerZac Medico <zmedico@gentoo.org>2007-08-19 16:58:29 +0000
commit9f65d9ff074032fc08132c2d37b5b2ef8ebbb2aa (patch)
treef3052e5285bde95a7c1d9f6962d669454a104bd3
parenteeecf5ab3f89167317f7c49fd530eb7e66a2e32a (diff)
downloadportage-9f65d9ff074032fc08132c2d37b5b2ef8ebbb2aa.tar.gz
portage-9f65d9ff074032fc08132c2d37b5b2ef8ebbb2aa.tar.bz2
portage-9f65d9ff074032fc08132c2d37b5b2ef8ebbb2aa.zip
filter out kernel modules from ELF QA checks #184443 (trunk r7645)
svn path=/main/branches/2.1.2/; revision=7650
-rwxr-xr-xbin/misc-functions.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 05a0f7939..55802daad 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -57,12 +57,12 @@ install_qa_check() {
if type -P scanelf > /dev/null && ! hasq binchecks ${RESTRICT}; then
local qa_var insecure_rpath=0 tmp_quiet=${PORTAGE_QUIET}
-
+
# display warnings when using stricter because we die afterwards
if has stricter ${FEATURES} ; then
unset PORTAGE_QUIET
fi
-
+
# Make sure we disallow insecure RUNPATH/RPATH's
# Don't want paths that point to the tree where the package was built
# (older, broken libtools would do this). Also check for null paths
@@ -91,7 +91,7 @@ install_qa_check() {
qa_var="QA_TEXTRELS_${ARCH/-/_}"
[[ -n ${!qa_var} ]] && QA_TEXTRELS=${!qa_var}
[[ -n ${QA_STRICT_TEXTRELS} ]] && QA_TEXTRELS=""
- export QA_TEXTRELS
+ export QA_TEXTRELS="${QA_TEXTRELS} lib*/modules/*.ko"
f=$(scanelf -qyRF '%t %p' "${D}" | grep -v 'usr/lib/debug/')
if [[ -n ${f} ]] ; then
scanelf -qyRF '%T %p' "${PORTAGE_BUILDDIR}"/ &> "${T}"/scanelf-textrel.log
@@ -131,7 +131,8 @@ install_qa_check() {
qa_var="QA_WX_LOAD_${ARCH/-/_}"
[[ -n ${!qa_var} ]] && QA_WX_LOAD=${!qa_var}
[[ -n ${QA_STRICT_WX_LOAD} ]] && QA_WX_LOAD=""
- export QA_EXECSTACK QA_WX_LOAD
+ export QA_EXECSTACK="${QA_EXECSTACK} lib*/modules/*.ko"
+ export QA_WX_LOAD="${QA_WX_LOAD} lib*/modules/*.ko"
f=$(scanelf -qyRF '%e %p' "${D}" | grep -v 'usr/lib/debug/')
;;
esac