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
This commit is contained in:
Marguerite Su 2013-09-09 09:05:33 +00:00 committed by Git OBS Bridge
parent 5bbd64076a
commit 7ab0d51489
3 changed files with 31 additions and 0 deletions

22
fontforge-fixgiflib.patch Normal file
View File

@ -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 );
}

View File

@ -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

View File

@ -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