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

Collapse All | Expand All

(-)prepstrip.orig (-1 / +15 lines)
Lines 44-50 Link Here
44
	fi
44
	fi
45
}
45
}
46
46
47
for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find "${y}" -type f -name '*.a' -print0 ; done); do
47
# The existance of the section .symtab tells us that a binary is stripped.
48
# We want to log already stripped binaries, as this may be a QA violation.
49
# They prevent us from getting the splitdebug data.
50
f="$(scanelf -yqRBF '#k%F' -k '!.symtab' "$@")"
51
if [[ -n "${f}" ]] ; then
52
			echo -ne '\a\n'
53
			echo "QA Notice: the following files were already stripped by"
54
			echo " package build system. This may hinder debugging."
55
			echo "${f}"
56
			echo -ne '\a\n'
57
			echo "${f}" > "${T}"/scanelf-already-stripped.log
58
fi
59
60
# Now we look for unstripped binaries.
61
for x in $(scanelf -yqRBF '#k%F' -k '.symtab' "$@") $(for y in "$@"; do find "${y}" -type f -name '*.a' -print0 ; done); do
48
	if [[ ${banner} -eq 1 ]] ; then
62
	if [[ ${banner} -eq 1 ]] ; then
49
		echo "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
63
		echo "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
50
		banner=0
64
		banner=0

Return to bug 133420