diff options
author | 2013-05-26 16:14:48 +0000 | |
---|---|---|
committer | 2013-05-26 16:14:48 +0000 | |
commit | 3fe5fc011904cc62d95a7382db3e93416cb79ae2 (patch) | |
tree | db856b9b833cb78297f6d2690c1de95d21e39245 /dev-libs/gmp/gmp-5.1.0.ebuild | |
parent | drop nptl from use.mask as some arches are starting to support it (diff) | |
download | gentoo-2-3fe5fc011904cc62d95a7382db3e93416cb79ae2.tar.gz gentoo-2-3fe5fc011904cc62d95a7382db3e93416cb79ae2.tar.bz2 gentoo-2-3fe5fc011904cc62d95a7382db3e93416cb79ae2.zip |
If USE=pgo tuning fails, ignore the results rather than aborting the build #456346 by Justin Lecher.
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
Diffstat (limited to 'dev-libs/gmp/gmp-5.1.0.ebuild')
-rw-r--r-- | dev-libs/gmp/gmp-5.1.0.ebuild | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/dev-libs/gmp/gmp-5.1.0.ebuild b/dev-libs/gmp/gmp-5.1.0.ebuild index 79705b0eed1c..53bd77e77868 100644 --- a/dev-libs/gmp/gmp-5.1.0.ebuild +++ b/dev-libs/gmp/gmp-5.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.1.0.ebuild,v 1.6 2013/04/21 02:21:21 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.1.0.ebuild,v 1.7 2013/05/26 16:14:48 vapier Exp $ inherit flag-o-matic eutils libtool unpacker toolchain-funcs @@ -75,10 +75,13 @@ src_compile() { if use pgo ; then emake -j1 -C tune tuneup || die - rm gmp-mparam.h || die - ./tune/tuneup | tee gmp-mparam.h - emake clean || die - emake || die + ebegin "Trying to generate tuned data" + ./tune/tuneup | tee gmp.mparam.h.new + if eend $(( 0 + ${PIPESTATUS[*]/#/+} )) ; then + mv gmp-mparam.h.new gmp-mparam.h + emake clean || die + emake || die + fi fi } |