summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-21 14:52:01 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-21 14:52:01 +0000
commit4509eb3cd38a44c296e97bbf8174fcd2620fa9a8 (patch)
treefe34c1418860d514896ec874454807e1710c6108
parent82f0c8c317c1d51a45589b708e476e7711a21da4 (diff)
downloadportage-4509eb3cd38a44c296e97bbf8174fcd2620fa9a8.tar.gz
portage-4509eb3cd38a44c296e97bbf8174fcd2620fa9a8.tar.bz2
portage-4509eb3cd38a44c296e97bbf8174fcd2620fa9a8.zip
Support QA_DT_HASH_${ARCH} and QA_PRESTRIPPED_${ARCH} (bug #271416).
svn path=/main/trunk/; revision=14114
-rwxr-xr-xbin/ebuild-helpers/prepstrip2
-rwxr-xr-xbin/ebuild.sh1
-rwxr-xr-xbin/misc-functions.sh2
3 files changed, 5 insertions, 0 deletions
diff --git a/bin/ebuild-helpers/prepstrip b/bin/ebuild-helpers/prepstrip
index 977ccec7f..98308ae90 100755
--- a/bin/ebuild-helpers/prepstrip
+++ b/bin/ebuild-helpers/prepstrip
@@ -100,6 +100,8 @@ save_elf_debug() {
if ! hasq binchecks ${RESTRICT} && \
! hasq strip ${RESTRICT} ; then
log=$T/scanelf-already-stripped.log
+ qa_var="QA_PRESTRIPPED_${ARCH/-/_}"
+ [[ -n ${!qa_var} ]] && QA_PRESTRIPPED="${!qa_var}"
scanelf -yqRBF '#k%F' -k '!.symtab' "$@" | sed -e "s#^$D##" > "$log"
if [[ -n $QA_PRESTRIPPED && -s $log && \
${QA_STRICT_PRESTRIPPED-unset} = unset ]] ; then
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 9f91cf92d..e45976642 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -1841,6 +1841,7 @@ _source_ebuild() {
# This needs to be exported since prepstrip is a separate shell script.
[[ -n $QA_PRESTRIPPED ]] && export QA_PRESTRIPPED
+ eval "[[ -n \$QA_PRESTRIPPED_$ARCH ]] && export QA_PRESTRIPPED_$ARCH"
}
if ! hasq "$EBUILD_PHASE" clean cleanrm ; then
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index 6ed4a7a42..473bde00f 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -167,6 +167,8 @@ install_qa_check() {
# Check for files built without respecting LDFLAGS
if [[ "${LDFLAGS}" == *--hash-style=gnu* ]] && [[ "${PN}" != *-bin ]] ; then
+ qa_var="QA_DT_HASH_${ARCH/-/_}"
+ eval "[[ -n \${!qa_var} ]] && QA_DT_HASH=(\"\${${qa_var}[@]}\")"
f=$(scanelf -qyRF '%k %p' -k .hash "${D}" | sed -e "s:\.hash ::")
if [[ -n ${f} ]] ; then
echo "${f}" > "${T}"/scanelf-ignored-LDFLAGS.log