From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Apr 25 15:20:06 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA76C106567A for ; Sun, 25 Apr 2010 15:20:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7910C8FC1E for ; Sun, 25 Apr 2010 15:20:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3PFK40u036970 for ; Sun, 25 Apr 2010 15:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3PFK43U036969; Sun, 25 Apr 2010 15:20:04 GMT (envelope-from gnats) Resent-Date: Sun, 25 Apr 2010 15:20:04 GMT Resent-Message-Id: <201004251520.o3PFK43U036969@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Martin Matuska Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 56330106566C for ; Sun, 25 Apr 2010 15:18:09 +0000 (UTC) (envelope-from mm@mail2.vx.sk) Received: from mail2.vx.sk (neo.vx.sk [188.40.111.84]) by mx1.freebsd.org (Postfix) with ESMTP id 19BD08FC22 for ; Sun, 25 Apr 2010 15:18:08 +0000 (UTC) Received: from neo.vx.sk (localhost [127.0.0.1]) by mail2.vx.sk (Postfix) with ESMTP id 19ACD38CEA; Sun, 25 Apr 2010 17:18:08 +0200 (CEST) Received: from mail2.vx.sk ([127.0.0.1]) by neo.vx.sk (neo.vx.sk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9zYWe27DU-AM; Sun, 25 Apr 2010 17:18:03 +0200 (CEST) Received: by mail2.vx.sk (Postfix, from userid 1001) id 2CD7F38CE1; Sun, 25 Apr 2010 17:18:03 +0200 (CEST) Message-Id: <20100425151803.2CD7F38CE1@mail2.vx.sk> Date: Sun, 25 Apr 2010 17:18:03 +0200 (CEST) From: Martin Matuska To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: admin@lissyara.su Subject: ports/146041: [PATCH] enable gmp 5 support for math/php52-gmp X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Matuska List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2010 15:20:06 -0000 >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: