diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2008-09-19 13:15:37 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2008-09-19 13:15:37 +0000 |
commit | 92bfdab278ff51923321f18c1c7c2b783c99c64b (patch) | |
tree | a4b7e6fbac1b56fdce9afb9c62bb92f4a89f3742 /dev-games | |
parent | Add fix for bug 235392 (diff) | |
download | gentoo-2-92bfdab278ff51923321f18c1c7c2b783c99c64b.tar.gz gentoo-2-92bfdab278ff51923321f18c1c7c2b783c99c64b.tar.bz2 gentoo-2-92bfdab278ff51923321f18c1c7c2b783c99c64b.zip |
Fix the test phase, unblocking Bug #217505
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/simgear/ChangeLog | 6 | ||||
-rw-r--r-- | dev-games/simgear/files/simgear-1.0.0-test.patch | 22 | ||||
-rw-r--r-- | dev-games/simgear/simgear-1.0.0.ebuild | 10 |
3 files changed, 36 insertions, 2 deletions
diff --git a/dev-games/simgear/ChangeLog b/dev-games/simgear/ChangeLog index d5f1de82bf7e..a432b5aa7c56 100644 --- a/dev-games/simgear/ChangeLog +++ b/dev-games/simgear/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-games/simgear # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/simgear/ChangeLog,v 1.33 2008/09/19 03:45:21 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/simgear/ChangeLog,v 1.34 2008/09/19 13:15:37 tupone Exp $ + + 19 Sep 2008; Tupone Alfredo <tupone@gentoo.org> + +files/simgear-1.0.0-test.patch, simgear-1.0.0.ebuild: + Fix the test phase, unblocking Bug #217505 19 Sep 2008; Tupone Alfredo <tupone@gentoo.org> +files/simgear-0.3.10-gcc43.patch, simgear-0.3.10.ebuild: diff --git a/dev-games/simgear/files/simgear-1.0.0-test.patch b/dev-games/simgear/files/simgear-1.0.0-test.patch new file mode 100644 index 000000000000..dffbb4678423 --- /dev/null +++ b/dev-games/simgear/files/simgear-1.0.0-test.patch @@ -0,0 +1,22 @@ +--- simgear/math/SGMathTest.cxx.old 2008-09-19 14:41:31.000000000 +0200 ++++ simgear/math/SGMathTest.cxx 2008-09-19 14:43:09.000000000 +0200 +@@ -200,7 +200,7 @@ + GeodesyTest(void) + { + // We know that the values are on the order of 1 +- double epsDeg = 10*SGLimits<double>::epsilon(); ++ double epsDeg = SGLimits<double>::epsilon(); + // For the altitude values we need to tolerate relative errors in the order + // of the radius + double epsM = 1e6*SGLimits<double>::epsilon(); +@@ -215,8 +215,8 @@ + // Test the conversion routines to cartesian coordinates + cart0 = SGVec3<double>::fromGeod(geod0); + geod1 = SGGeod::fromCart(cart0); +- if (epsDeg < fabs(geod0.getLongitudeDeg() - geod1.getLongitudeDeg()) || +- epsDeg < fabs(geod0.getLatitudeDeg() - geod1.getLatitudeDeg()) || ++ if (epsDeg*30.0*2.0 < fabs(geod0.getLongitudeDeg() - geod1.getLongitudeDeg()) || ++ epsDeg*20.0*2.0 < fabs(geod0.getLatitudeDeg() - geod1.getLatitudeDeg()) || + epsM < fabs(geod0.getElevationM() - geod1.getElevationM())) + return false; + diff --git a/dev-games/simgear/simgear-1.0.0.ebuild b/dev-games/simgear/simgear-1.0.0.ebuild index bbe74a8dfc85..0b3dc0572c3a 100644 --- a/dev-games/simgear/simgear-1.0.0.ebuild +++ b/dev-games/simgear/simgear-1.0.0.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-games/simgear/simgear-1.0.0.ebuild,v 1.2 2008/09/07 13:20:00 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-games/simgear/simgear-1.0.0.ebuild,v 1.3 2008/09/19 13:15:37 tupone Exp $ + +inherit eutils MY_P="SimGear-${PV/_/-}" DESCRIPTION="Development library for simulation games" @@ -18,6 +20,12 @@ DEPEND=">=media-libs/plib-1.8.4 S=${WORKDIR}/${MY_P} +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-test.patch +} + src_compile() { econf || die emake -j1 || die "emake failed" |