diff --git a/gd-2.1.0-CVE-2014-2497.patch b/gd-2.1.0-CVE-2014-2497.patch deleted file mode 100644 index 9c1379a..0000000 --- a/gd-2.1.0-CVE-2014-2497.patch +++ /dev/null @@ -1,23 +0,0 @@ -Description: Patch to fix PHP bug 66901. -Author: Andres Mejia -Forwarded: no - -Index: src/gdxpm.c -=================================================================== ---- src/gdxpm.c.orig 2014-04-04 12:56:02.570160501 +0200 -+++ src/gdxpm.c 2014-04-04 13:01:24.031976322 +0200 -@@ -62,6 +62,14 @@ - - for(i = 0; i < number; i++) { - char *c_color = image.colorTable[i].c_color; -+ if (!image.colorTable[i].c_color) -+ { -+ /* unsupported color key or color key not defined */ -+ gdImageDestroy(im); -+ gdFree(colors); -+ im = 0; -+ goto done; -+ } - if(strcmp(c_color, "None") == 0) { - colors[i] = gdImageGetTransparent(im); - if(colors[i] == -1) colors[i] = gdImageColorAllocate(im, 0, 0, 0); diff --git a/gd-aliasing.patch b/gd-aliasing.patch index e689d36..f875bea 100644 --- a/gd-aliasing.patch +++ b/gd-aliasing.patch @@ -1,8 +1,8 @@ Index: src/fontwheeltest.c =================================================================== ---- src/fontwheeltest.c.orig 2013-12-18 11:49:47.041577398 +0100 -+++ src/fontwheeltest.c 2013-12-18 11:53:52.575496376 +0100 -@@ -32,6 +32,8 @@ +--- src/fontwheeltest.c.orig ++++ src/fontwheeltest.c +@@ -32,6 +32,8 @@ dowheel (gdImagePtr im, int color, char doerr (err, "------------------------------------------"); for (curang = 0.0; curang < 360.0; curang += angle) { @@ -11,7 +11,7 @@ Index: src/fontwheeltest.c curangrads = DEGTORAD(curang); x0 = x + cos (curangrads) * offset; y0 = y - sin (curangrads) * offset; -@@ -47,7 +49,15 @@ +@@ -47,7 +49,15 @@ dowheel (gdImagePtr im, int color, char if (cp) doerr (err, cp); diff --git a/gd-autoconf.patch b/gd-autoconf.patch deleted file mode 100644 index 7818b1e..0000000 --- a/gd-autoconf.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- - configure.ac | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -Index: libgd-2.1.0/configure.ac -=================================================================== ---- libgd-2.1.0.orig/configure.ac -+++ libgd-2.1.0/configure.ac -@@ -45,7 +45,7 @@ AC_SUBST(GDLIB_AGE) - FEATURES="GD_GIF GD_GIFANIM GD_OPENPOLYGON" - AC_SUBST(FEATURES) - --AM_INIT_AUTOMAKE([foreign dist-bzip2 dist-xz -Wall -Werror]) -+AM_INIT_AUTOMAKE([foreign dist-bzip2 dist-xz -Wall]) - AC_CONFIG_HEADERS([src/config.h:src/config.hin]) - - dnl newer automake wants this, but we still want to work with older -@@ -53,6 +53,9 @@ m4_ifndef([AM_PROG_AR],[m4_define([AM_PR - AM_PROG_AR - - AC_PROG_CC_STDC -+AC_USE_SYSTEM_EXTENSIONS -+AC_SYS_LARGEFILE -+ - AM_PROG_CC_C_O - AC_PROG_INSTALL - AC_PROG_LIBTOOL diff --git a/gd.changes b/gd.changes index b16e0b7..2e821e0 100644 --- a/gd.changes +++ b/gd.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Sat Feb 28 08:44:08 UTC 2015 - mpluskal@suse.com + +- Cleanup spec file with spec-cleaner +- No longer needed patches + * gd-2.1.0-CVE-2014-2497.patch + * gd-autoconf.patch +- Update to 2.1.1 + * changelog provided only as commit log (see Changelog) + * fix for CVE-2014-2497 + ------------------------------------------------------------------- Tue Aug 26 05:58:53 UTC 2014 - jengelh@inai.de diff --git a/gd.spec b/gd.spec index 89167d7..43dd854 100644 --- a/gd.spec +++ b/gd.spec @@ -1,7 +1,7 @@ # # spec file for package gd # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,7 +21,7 @@ %define lname libgd3 Name: gd -Version: 2.1.0 +Version: 2.1.1 Release: 0 Summary: A Drawing Library for Programs That Use PNG and JPEG Output License: MIT @@ -37,9 +37,6 @@ Patch1: gd-fontpath.patch Patch2: gd-format.patch # could be upstreamed Patch3: gd-aliasing.patch -# could be upstreamed? -Patch4: gd-autoconf.patch -Patch5: gd-2.1.0-CVE-2014-2497.patch BuildRequires: fontconfig-devel BuildRequires: freetype2-devel BuildRequires: libjpeg-devel @@ -95,8 +92,6 @@ the formats accepted for inline images by most browsers. %patch1 %patch2 %patch3 -%patch4 -p1 -%patch5 %build autoreconf -fiv diff --git a/libgd-2.1.0.tar.xz b/libgd-2.1.0.tar.xz deleted file mode 100644 index 50904c5..0000000 --- a/libgd-2.1.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa6665dfe3d898019671293c84d77067a3d2ede50884dbcb6df899d508370e5a -size 2004304 diff --git a/libgd-2.1.1.tar.xz b/libgd-2.1.1.tar.xz new file mode 100644 index 0000000..cdd99a2 --- /dev/null +++ b/libgd-2.1.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ada1ed45594abc998ebc942cef12b032fbad672e73efc22bc9ff54f5df2b285 +size 2039132