commit:     dc15981d63addb5cf8e7c942fec6590f018a32f8
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 26 12:39:38 2014 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Sat Jul 26 12:39:38 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=dc15981d

[qt5-build.eclass] Return proper exit status from qt5_foreach_target_subdir.

Fix/workaround for bug 517976.

---
 eclass/qt5-build.eclass | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 00456df..28b82d9 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -411,7 +411,7 @@ qt5_prepare_env() {
 qt5_foreach_target_subdir() {
        [[ -z ${QT5_TARGET_SUBDIRS[@]} ]] && QT5_TARGET_SUBDIRS=("")
 
-       local subdir
+       local ret=0 subdir=
        for subdir in "${QT5_TARGET_SUBDIRS[@]}"; do
                if [[ ${EBUILD_PHASE} == test ]]; then
                        subdir=tests/auto${subdir#src}
@@ -423,9 +423,12 @@ qt5_foreach_target_subdir() {
 
                einfo "Running $* ${subdir:+in ${subdir}}"
                "$@"
+               ((ret+=$?))
 
                popd >/dev/null || die
        done
+
+       return ${ret}
 }
 
 # @FUNCTION: qt5_symlink_tools_to_build_dir

Reply via email to