Date: Sat, 16 Apr 2005 14:08:26 +0100 From: Tim Bishop <tim@bishnet.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: tim@bishnet.net Subject: ports/80003: [MAINTAINER] devel/pecl-statgrab: Fix "%ld" bug on php4 Message-ID: <E1DMn2A-0004To-Fy@pendennis.ukc.ac.uk> Resent-Message-ID: <200504161310.j3GDAQFN093044@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.post.mk> 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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1DMn2A-0004To-Fy>