summaryrefslogtreecommitdiff
path: root/packages/gmp/5.0.1/100-fix-tests-ABI-long-long.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-05-20 04:58:46 (GMT)
committerAlexey Neyman <stilor@att.net>2017-07-08 17:57:56 (GMT)
commite7deac3aad394325f9e6fc6fda41d34ec94a59e0 (patch)
tree6ad88362f0bfa8385a91eb494009a4646aeb74b6 /packages/gmp/5.0.1/100-fix-tests-ABI-long-long.patch
parentb9af225f58e45c7fae7eb9d3689fe939243e7578 (diff)
Switch comp.libs/tools and debug to new framework.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/gmp/5.0.1/100-fix-tests-ABI-long-long.patch')
-rw-r--r--packages/gmp/5.0.1/100-fix-tests-ABI-long-long.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/gmp/5.0.1/100-fix-tests-ABI-long-long.patch b/packages/gmp/5.0.1/100-fix-tests-ABI-long-long.patch
new file mode 100644
index 0000000..b6e303e
--- /dev/null
+++ b/packages/gmp/5.0.1/100-fix-tests-ABI-long-long.patch
@@ -0,0 +1,35 @@
+From: http://gmplib.org:8000/gmp-5.0/raw-rev/794410151f5f
+
+Tweaked to remove the hunk in the Changelog, as it did not apply cleanly
+( and who needs Changelogs? ;-) )
+
+# 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.
+
+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;
+