imlib vs. giflib update
Jim Pingle
jim at pingle.org
Mon Jun 4 18:24:41 UTC 2012
The imlib port (/usr/ports/graphics/imlib) is still using source that
references PrintGifError() which doesn't exist in the new giflib, so
some programs are failing to link with a recent imlib.
Patching these four references to that old function to use GifError()
instead seems to make it happy for me, the same fix was done in some KDE
source after the giflib migration.
--- ./Imlib/load.c.orig 2012-06-04 13:35:37.000000000 -0400
+++ ./Imlib/load.c 2012-06-04 13:36:00.000000000 -0400
@@ -451,14 +451,14 @@
{
if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
{
- PrintGifError();
+ GifError();
rec = TERMINATE_RECORD_TYPE;
}
if ((rec == IMAGE_DESC_RECORD_TYPE) && (!done))
{
if (DGifGetImageDesc(gif) == GIF_ERROR)
{
- PrintGifError();
+ GifError();
rec = TERMINATE_RECORD_TYPE;
}
*w = gif->Image.Width;
--- ./gdk_imlib/io-gif.c.orig 2012-06-04 13:36:12.000000000 -0400
+++ ./gdk_imlib/io-gif.c 2012-06-04 13:36:25.000000000 -0400
@@ -43,14 +43,14 @@
{
if (DGifGetRecordType(gif, &rec) == GIF_ERROR)
{
- PrintGifError();
+ GifError();
rec = TERMINATE_RECORD_TYPE;
}
if ((rec == IMAGE_DESC_RECORD_TYPE) && (!done))
{
if (DGifGetImageDesc(gif) == GIF_ERROR)
{
- PrintGifError();
+ GifError();
rec = TERMINATE_RECORD_TYPE;
}
*w = gif->Image.Width;
--
Jim
More information about the freebsd-gnome
mailing list