patches/gmp/5.0.1/100-fix-tests-ABI-long-long.patch
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
parent 1873 4477403726db
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 From: http://gmplib.org:8000/gmp-5.0/raw-rev/794410151f5f
     2 
     3 Tweaked to remove the hunk in the Changelog, as it did not apply cleanly
     4 ( and who needs Changelogs? ;-) )
     5 
     6 # HG changeset patch
     7 # User Torbjorn Granlund <tege@gmplib.org>
     8 # Date 1267122532 -3600
     9 # Node ID 794410151f5f966bcb5c3489b6441614990efe7c
    10 # Parent  948660e2e56d9cfaae035082b8fd473985505fb6
    11 Fix a test case to work for long long limbs.
    12 
    13 diff -r 948660e2e56d -r 794410151f5f tests/mpz/t-perfpow.c
    14 --- a/tests/mpz/t-perfpow.c	Thu Feb 25 16:08:21 2010 +0100
    15 +++ b/tests/mpz/t-perfpow.c	Thu Feb 25 19:28:52 2010 +0100
    16 @@ -2,7 +2,7 @@
    17  
    18     Contributed to the GNU project by Torbjorn Granlund and Martin Boij.
    19  
    20 -Copyright 2008, 2009 Free Software Foundation, Inc.
    21 +Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
    22  
    23  This file is part of the GNU MP Library.
    24  
    25 @@ -109,7 +109,8 @@
    26  {
    27    mpz_t n, np, temp, primes[NRP];
    28    int i, j, k, unique, destroy, res;
    29 -  unsigned long int nrprimes, primebits, g, exp[NRP], e;
    30 +  unsigned long int nrprimes, primebits;
    31 +  mp_limb_t g, exp[NRP], e;
    32    gmp_randstate_ptr rands;
    33  
    34    rands = RANDS;
    35