--- ebuild.sh.orig 2006-04-30 11:58:05.000000000 +0200 +++ ebuild.sh 2006-05-02 11:45:11.000000000 +0200 @@ -1058,8 +1058,24 @@ fi # TEXTREL's are baaaaaaaad - f=$(scanelf -qyRF '%t %p' "${D}") - if [[ -n ${f} ]] ; then + # Allow devs to mark things as ignorable ... e.g. things that are + # binary-only and upstream isn't cooperating (nvidia-glx) ... we + # allow ebuild authors to set QA_TEXTRELS_arch and QA_TEXTRELS ... + # the former overrides the latter ... regexes allowed ! :) + qa_var="QA_TEXTRELS_${ARCH}" + [[ -n ${!qa_var} ]] && QA_TEXTRELS=${!qa_var} + [[ -n ${QA_STRICT_TEXTRELS} ]] && QA_TEXTRELS="" + f="" + while read s; do + sf=( ${s} ) + for t in ${QA_TEXTRELS}; do + [[ ${sf[1]} =~ "^${t}$" ]] && continue 2 + done + f="${f}${s}\n" + done <