Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: bin/
Date: Sat, 24 Dec 2011 11:53:18
Message-Id: 84260c2aadbe3fe416d0e2fb428cc1ea07404930.zmedico@gentoo
1 commit: 84260c2aadbe3fe416d0e2fb428cc1ea07404930
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 24 11:52:56 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 24 11:52:56 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=84260c2a
7
8 Tweak CFLAGS scanelf loop.
9
10 ---
11 bin/misc-functions.sh | 24 +++++++++++++-----------
12 1 files changed, 13 insertions(+), 11 deletions(-)
13
14 diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
15 index bb67432..5a726b3 100755
16 --- a/bin/misc-functions.sh
17 +++ b/bin/misc-functions.sh
18 @@ -199,20 +199,22 @@ install_qa_check() {
19 [[ "${CXXFLAGS}" == *-frecord-gcc-switches* ]] && \
20 [[ "${FFLAGS}" == *-frecord-gcc-switches* ]] && \
21 [[ "${FCFLAGS}" == *-frecord-gcc-switches* ]] ; then
22 - f=$(scanelf -qyRF '%k %p' -k \!.GCC.command.line "${ED}" | sed -e "s:\!.GCC.command.line ::")
23 - if [[ -n ${f} ]] ; then
24 + rm -f "${T}"/scanelf-ignored-CFLAGS.log
25 + for x in $(scanelf -qyRF '%k %p' -k \!.GCC.command.line "${ED}" | \
26 + sed -e "s:\!.GCC.command.line ::") ; do
27 # Separate out file types that are known to support
28 # .GCC.command.line sections, using the `file` command
29 # similar to how prepstrip uses it.
30 - > "${T}"/scanelf-ignored-CFLAGS.log
31 - for x in $f ; do
32 - f=$(file "${x}") || continue
33 - [[ -z ${f} ]] && continue
34 - if [[ ${f} == *"SB executable"* ||
35 - ${f} == *"SB shared object"* ]] ; then
36 - echo "${x}" >> "${T}"/scanelf-ignored-CFLAGS.log
37 - fi
38 - done
39 + f=$(file "${x}") || continue
40 + [[ -z ${f} ]] && continue
41 + if [[ ${f} == *"SB executable"* ||
42 + ${f} == *"SB shared object"* ]] ; then
43 + echo "${x}" >> "${T}"/scanelf-ignored-CFLAGS.log
44 + fi
45 + done
46 +
47 + if [[ -f "${T}"/scanelf-ignored-CFLAGS.log ]] ; then
48 +
49 if [ "${QA_STRICT_FLAGS_IGNORED-unset}" = unset ] ; then
50 for x in "${QA_FLAGS_IGNORED[@]}" ; do
51 sed -e "s#^${x#/}\$##" -i "${T}"/scanelf-ignored-CFLAGS.log