ports/145247: [PATCH] graphics/php5-gd: png v14 fix
Martin Matuska
mm at FreeBSD.org
Wed Mar 31 18:00:21 UTC 2010
>Number: 145247
>Category: ports
>Synopsis: [PATCH] graphics/php5-gd: png v14 fix
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Mar 31 18:00:18 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 8.0-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #16: Fri Jan 15 21:10:48 CET 2010
>Description:
- Fix unresolved symbol after png v14 API change
Added file(s):
- files/patch-libgd-gd_png.c
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- .patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/graphics/php5-gd/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile 29 Dec 2009 14:39:10 -0000 1.5
+++ Makefile 31 Mar 2010 17:50:38 -0000
@@ -5,6 +5,8 @@
# $FreeBSD: ports/graphics/php5-gd/Makefile,v 1.5 2009/12/29 14:39:10 ale Exp $
#
+PORTREVISION= 1
+
CATEGORIES= graphics
MASTERDIR= ${.CURDIR}/../../lang/php5
Index: files/patch-libgd-gd_png.c
===================================================================
RCS file: files/patch-libgd-gd_png.c
diff -N files/patch-libgd-gd_png.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-libgd-gd_png.c 31 Mar 2010 17:50:38 -0000
@@ -0,0 +1,11 @@
+--- libgd/gd_png.c.orig 2009-03-14 17:48:42.000000000 +0000
++++ libgd/gd_png.c 2010-03-31 17:42:38.379221901 +0000
+@@ -139,7 +139,7 @@
+ return NULL;
+ }
+
+- if (!png_check_sig (sig, 8)) { /* bad signature */
++ if (!(png_sig_cmp(sig, 0, 8) == 0)) { /* bad signature */
+ return NULL;
+ }
+
--- .patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list