Date: Sun, 25 Apr 2010 17:18:03 +0200 (CEST) From: Martin Matuska <mm@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: admin@lissyara.su Subject: ports/146041: [PATCH] enable gmp 5 support for math/php52-gmp Message-ID: <20100425151803.2CD7F38CE1@mail2.vx.sk> Resent-Message-ID: <201004251520.o3PFK43U036969@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 146041 >Category: ports >Synopsis: [PATCH] enable gmp 5 support for math/php52-gmp >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Apr 25 15:20:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Martin Matuska >Release: FreeBSD 8.0-STABLE amd64 >Organization: >Environment: System: FreeBSD neo.vx.sk 8.0-STABLE FreeBSD 8.0-STABLE #1 r206844M: Mon Apr 19 18:29:50 CEST 2010 root@neo.vx.sk:/usr/obj/stable/sys/NEO amd64 >Description: Add patch to support gmp version 5 >How-To-Repeat: >Fix: Index: ports/lang/php52/Makefile.ext =================================================================== RCS file: /home/pcvs/ports/lang/php52/Makefile.ext,v retrieving revision 1.3 diff -u -r1.3 Makefile.ext --- ports/lang/php52/Makefile.ext 25 Apr 2010 05:02:23 -0000 1.3 +++ ports/lang/php52/Makefile.ext 25 Apr 2010 15:14:38 -0000 @@ -121,7 +121,7 @@ .endif .if ${PHP_MODNAME} == "gmp" -LIB_DEPENDS+= gmp.8:${PORTSDIR}/math/libgmp4 +LIB_DEPENDS+= gmp.10:${PORTSDIR}/math/gmp CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} .endif Index: ports/math/php52-gmp/Makefile =================================================================== RCS file: /home/pcvs/ports/math/php52-gmp/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- ports/math/php52-gmp/Makefile 23 Apr 2010 15:47:39 -0000 1.1 +++ ports/math/php52-gmp/Makefile 25 Apr 2010 15:14:38 -0000 @@ -5,6 +5,8 @@ # $FreeBSD: ports/math/php52-gmp/Makefile,v 1.1 2010/04/23 15:47:39 dinoex Exp $ # +PORTREVISION= 1 + CATEGORIES= math MASTERDIR= ${.CURDIR}/../../lang/php52 Index: ports/math/php52-gmp/files/patch-gmp.c =================================================================== RCS file: ports/math/php52-gmp/files/patch-gmp.c diff -N ports/math/php52-gmp/files/patch-gmp.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/math/php52-gmp/files/patch-gmp.c 25 Apr 2010 15:14:38 -0000 @@ -0,0 +1,11 @@ +--- gmp.c.orig 2010-04-21 22:00:31.841602968 +0000 ++++ gmp.c 2010-04-21 22:00:46.412804473 +0000 +@@ -1396,7 +1396,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); + } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100425151803.2CD7F38CE1>