diff options
author | taca <taca@pkgsrc.org> | 2010-03-03 02:01:40 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2010-03-03 02:01:40 +0000 |
commit | 90993db9199655f1ba037da3c41f0bd81c82e34c (patch) | |
tree | 02eb26b9931081767a13d44665dd61b4c8c2bfcc /lang | |
parent | 27fc21c2dc718a466b53498151fe75a5637132f4 (diff) | |
download | pkgsrc-90993db9199655f1ba037da3c41f0bd81c82e34c.tar.gz |
Fix php-gmp build problem with gmp-5.0.1 and later refering
http://svn.php.net/viewvc?view=revision&revision=295402.
No PKGREVISION bump since it is only build problem fix.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php5/distinfo | 6 | ||||
-rw-r--r-- | lang/php5/patches/patch-af | 20 |
2 files changed, 22 insertions, 4 deletions
diff --git a/lang/php5/distinfo b/lang/php5/distinfo index e65cdc320a6..2cb4ea8c283 100644 --- a/lang/php5/distinfo +++ b/lang/php5/distinfo @@ -1,12 +1,10 @@ -$NetBSD: distinfo,v 1.73 2010/02/27 03:25:16 taca Exp $ +$NetBSD: distinfo,v 1.74 2010/03/03 02:01:40 taca Exp $ SHA1 (php-5.2.13/php-5.2.13.tar.bz2) = 7127a21f1b493e3cd43f45cadecdb46b623eb1fb RMD160 (php-5.2.13/php-5.2.13.tar.bz2) = 9e21d32a7b757d25ed827834b26235ea1eebfcc8 Size (php-5.2.13/php-5.2.13.tar.bz2) = 9084518 bytes -SHA1 (php-5.2.13/suhosin-patch-5.2.12-0.9.7.patch.gz) = fb8719aabcf422298d1aaff0bb96fbfca61681ae -RMD160 (php-5.2.13/suhosin-patch-5.2.12-0.9.7.patch.gz) = ffcefe05cbfb5ad4649cc9f25ccf4dadb4d3bb57 -Size (php-5.2.13/suhosin-patch-5.2.12-0.9.7.patch.gz) = 23062 bytes SHA1 (patch-aa) = 20bc3831e435182d014b11ae9f1f6c537a21af20 +SHA1 (patch-af) = 716a7905491d4c08bc3fcaeb267f777963279d76 SHA1 (patch-ag) = 5e3e822657925a77fbccaca63f283863a1cc6d94 SHA1 (patch-ah) = a25cb7fa3d1f5b9fb99493a4348fdba69d3d4728 SHA1 (patch-aj) = 54812097499c81e5cb0196ab949cc86a4f24a9cc diff --git a/lang/php5/patches/patch-af b/lang/php5/patches/patch-af new file mode 100644 index 00000000000..0b0d756449e --- /dev/null +++ b/lang/php5/patches/patch-af @@ -0,0 +1,20 @@ +$NetBSD: patch-af,v 1.1 2010/03/03 02:01:40 taca Exp $ + +Fix php-gmp build problem with gmp-5.0.1 and later refering +http://svn.php.net/viewvc?view=revision&revision=295402. + +--- gmp.c.orig 2010-01-03 09:23:27.000000000 +0000 ++++ gmp.c +@@ -1396,8 +1396,11 @@ ZEND_FUNCTION(gmp_random) + + GMPG(rand_initialized) = 1; + } ++#ifdef GMP_LIMB_BITS ++ mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * GMP_LIMB_BITS); ++#else + mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB); +- ++#endif + ZEND_REGISTER_RESOURCE(return_value, gmpnum_result, le_gmp); + } + /* }}} */ |