From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Apr 16 13:10:27 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67C0F16A4CE for ; Sat, 16 Apr 2005 13:10:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2657143D55 for ; Sat, 16 Apr 2005 13:10:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3GDARxJ093045 for ; Sat, 16 Apr 2005 13:10:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3GDAQFN093044; Sat, 16 Apr 2005 13:10:26 GMT (envelope-from gnats) Resent-Date: Sat, 16 Apr 2005 13:10:26 GMT Resent-Message-Id: <200504161310.j3GDAQFN093044@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, Tim Bishop Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0476F16A4CE for ; Sat, 16 Apr 2005 13:08:34 +0000 (GMT) Received: from mx6.kent.ac.uk (mx6.kent.ac.uk [129.12.21.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F3D543D1F for ; Sat, 16 Apr 2005 13:08:33 +0000 (GMT) (envelope-from T.D.Bishop@kent.ac.uk) Received: from apophis.ukc.ac.uk ([129.12.4.11]) by mx6.kent.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50) id 1DMn2A-0005Lj-O8; Sat, 16 Apr 2005 14:08:26 +0100 Received: from pendennis.ukc.ac.uk ([129.12.3.232]) by apophis.ukc.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50) id 1DMn2A-000349-Kh; Sat, 16 Apr 2005 14:08:26 +0100 Received: from tdb by pendennis.ukc.ac.uk with local (Exim 4.50 (FreeBSD)) id 1DMn2A-0004To-Fy; Sat, 16 Apr 2005 14:08:26 +0100 Message-Id: Date: Sat, 16 Apr 2005 14:08:26 +0100 From: Tim Bishop Sender: "T.D.Bishop" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: tim@bishnet.net Subject: ports/80003: [MAINTAINER] devel/pecl-statgrab: Fix "%ld" bug on php4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Apr 2005 13:10:27 -0000 >Number: 80003 >Category: ports >Synopsis: [MAINTAINER] devel/pecl-statgrab: Fix "%ld" bug on php4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Apr 16 13:10:26 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Tim Bishop >Release: FreeBSD 5.2.1-RELEASE-p9 i386 >Organization: >Environment: System: FreeBSD pendennis.ukc.ac.uk 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #1: Sun Jul 18 15:23:54 BST 2004 >Description: A bug in php4 means some values are displayed as "%ld". This will be fixed in the next php4 release, and is already fixed in php5, so this patch is just a workaround until then. Added file(s): - files/php_statgrab.h.patch Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- pecl-statgrab-0.4_1.patch begins here --- Index: Makefile =================================================================== RCS file: /u1/freebsd/cvs/ports/devel/pecl-statgrab/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile 10 Apr 2005 13:22:54 -0000 1.2 +++ Makefile 16 Apr 2005 13:06:48 -0000 @@ -7,6 +7,7 @@ PORTNAME= statgrab PORTVERSION= 0.4 +PORTREVISION= 1 CATEGORIES= devel pear MASTER_SITES= http://pecl.php.net/get/ PKGNAMEPREFIX= pecl- @@ -29,6 +30,11 @@ .if ${OSVERSION} < 500000 EXTRA_LIBS= -lkvm +.endif + +.if ${PHP_VER} < 5 +post-patch: + @${PATCH} -d ${WRKSRC} -p0 < ${FILESDIR}/php_statgrab.h.patch .endif .include Index: files/php_statgrab.h.patch =================================================================== RCS file: files/php_statgrab.h.patch diff -N files/php_statgrab.h.patch --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/php_statgrab.h.patch 16 Apr 2005 13:05:45 -0000 @@ -0,0 +1,13 @@ +--- php_statgrab.h.bak Sat Apr 16 13:48:58 2005 ++++ php_statgrab.h Sat Apr 16 13:49:01 2005 +@@ -55,6 +55,10 @@ + PHP_FUNCTION(sg_user_stats); + PHP_FUNCTION(sg_network_iface_stats); + ++#ifdef snprintf ++#undef snprintf ++#endif ++ + #endif /* PHP_STATGRAB_H */ + + --- pecl-statgrab-0.4_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: