Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 131779 | Differences between
and this patch

Collapse All | Expand All

(-)bin/misc-functions.sh.orig (-9 / +9 lines)
Lines 88-101 Link Here
88
		qa_var="QA_TEXTRELS_${ARCH}"
88
		qa_var="QA_TEXTRELS_${ARCH}"
89
		[[ -n ${!qa_var} ]] && QA_TEXTRELS=${!qa_var}
89
		[[ -n ${!qa_var} ]] && QA_TEXTRELS=${!qa_var}
90
		[[ -n ${QA_STRICT_TEXTRELS} ]] && QA_TEXTRELS=""
90
		[[ -n ${QA_STRICT_TEXTRELS} ]] && QA_TEXTRELS=""
91
		f=$(scanelf -qyRF '%t %p' "${D}" | grep -v ' usr/lib/debug/' | \
91
		f=()
92
			gawk '
92
		for s in $(scanelf -qyRF '%t %p' "${D}" | grep -v ' usr/lib/debug/'); do
93
			BEGIN { split("'"${QA_TEXTRELS}"'", ignore); }
93
			[[ ${s} == "TEXTREL" ]] && continue
94
			{	for (idx in ignore)
94
			for t in ${QA_TEXTRELS}; do
95
					if ($NF ~ "^"ignore[idx]"$")
95
				[[ ${t} == ${s} ]] && continue 2
96
					next;
96
			done
97
				print;
97
			f=( ${f} ${s} )
98
			}')
98
		done
99
		if [[ -n ${f} ]] ; then
99
		if [[ -n ${f} ]] ; then
100
			scanelf -qyRF '%T %p' "${PORTAGE_BUILDDIR}"/ &> "${T}"/scanelf-textrel.log
100
			scanelf -qyRF '%T %p' "${PORTAGE_BUILDDIR}"/ &> "${T}"/scanelf-textrel.log
101
			echo -ne '\a\n'
101
			echo -ne '\a\n'
Lines 107-113 Link Here
107
			echo " For more information, see http://hardened.gentoo.org/pic-fix-guide.xml"
107
			echo " For more information, see http://hardened.gentoo.org/pic-fix-guide.xml"
108
			echo " Please include this file in your report:"
108
			echo " Please include this file in your report:"
109
			echo " ${T}/scanelf-textrel.log"
109
			echo " ${T}/scanelf-textrel.log"
110
			echo "${f}"
110
			echo "${f[@]}"
111
			echo -ne '\a\n'
111
			echo -ne '\a\n'
112
			die_msg="${die_msg} textrels,"
112
			die_msg="${die_msg} textrels,"
113
			sleep 1
113
			sleep 1

Return to bug 131779