Quantcast

[patch update] giflib-related fix for the call to PrintGifError

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[patch update] giflib-related fix for the call to PrintGifError

Kurt Jaeger-16

>Submitter-Id: current-users
>Originator: Kurt Jaeger
>Organization: -
>Confidential: no
>Synopsis: [patch update] giflib-related fix for the call to PrintGifError
>Severity: non-critical
>Priority: low
>Category: ports
>Class: update
>Release: FreeBSD 8.3-RELEASE amd64
>Environment:
System: FreeBSD fa8.opsec.eu 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 [hidden email]:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
        imlib uses giflib, which was recently updated to 4.2.0
        During that update, PrintGifError(), a published interface from
        giflib, was deleted.
        Other ports (e.g. magicpoint) require imlib and PrintGifError()
        and fail to compile.

        This patch might not be the perfect solution (should that one
        be provided by giflib ?), but it seems to work 8-}
>How-To-Repeat:
        see above
>Fix:

diff -r -u -N graphics/imlib/Makefile /usr/home/pi/myp/graphics/imlib/Makefile
--- graphics/imlib/Makefile 2012-06-01 23:28:59.000000000 +0200
+++ /usr/home/pi/myp/graphics/imlib/Makefile 2012-06-16 20:24:29.000000000 +0200
@@ -8,7 +8,7 @@
 
 PORTNAME= imlib
 PORTVERSION= 1.9.15
-PORTREVISION= 14
+PORTREVISION= 15
 CATEGORIES= graphics
 MASTER_SITES= GNOME
 DIST_SUBDIR= gnome
diff -r -u -N graphics/imlib/files/patch-PrintGifError /usr/home/pi/myp/graphics/imlib/files/patch-PrintGifError
--- graphics/imlib/files/patch-PrintGifError 1970-01-01 01:00:00.000000000 +0100
+++ /usr/home/pi/myp/graphics/imlib/files/patch-PrintGifError 2012-06-16 20:20:21.000000000 +0200
@@ -0,0 +1,21 @@
+--- Imlib/load.c-orig 2012-06-16 20:19:27.000000000 +0200
++++ Imlib/load.c 2012-06-16 20:19:56.000000000 +0200
+@@ -420,6 +420,18 @@
+ #endif /* HAVE_LIBTIFF */
+
+ #ifdef HAVE_LIBGIF
++
++static void
++PrintGifError(void)
++{
++  char *Err = GifErrorString();
++
++  if (Err != NULL)
++    fprintf(stderr, "\nGIF-LIB error: %s.\n", Err);
++  else
++    fprintf(stderr, "\nGIF-LIB undefined error %d.\n", GifError());
++}
++
+ unsigned char      *
+ _LoadGIF(ImlibData * id, FILE *f, int *w, int *h, int *t)
+ {
_______________________________________________
[hidden email] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
To unsubscribe, send any mail to "[hidden email]"
Loading...