From 7ab0d514897525c7262eb339c8a4d716a1490f808db79aaca88ed1f3684a0cec Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Mon, 9 Sep 2013 09:05:33 +0000 Subject: [PATCH] Accepting request 197971 from home:coolo:branches:openSUSE:Factory - add fontforge-fixgiflib.patch to fix build with giflib 5.0.5 OBS-URL: https://build.opensuse.org/request/show/197971 OBS-URL: https://build.opensuse.org/package/show/M17N/fontforge?expand=0&rev=27 --- fontforge-fixgiflib.patch | 22 ++++++++++++++++++++++ fontforge.changes | 5 +++++ fontforge.spec | 4 ++++ 3 files changed, 31 insertions(+) create mode 100644 fontforge-fixgiflib.patch diff --git a/fontforge-fixgiflib.patch b/fontforge-fixgiflib.patch new file mode 100644 index 0000000..cc6f40c --- /dev/null +++ b/fontforge-fixgiflib.patch @@ -0,0 +1,22 @@ +Index: fontforge-20120731-b/gutils/gimagereadgif.c +=================================================================== +--- fontforge-20120731-b.orig/gutils/gimagereadgif.c ++++ fontforge-20120731-b/gutils/gimagereadgif.c +@@ -132,7 +132,7 @@ GImage *GImageReadGif(char *filename) { + if ( !loadgif()) + return( NULL ); + +- if ((gif = _DGifOpenFileName(filename)) == NULL) { ++ if ((gif = _DGifOpenFileName(filename, NULL)) == NULL) { + fprintf( stderr, "can't open %s\n", filename); + return( NULL ); + } +@@ -220,7 +220,7 @@ GImage *GImageReadGif(char *filename) { + GifFileType *gif; + int i; + +- if ((gif = DGifOpenFileName(filename)) == NULL) { ++ if ((gif = DGifOpenFileName(filename, NULL)) == NULL) { + fprintf( stderr, "can't open %s\n", filename); + return( NULL ); + } diff --git a/fontforge.changes b/fontforge.changes index 5830b10..e058400 100644 --- a/fontforge.changes +++ b/fontforge.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 9 08:48:04 UTC 2013 - coolo@suse.com + +- add fontforge-fixgiflib.patch to fix build with giflib 5.0.5 + ------------------------------------------------------------------- Tue Apr 16 12:17:30 UTC 2013 - pgajdos@suse.com diff --git a/fontforge.spec b/fontforge.spec index df7a51b..1975d85 100644 --- a/fontforge.spec +++ b/fontforge.spec @@ -32,6 +32,7 @@ Patch1: fontforge-20090622-fdleak.patch Patch2: libpng14-dynamic.diff # PATCH-FIX-OPENSUSE fontforge-python-module-name.diff -- change python module name according to naming policy Patch3: fontforge-python-module-name.diff +Patch4: fontforge-fixgiflib.patch BuildRequires: cairo-devel BuildRequires: fdupes @@ -81,6 +82,9 @@ to develop applications that use FontForge libraries. %patch2 %endif %patch3 +%if 0%{?suse_version} > 1230 +%patch4 -p1 +%endif mkdir docs tar -jxvf %{SOURCE1} -C docs