public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-libs/cairo/files: cairo-1.6.4-libpng-api-change.patch
@ 2008-08-21 13:20 Doug Goldstein (cardoe)
  0 siblings, 0 replies; only message in thread
From: Doug Goldstein (cardoe) @ 2008-08-21 13:20 UTC (permalink / raw
  To: gentoo-commits

cardoe      08/08/21 13:20:17

  Added:                cairo-1.6.4-libpng-api-change.patch
  Log:
  fix issue with libpng's API change. bug #235072
  (Portage version: 2.2_rc8/cvs/Linux 2.6.25-gentoo-r6 x86_64)

Revision  Changes    Path
1.1                  x11-libs/cairo/files/cairo-1.6.4-libpng-api-change.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/cairo/files/cairo-1.6.4-libpng-api-change.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/cairo/files/cairo-1.6.4-libpng-api-change.patch?rev=1.1&content-type=text/plain

Index: cairo-1.6.4-libpng-api-change.patch
===================================================================
diff -ru cairo-1.6.4/src/cairo-png.c cairo-1.6.4-mod/src/cairo-png.c
--- cairo-1.6.4/src/cairo-png.c	2008-04-11 17:07:25.000000000 -0400
+++ cairo-1.6.4-mod/src/cairo-png.c	2008-08-19 17:19:36.682399853 -0400
@@ -119,6 +119,14 @@
 }
 
 
+/* Starting with libpng-1.2.30, we must explicitly specify an output_flush_fn. 
+ * Otherwise, we will segfault if we are writing to a stream. */
+static void
+png_simple_output_flush_fn (png_structp png_ptr)
+{
+    return;
+}
+
 static cairo_status_t
 write_png (cairo_surface_t	*surface,
 	   png_rw_ptr		write_func,
@@ -179,7 +187,7 @@
 	goto BAIL3;
 #endif
 
-    png_set_write_fn (png, closure, write_func, NULL);
+    png_set_write_fn (png, closure, write_func, png_simple_output_flush_fn);
 
     switch (image->format) {
     case CAIRO_FORMAT_ARGB32:






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-21 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 13:20 [gentoo-commits] gentoo-x86 commit in x11-libs/cairo/files: cairo-1.6.4-libpng-api-change.patch Doug Goldstein (cardoe)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox