Lines 1058-1065
Link Here
|
1058 |
fi |
1058 |
fi |
1059 |
|
1059 |
|
1060 |
# TEXTREL's are baaaaaaaad |
1060 |
# TEXTREL's are baaaaaaaad |
1061 |
f=$(scanelf -qyRF '%t %p' "${D}") |
1061 |
# Allow devs to mark things as ignorable ... e.g. things that are |
1062 |
if [[ -n ${f} ]] ; then |
1062 |
# binary-only and upstream isn't cooperating (nvidia-glx) ... we |
|
|
1063 |
# allow ebuild authors to set QA_TEXTRELS_arch and QA_TEXTRELS ... |
1064 |
# the former overrides the latter ... regexes allowed ! :) |
1065 |
qa_var="QA_TEXTRELS_${ARCH}" |
1066 |
[[ -n ${!qa_var} ]] && QA_TEXTRELS=${!qa_var} |
1067 |
[[ -n ${QA_STRICT_TEXTRELS} ]] && QA_TEXTRELS="" |
1068 |
f=() |
1069 |
for s in $(scanelf -qyRF '%t %p' "${D}" | grep -v ' usr/lib/debug/'); do |
1070 |
[[ ${s} == "TEXTREL" ]] && continue |
1071 |
for t in ${QA_TEXTRELS}; do |
1072 |
[[ ${t} == ${s} ]] && continue 2 |
1073 |
done |
1074 |
f=( ${f} ${s} ) |
1075 |
done |
1076 |
if [[ -n ${f[@]} ]] ; then |
1063 |
echo -ne '\a\n' |
1077 |
echo -ne '\a\n' |
1064 |
echo "QA Notice: the following files contain runtime text relocations" |
1078 |
echo "QA Notice: the following files contain runtime text relocations" |
1065 |
echo " Text relocations require a lot of extra work to be preformed by the" |
1079 |
echo " Text relocations require a lot of extra work to be preformed by the" |
Lines 1067-1073
Link Here
|
1067 |
echo " and might not function properly on other architectures hppa for example." |
1081 |
echo " and might not function properly on other architectures hppa for example." |
1068 |
echo " If you are a programmer please take a closer look at this package and" |
1082 |
echo " If you are a programmer please take a closer look at this package and" |
1069 |
echo " consider writing a patch which addresses this problem." |
1083 |
echo " consider writing a patch which addresses this problem." |
1070 |
echo "${f}" |
1084 |
echo "${f[@]}" |
1071 |
echo -ne '\a\n' |
1085 |
echo -ne '\a\n' |
1072 |
[[ ${FEATURES/stricter} != "${FEATURES}" ]] \ |
1086 |
[[ ${FEATURES/stricter} != "${FEATURES}" ]] \ |
1073 |
&& die "Aborting due to textrels" |
1087 |
&& die "Aborting due to textrels" |