[63957] trunk/dports/php/php5-gmp
ryandesign at macports.org
ryandesign at macports.org
Fri Feb 19 00:43:17 PST 2010
Revision: 63957
http://trac.macports.org/changeset/63957
Author: ryandesign at macports.org
Date: 2010-02-19 00:43:14 -0800 (Fri, 19 Feb 2010)
Log Message:
-----------
php5-gmp: fix building with gmp 5.0.1; see #23620
Modified Paths:
--------------
trunk/dports/php/php5-gmp/Portfile
Added Paths:
-----------
trunk/dports/php/php5-gmp/files/
trunk/dports/php/php5-gmp/files/patch-ext-gmp-gmp.c.diff
Modified: trunk/dports/php/php5-gmp/Portfile
===================================================================
--- trunk/dports/php/php5-gmp/Portfile 2010-02-19 04:58:37 UTC (rev 63956)
+++ trunk/dports/php/php5-gmp/Portfile 2010-02-19 08:43:14 UTC (rev 63957)
@@ -4,7 +4,7 @@
PortGroup php5extension 1.0
php5extension.setup gmp 5.3.1 bundled
-revision 2
+revision 3
categories-append devel math
platforms darwin
maintainers ryandesign
@@ -21,6 +21,8 @@
depends_lib-append port:gmp
+patchfiles-append patch-ext-gmp-gmp.c.diff
+
configure.args-append --with-gmp=${prefix}
use_parallel_build yes
Added: trunk/dports/php/php5-gmp/files/patch-ext-gmp-gmp.c.diff
===================================================================
--- trunk/dports/php/php5-gmp/files/patch-ext-gmp-gmp.c.diff (rev 0)
+++ trunk/dports/php/php5-gmp/files/patch-ext-gmp-gmp.c.diff 2010-02-19 08:43:14 UTC (rev 63957)
@@ -0,0 +1,11 @@
+--- ext/gmp/gmp.c.orig 2008-12-31 05:15:49.000000000 -0600
++++ ext/gmp/gmp.c 2010-02-19 02:31:47.000000000 -0600
+@@ -1359,7 +1359,7 @@
+
+ GMPG(rand_initialized) = 1;
+ }
+- mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB);
++ mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * GMP_LIMB_BITS);
+
+ ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp);
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100219/e7dc0036/attachment.html>
More information about the macports-changes
mailing list