diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-08-30 17:58:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-08-30 17:58:19 +0000 |
commit | 7671292e2740369785c4adc8aa0962b4b44a8a2b (patch) | |
tree | df85ae1fa7dc0b374b1246d7a87388db92ebddbe /dev-libs/gmp | |
parent | Remove Debian init script (the Gentoo init script is chipcardd4). (diff) | |
download | gentoo-2-7671292e2740369785c4adc8aa0962b4b44a8a2b.tar.gz gentoo-2-7671292e2740369785c4adc8aa0962b4b44a8a2b.tar.bz2 gentoo-2-7671292e2740369785c4adc8aa0962b4b44a8a2b.zip |
Add test fix from upstream.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/gmp')
-rw-r--r-- | dev-libs/gmp/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/gmp/files/gmp-5.0.1-perfpow-test.patch | 36 | ||||
-rw-r--r-- | dev-libs/gmp/gmp-5.0.1.ebuild | 3 |
3 files changed, 43 insertions, 2 deletions
diff --git a/dev-libs/gmp/ChangeLog b/dev-libs/gmp/ChangeLog index 62ab174bef23..0c5afda264aa 100644 --- a/dev-libs/gmp/ChangeLog +++ b/dev-libs/gmp/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/gmp # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.136 2010/07/27 02:33:18 zorry Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.137 2010/08/30 17:58:19 vapier Exp $ + + 30 Aug 2010; Mike Frysinger <vapier@gentoo.org> gmp-5.0.1.ebuild, + +files/gmp-5.0.1-perfpow-test.patch: + Add test fix from upstream. 27 Jul 2010; Magnus Granberg <zorry@gentoo.org> gmp-5.0.1.ebuild, +files/gmp-5.0.1-x86-nopie-tests.patch: diff --git a/dev-libs/gmp/files/gmp-5.0.1-perfpow-test.patch b/dev-libs/gmp/files/gmp-5.0.1-perfpow-test.patch new file mode 100644 index 000000000000..d1b8706082f0 --- /dev/null +++ b/dev-libs/gmp/files/gmp-5.0.1-perfpow-test.patch @@ -0,0 +1,36 @@ + +# HG changeset patch +# User Torbjorn Granlund <tege@gmplib.org> +# Date 1267122532 -3600 +# Node ID 794410151f5f966bcb5c3489b6441614990efe7c +# Parent 948660e2e56d9cfaae035082b8fd473985505fb6 +Fix a test case to work for long long limbs. + +2010-02-25 Torbjorn Granlund <tege@gmplib.org> + + * tests/mpz/t-perfpow.c (check_random): Use mp_limb_t type for limb + variables. + +diff -r 948660e2e56d -r 794410151f5f tests/mpz/t-perfpow.c +--- a/tests/mpz/t-perfpow.c Thu Feb 25 16:08:21 2010 +0100 ++++ b/tests/mpz/t-perfpow.c Thu Feb 25 19:28:52 2010 +0100 +@@ -2,7 +2,7 @@ + + Contributed to the GNU project by Torbjorn Granlund and Martin Boij. + +-Copyright 2008, 2009 Free Software Foundation, Inc. ++Copyright 2008, 2009, 2010 Free Software Foundation, Inc. + + This file is part of the GNU MP Library. + +@@ -109,7 +109,8 @@ + { + mpz_t n, np, temp, primes[NRP]; + int i, j, k, unique, destroy, res; +- unsigned long int nrprimes, primebits, g, exp[NRP], e; ++ unsigned long int nrprimes, primebits; ++ mp_limb_t g, exp[NRP], e; + gmp_randstate_ptr rands; + + rands = RANDS; + diff --git a/dev-libs/gmp/gmp-5.0.1.ebuild b/dev-libs/gmp/gmp-5.0.1.ebuild index 5e092832b44e..6709126a9fd8 100644 --- a/dev-libs/gmp/gmp-5.0.1.ebuild +++ b/dev-libs/gmp/gmp-5.0.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.0.1.ebuild,v 1.5 2010/07/27 02:33:18 zorry Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.0.1.ebuild,v 1.6 2010/08/30 17:58:19 vapier Exp $ inherit flag-o-matic eutils libtool flag-o-matic toolchain-funcs @@ -19,6 +19,7 @@ src_unpack() { cd "${S}" [[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV} epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch + epatch "${FILESDIR}"/${P}-perfpow-test.patch epatch "${FILESDIR}"/${PN}-5.0.0-s390.diff # disable -fPIE -pie in the tests for x86 #236054 |