[libarchive] spec: better workaround for ppc
Pavel Raiskup
praiskup at fedoraproject.org
Mon Jul 22 14:34:47 UTC 2013
commit 3518c1008996478c43302e5d8aa3a10377be5ac5
Author: Pavel Raiskup <praiskup at redhat.com>
Date: Mon Jul 22 16:32:47 2013 +0200
spec: better workaround for ppc
_None_ of %check phase commands may fail.
Version: 3.1.2-5
libarchive.spec | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/libarchive.spec b/libarchive.spec
index db50724..861ae85 100644
--- a/libarchive.spec
+++ b/libarchive.spec
@@ -113,14 +113,16 @@ run_testsuite()
fi
}
-run_testsuite
+# On a ppc/ppc64 is some race condition causing 'make check' fail on ppc
+# when both 32 and 64 builds are done in parallel on the same machine in
+# koji. Try to run once again if failed.
%ifarch ppc
- # On a ppc/ppc64 is some race condition causing 'make check' fail on ppc
- # when both 32 and 64 builds are done in parallel on the same machine in
- # koji. Try to run once again if failed.
- test $? -ne 0 && run_testsuite
+run_testsuite || run_testsuite
+%else
+run_testsuite
%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
More information about the scm-commits
mailing list