[packages/efl] - updated to 1.10.1 - added gif patch (fixes build with giflib >= 5.1)

qboosh qboosh at pld-linux.org
Sat Jun 14 17:29:49 CEST 2014


commit 998db43afa9172a15ed35f71ec3a4473ea5a4f5d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 14 17:33:38 2014 +0200

    - updated to 1.10.1
    - added gif patch (fixes build with giflib >= 5.1)

 efl-gif.patch | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 efl.spec      |  6 ++++--
 2 files changed, 54 insertions(+), 2 deletions(-)
---
diff --git a/efl.spec b/efl.spec
index 98232f4..fb8c4fe 100644
--- a/efl.spec
+++ b/efl.spec
@@ -27,15 +27,16 @@
 Summary:	EFL - The Enlightenment Foundation Libraries
 Summary(pl.UTF-8):	EFL (Enlightenment Foundation Libraries) - biblioteki tworzące Enlightment
 Name:		efl
-Version:	1.10.0
+Version:	1.10.1
 Release:	1
 License:	LGPL v2.1+, BSD (depends on component)
 Group:		Libraries
 Source0:	http://download.enlightenment.org/rel/libs/efl/%{name}-%{version}.tar.bz2
-# Source0-md5:	588dfe1957530c801c5599dfc19a9840
+# Source0-md5:	eadc55e41602b3b34d6b9b0e0b12826a
 Patch0:		%{name}-pc.patch
 Patch1:		%{name}-wayland.patch
 Patch2:		%{name}-am.patch
+Patch3:		%{name}-gif.patch
 URL:		https://trac.enlightenment.org/e/wiki/EFL
 %{?with_egl:BuildRequires:	EGL-devel}
 BuildRequires:	OpenGL-GLX-devel
@@ -2417,6 +2418,7 @@ Obsługa składni EDC dla Vima.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
diff --git a/efl-gif.patch b/efl-gif.patch
new file mode 100644
index 0000000..4310f3b
--- /dev/null
+++ b/efl-gif.patch
@@ -0,0 +1,50 @@
+--- efl-1.10.1/src/modules/evas/loaders/gif/evas_image_load_gif.c.orig	2014-06-03 12:38:57.000000000 +0200
++++ efl-1.10.1/src/modules/evas/loaders/gif/evas_image_load_gif.c	2014-06-14 16:57:31.264950243 +0200
+@@ -528,7 +528,11 @@
+    ret = EINA_TRUE;
+ 
+ on_error: // jump here on any errors to clean up
++#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
++   if (gif) DGifCloseFile(gif, NULL);
++#else
+    if (gif) DGifCloseFile(gif);
++#endif
+    if (fi.map) eina_file_map_free(f, fi.map);
+    return ret;
+ }
+@@ -606,7 +610,11 @@
+    // start as we have nothnig to build on
+    if ((index > 0) && (index < loader->imgnum) && (animated->animated))
+      {
++#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
++        if (loader->gif) DGifCloseFile(loader->gif, NULL);
++#else
+         if (loader->gif) DGifCloseFile(loader->gif);
++#endif
+         if ((loader->fi.map) && (loader->f))
+           eina_file_map_free(loader->f, loader->fi.map);
+         loader->gif = NULL;
+@@ -764,7 +772,11 @@
+    loader->imgnum = imgnum;
+    if ((animated->frame_count <= 1) || (rec == TERMINATE_RECORD_TYPE))
+      {
++#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
++        if (loader->gif) DGifCloseFile(loader->gif, NULL);
++#else
+         if (loader->gif) DGifCloseFile(loader->gif);
++#endif
+         if ((loader->fi.map) && (loader->f))
+           eina_file_map_free(loader->f, loader->fi.map);
+         loader->gif = NULL;
+@@ -848,7 +860,11 @@
+ evas_image_load_file_close_gif2(void *loader_data)
+ {
+    Loader_Info *loader = loader_data;
++#if (GIFLIB_MAJOR > 5) || ((GIFLIB_MAJOR == 5) && (GIFLIB_MINOR >= 1))
++   if (loader->gif) DGifCloseFile(loader->gif, NULL);
++#else
+    if (loader->gif) DGifCloseFile(loader->gif);
++#endif
+    if ((loader->fi.map) && (loader->f))
+      eina_file_map_free(loader->f, loader->fi.map);
+    free(loader);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/efl.git/commitdiff/998db43afa9172a15ed35f71ec3a4473ea5a4f5d



More information about the pld-cvs-commit mailing list