1 |
commit: a192ba876959823534ebfbe2fcb7989a02f68810 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 21 19:36:31 2011 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 21 19:36:31 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a192ba87 |
7 |
|
8 |
install_qa_check: more RESTRICT=binchecks |
9 |
|
10 |
--- |
11 |
bin/misc-functions.sh | 6 ++++-- |
12 |
1 files changed, 4 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh |
15 |
index b536a63..b6bd8ed 100755 |
16 |
--- a/bin/misc-functions.sh |
17 |
+++ b/bin/misc-functions.sh |
18 |
@@ -309,7 +309,8 @@ install_qa_check() { |
19 |
fi |
20 |
|
21 |
# Check for files built without respecting CFLAGS |
22 |
- if [[ "${CFLAGS}" == *-frecord-gcc-switches* ]] && [[ "${PN}" != *-bin ]] ; then |
23 |
+ if [[ "${CFLAGS}" == *-frecord-gcc-switches* ]] && \ |
24 |
+ ! has binchecks ${RESTRICT} ; then |
25 |
qa_var="QA_DT_SWITCHES_${ARCH/-/_}" |
26 |
eval "[[ -n \${!qa_var} ]] && QA_DT_SWITCHES=(\"\${${qa_var}[@]}\")" |
27 |
f=$(scanelf -qyRF '%k %p' -k \!.GCC.command.line "${ED}" | sed -e "s:\!.GCC.command.line ::") |
28 |
@@ -349,7 +350,8 @@ install_qa_check() { |
29 |
fi |
30 |
|
31 |
# Check for files built without respecting LDFLAGS |
32 |
- if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && [[ "${PN}" != *-bin ]] ; then |
33 |
+ if [[ "${LDFLAGS}" == *,--hash-style=gnu* ]] && \ |
34 |
+ ! has binchecks ${RESTRICT} ; then |
35 |
qa_var="QA_DT_HASH_${ARCH/-/_}" |
36 |
eval "[[ -n \${!qa_var} ]] && QA_DT_HASH=(\"\${${qa_var}[@]}\")" |
37 |
f=$(scanelf -qyRF '%k %p' -k .hash "${ED}" | sed -e "s:\.hash ::") |