From bcb5de96aa9e5d606296637f03a5099747630029 Mon Sep 17 00:00:00 2001 From: tnut Date: Wed, 19 May 2010 17:11:41 +0200 Subject: ajout de gd#2.0.35-1 --- extra/gd/.md5sum | 1 + extra/gd/Pkgfile | 4 +++- extra/gd/libpng14.patch | 12 ++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 extra/gd/libpng14.patch (limited to 'extra') diff --git a/extra/gd/.md5sum b/extra/gd/.md5sum index cdec016e1..efaeaf992 100644 --- a/extra/gd/.md5sum +++ b/extra/gd/.md5sum @@ -1 +1,2 @@ 982963448dc36f20cb79b6e9ba6fdede gd-2.0.35.tar.gz +7921556f4960e8d66cf4fb67ea7101b5 libpng14.patch diff --git a/extra/gd/Pkgfile b/extra/gd/Pkgfile index ac43f4a96..e477f7a09 100644 --- a/extra/gd/Pkgfile +++ b/extra/gd/Pkgfile @@ -7,10 +7,12 @@ name=gd version=2.0.35 release=1 -source=(http://www.libgd.org/releases/$name-$version.tar.gz) +source=(http://www.libgd.org/releases/$name-$version.tar.gz\ + libpng14.patch) build() { cd $name-$version + patch -Np1 -i ../libpng14.patch ./configure --prefix=/usr make make DESTDIR=$PKG install diff --git a/extra/gd/libpng14.patch b/extra/gd/libpng14.patch new file mode 100644 index 000000000..19a3fda91 --- /dev/null +++ b/extra/gd/libpng14.patch @@ -0,0 +1,12 @@ +diff -Nur gd-2.0.36RC1.orig/gd_png.c gd-2.0.36RC1/gd_png.c +--- gd-2.0.36RC1.orig/gd_png.c 2007-11-27 10:30:34.000000000 +0200 ++++ gd-2.0.36RC1/gd_png.c 2010-01-17 17:14:11.000000000 +0200 +@@ -151,7 +151,7 @@ + return NULL; + } + +- if (!png_check_sig (sig, 8)) { /* bad signature */ ++ if (png_sig_cmp (sig, 0, 8)) { /* bad signature */ + return NULL; /* bad signature */ + } + -- cgit v1.2.3-54-g00ecf