Hello community,

here is the log from the commit of package evas for openSUSE:Factory checked in 
at 2013-03-14 10:56:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/evas (Old)
 and      /work/SRC/openSUSE:Factory/.evas.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "evas", Maintainer is ""

Changes:
--------
--- /work/SRC/openSUSE:Factory/evas/evas.changes        2013-01-10 
13:01:55.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.evas.new/evas.changes   2013-03-14 
10:56:29.000000000 +0100
@@ -1,0 +2,5 @@
+Tue Mar 12 15:58:51 UTC 2013 - [email protected]
+
+- add evas-1.7.5-giflib5.patch to fix build with giflib-5
+
+-------------------------------------------------------------------

New:
----
  evas-1.7.5-giflib5.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ evas.spec ++++++
--- /var/tmp/diff_new_pack.cWD7Gb/_old  2013-03-14 10:56:30.000000000 +0100
+++ /var/tmp/diff_new_pack.cWD7Gb/_new  2013-03-14 10:56:30.000000000 +0100
@@ -24,6 +24,7 @@
 Group:          Development/Libraries/C and C++
 Url:            http://enlightenment.org/
 Source:         %{name}-%{version}.tar.bz2
+Patch1:         evas-1.7.5-giflib5.patch
 BuildRequires:  Mesa-devel
 BuildRequires:  SDL-devel
 BuildRequires:  doxygen
@@ -112,6 +113,7 @@
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 # fake time used for documentation

++++++ evas-1.7.5-giflib5.patch ++++++
diff --git a/src/modules/loaders/gif/evas_image_load_gif.c 
b/src/modules/loaders/gif/evas_image_load_gif.c
index 18a6e23..e8cc562 100644
--- a/src/modules/loaders/gif/evas_image_load_gif.c
+++ b/src/modules/loaders/gif/evas_image_load_gif.c
@@ -684,7 +684,9 @@ evas_image_load_file_head_gif(Image_Entry *ie, const char 
*file, const char *key
    int                 h;
    int                 alpha;
    int                 loop_count = -1;
-
+#if GIFLIB_MAJOR >= 5
+   int                 err;
+#endif
    w = 0;
    h = 0;
    alpha = -1;
@@ -700,7 +702,11 @@ evas_image_load_file_head_gif(Image_Entry *ie, const char 
*file, const char *key
         return EINA_FALSE;
      }
 
+#if GIFLIB_MAJOR >= 5
+   gif = DGifOpenFileHandle(fd, &err);
+#else
    gif = DGifOpenFileHandle(fd);
+#endif
    if (!gif)
      {
         if (fd) close(fd);
@@ -826,6 +832,9 @@ evas_image_load_specific_frame(Image_Entry *ie, const char 
*file, int frame_inde
    GifFileType       *gif;
    Image_Entry_Frame *frame = NULL;
    Gif_Frame         *gif_frame = NULL;
+#if GIFLIB_MAJOR >= 5
+   int                err;
+#endif
 
 #ifndef __EMX__
    fd = open(file, O_RDONLY);
@@ -838,7 +847,11 @@ evas_image_load_specific_frame(Image_Entry *ie, const char 
*file, int frame_inde
         return EINA_FALSE;
      }
 
+#if GIFLIB_MAJOR >= 5
+   gif = DGifOpenFileHandle(fd, &err);
+#else
    gif = DGifOpenFileHandle(fd);
+#endif
    if (!gif)
      {
         if (fd) close(fd);
@@ -915,6 +928,9 @@ evas_image_load_file_data_gif(Image_Entry *ie, const char 
*file, const char *key
           {
              int           fd;
              GifFileType  *gif;
+#if GIFLIB_MAJOR >= 5
+             int           err;
+#endif
 
 #ifndef __EMX__
              fd = open(file, O_RDONLY);
@@ -927,7 +943,11 @@ evas_image_load_file_data_gif(Image_Entry *ie, const char 
*file, const char *key
                   return EINA_FALSE;
                }
 
+#if GIFLIB_MAJOR >= 5
+             gif = DGifOpenFileHandle(fd, &err);
+#else
              gif = DGifOpenFileHandle(fd);
+#endif
              if (!gif)
                {
                   if (fd) close(fd);
@@ -984,6 +1004,9 @@ evas_image_load_frame_duration_gif(Image_Entry *ie, const 
char *file, const int
    int                 remain_frames = frame_num;
    double              duration = 0;
    int                 frame_count = 0;
+#if GIFLIB_MAJOR >= 5
+   int                 err;
+#endif
 
    frame_count = ie->frame_count;
 
@@ -1000,7 +1023,11 @@ evas_image_load_frame_duration_gif(Image_Entry *ie, 
const char *file, const int
 #endif
    if (fd < 0) return -1;
 
+#if GIFLIB_MAJOR >= 5
+   gif = DGifOpenFileHandle(fd, &err);
+#else
    gif = DGifOpenFileHandle(fd);
+#endif
    if (!gif)
      {
         if (fd) close(fd);
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to