Strip EPREFIX in RESTRICT=binchecks QA Notice.
authorZac Medico <zmedico@gentoo.org>
Tue, 8 May 2012 15:42:12 +0000 (08:42 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 May 2012 15:42:12 +0000 (08:42 -0700)
bin/misc-functions.sh

index ab070aa8ebbe7ad351a208fc7d5192f82cd6897a..564af856f8476ebbc3ccfa5c01c9d99f8a6bf4a4 100755 (executable)
@@ -150,7 +150,7 @@ prepcompress() {
 install_qa_check() {
        local f i qa_var x
        [[ " ${FEATURES} " == *" force-prefix "* ]] || \
-               case "$EAPI" in 0|1|2) local ED=${D} ;; esac
+               case "$EAPI" in 0|1|2) local EPREFIX= ED=${D} ;; esac
 
        cd "${ED}" || die "cd failed"
 
@@ -534,7 +534,7 @@ install_qa_check() {
                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)"
+                       eqawarn "$(while read -r x; do x=${x#*;} ; x=${x%%;*} ; echo "${x#${EPREFIX}}" ; done < "${PORTAGE_BUILDDIR}"/build-info/NEEDED.ELF.2)"
                fi
        fi