diff -r d4c104308548 SPKG.txt
|
a
|
b
|
|
| 83 | 83 | |
| 84 | 84 | == Changelog == |
| 85 | 85 | |
| 86 | | === pari-2.4.3.svn-12577.p5 (Leif Leonhardy, September 5th, 2010) === |
| | 86 | === pari-2.4.3.svn-12577.p5 (Leif Leonhardy, Jeroen Demeyer, September 5th, 2010) === |
| 87 | 87 | * Added patches to: |
| 88 | 88 | - config/get_config_options: |
| 89 | 89 | * Make invalid arguments to "--graphic" a "Configure" error |
| … |
… |
|
| 123 | 123 | - Some clean-up. |
| 124 | 124 | * Slight corrections to SPKG.txt. |
| 125 | 125 | * Updated patches/README.txt, some cosmetic changes. |
| | 126 | * Remove patch for config/Makefile.SH and add upstream fix instead |
| | 127 | in spkg-make. |
| | 128 | * Add upstream fix for src/test/tune.c which should fix tuning. |
| | 129 | * Add -O0 to CFLAGS in spkg-make to speed up compiling (the output of |
| | 130 | the compiling is not used anyway). |
| 126 | 131 | |
| 127 | 132 | === pari-2.4.3.svn-12577.p4 (Jeroen Demeyer, August 22, 2010) === |
| 128 | 133 | * Change "test -e" to "test -f" for Solaris. |
diff -r d4c104308548 patches/Makefile.SH.patch
|
+
|
-
|
|
| 1 | | Index: config/Makefile.SH |
| 2 | | =================================================================== |
| 3 | | --- config/Makefile.SH (revision 12583) |
| 4 | | +++ config/Makefile.SH (working copy) |
| 5 | | @@ -599,9 +599,9 @@ |
| 6 | | EOT |
| 7 | | fi |
| 8 | | |
| 9 | | -if test -e $TOP/.svn/entries; then |
| 10 | | +if test -f "$TOP/.svn/entries"; then |
| 11 | | vcfile="../.svn/entries" |
| 12 | | -else if test -e $TOP/.git/index; then |
| 13 | | +else if test -f "$TOP/.git/index"; then |
| 14 | | vcfile="../.git/index" |
| 15 | | fi |
| 16 | | fi |
diff -r d4c104308548 patches/README.txt
|
a
|
b
|
|
| 7 | 7 | ====================================================================== |
| 8 | 8 | |
| 9 | 9 | Configuration files: |
| 10 | | * Configure: Use "#!/usr/bin/env bash" instead of "#!/bin/sh". |
| | 10 | * Configure: Use "#!/usr/bin/env bash" instead of "#!/bin/sh". Note |
| | 11 | that this is not strictly necessary, but it hopefully makes the |
| | 12 | script less system-dependent. Since Sage assumes the existence of |
| | 13 | bash anyway, it doesn't hurt either. -- Jeroen Demeyer |
| 11 | 14 | * config/get_ld: cwitty: Disable -rpath. |
| 12 | 15 | * config/get_tests: John Cremona: Disable testing of ellglobalred in |
| 13 | 16 | "make test-all" in spkg-check, since it requires |
| 14 | 17 | the elldata database which we do not include. |
| 15 | 18 | * config/get_dlcflags: Add -fno-common to DLCFLAGS on Darwin. |
| 16 | | * config/Makefile.SH: Change "test -e" to "test -f" for Solaris. |
| 17 | 19 | * config/get_config_options: Catch invalid arguments tp "--graphic". |
| 18 | 20 | * config/get_fltk; Add libstdc++; check presence of FLTK headers, too. |
| 19 | 21 | * config/get_X11: Search X11 library in */lib64/*, too (not just */lib/*). |
| … |
… |
|
| 63 | 65 | * src/headers/paripriv.h: Used to need a dummy variable changed from B0 |
| 64 | 66 | to N; now fixed upstream. NB: There's another patch on this file still |
| 65 | 67 | in place! |
| 66 | | |
| | 68 | * config/Makefile.SH: Change "test -e" to "test -f" for Solaris. Fixed |
| | 69 | upstream |
diff -r d4c104308548 patches/mp.c.patch
|
a
|
b
|
|
| 15 | 15 | /* EXACT INTEGER DIVISION */ |
| 16 | 16 | |
| 17 | 17 | -#if 1 /* use undocumented GMP interface */ |
| 18 | | +#ifndef PARI_DONT_USE_GMP_INTERNALS /* use "undocumented" GMP interface: */ |
| | 18 | +#ifndef PARI_DONT_USE_GMP_INTERNALS /* Use GMP/MPIR internals */ |
| 19 | 19 | +/* |
| 20 | | + * Note: "Undocumented" refers to directly accessing ("private") members |
| 21 | | + * of GMP's mpz_t / __mpz_struct types, which are defined in gmp.h. |
| | 20 | + * Note: This refers to directly accessing ("private") members of |
| | 21 | + * GMP's mpz_t / __mpz_struct types, which are defined in gmp.h. |
| 22 | 22 | + * This is in fact (at least) compatible with both |
| 23 | 23 | + * - GMP (<= 5.0.1) *and* |
| 24 | 24 | + * - MPIR (<= 2.1.2), |
| … |
… |
|
| 33 | 33 | } |
| 34 | 34 | } |
| 35 | 35 | -#else |
| 36 | | +#else /* don't use "undocumented" GMP interface: */ |
| | 36 | +#else /* Don't use GMP/MPIR internals */ |
| 37 | 37 | /* assume y != 0 and the division is exact */ |
| 38 | 38 | GEN |
| 39 | 39 | diviuexact(GEN x, ulong y) |
diff -r d4c104308548 spkg-install
|
a
|
b
|
|
| 45 | 45 | # Add -fno-common to DLCFLAGS on Darwin (for Mac OS X 10.4, "Tiger"): |
| 46 | 46 | cp "$PATCHED/get_dlcflags" config/ |
| 47 | 47 | |
| 48 | | # Two configure patches for Solaris: |
| | 48 | # Use bash for Configure instead of /bin/sh |
| 49 | 49 | cp "$PATCHED/Configure" . |
| 50 | | cp "$PATCHED/Makefile.SH" config/ |
| 51 | 50 | |
| 52 | 51 | # leif: Catch invalid arguments to "--graphic" (and treat such as an error) |
| 53 | 52 | # since otherwise strange compilation errors might occur (cf. #9722, too). |
| … |
… |
|
| 150 | 149 | |
| 151 | 150 | # Allow the user to enable PARI self-tuning. |
| 152 | 151 | # This is time-consuming, but some may want to do it. |
| 153 | | # It is also very unreliable, and currently (svn 12577) completely |
| 154 | | # broken on *many* systems. |
| 155 | 152 | # Comment by leif: Also, PARI's Configure calls "make" (instead of $MAKE) |
| 156 | 153 | # if we do tuning, so: |
| 157 | 154 | # TODO: Replace that in our patched version of Configure! |
diff -r d4c104308548 spkg-make
|
a
|
b
|
|
| 61 | 61 | cd parisvn |
| 62 | 62 | svn update -r 12577 |
| 63 | 63 | |
| | 64 | # Patch config/Makefile.SH (for Solaris) |
| | 65 | svn update -r 12588 config/Makefile.SH |
| 64 | 66 | |
| 65 | | # make pari (must run bison, etc...) |
| 66 | | ./Configure || exit |
| | 67 | # Patch src/test/tune.c (fix tuning) |
| | 68 | svn update -r 12588 src/test/tune.c |
| | 69 | |
| | 70 | |
| | 71 | # make pari (must run bison, etc...) but disable optimization to speed |
| | 72 | # up compilation (the output of the compiling is not used anyway). |
| | 73 | env CFLAGS="-O0" ./Configure || exit |
| 67 | 74 | make gp doc || exit |
| 68 | 75 | |
| 69 | 76 | |