Package: gimp
Version: 2.6.10-1
Severity: normal
Tags: patch

When using version 1.10 or later of libcairo2 (e.g. from
mozilla.debian.net's squeeze-backports repository), gimp 2.6.10's
print and print preview are broken.

In particular: the print preview window shows a blank page, and when
printing, a network printer appears to see a job coming in, but it
never produces a page.

Upstream appears to have noticed as
https://bugzilla.gnome.org/show_bug.cgi?id=631199 and fixed this in
commit 6be41a6675007a0c7328453c654bcda5a2b875b0, which applies with a
bit of fuzz to 2.6.10-1.  I'm attaching it (de-fuzzed) to this bug
report.

I think this might be a candidate for the next point release, as i
know there are a lot of people running stable plus the
mozilla.debian.net packages for the sake of a more up-to-date browser,
and i don't think this causes any regressions.

Testing and confirmation from others would be appreciated, of course!

Regards,

        --dkg

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.1.0-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gimp depends on:
ii  gimp-data             2.6.10-1           Data files for GIMP
ii  libaa1                1.4p5-38           ascii art library
ii  libatk1.0-0           1.30.0-1           The ATK accessibility toolkit
ii  libbabl-0.0-0         0.0.22-1           Dynamic, any to any, pixel format 
ii  libc6                 2.11.2-10          Embedded GNU C Library: Shared lib
ii  libcairo2             1.10.2-6~bpo60+1   The Cairo 2D vector graphics libra
ii  libdbus-1-3           1.2.24-4+squeeze1  simple interprocess messaging syst
ii  libdbus-glib-1-2      0.88-2.1           simple interprocess messaging syst
ii  libexif12             0.6.19-1           library to parse EXIF files
ii  libfontconfig1        2.8.0-2.1          generic font configuration library
ii  libfreetype6          2.4.2-2.1+squeeze3 FreeType 2 font engine, shared lib
ii  libgegl-0.0-0         0.0.22-2+b1        Generic Graphics Library
ii  libgimp2.0            2.6.10-1           Libraries for the GNU Image Manipu
ii  libglib2.0-0          2.24.2-1           The GLib library of C routines
ii  libgtk2.0-0           2.20.1-2           The GTK+ graphical user interface 
ii  libhal1               0.5.14-3           Hardware Abstraction Layer - share
ii  libjpeg62             6b1-1              The Independent JPEG Group's JPEG 
ii  liblcms1              1.18.dfsg-1.2+b3   Color management library
ii  libmng1               1.0.10-1+b1        Multiple-image Network Graphics li
ii  libpango1.0-0         1.28.3-1+squeeze2  Layout and rendering of internatio
ii  libpng12-0            1.2.44-1+squeeze1  PNG library - runtime
ii  libpoppler-glib4      0.12.4-1.2         PDF rendering library (GLib-based 
ii  librsvg2-2            2.26.3-1           SAX-based renderer library for SVG
ii  libtiff4              3.9.4-5+squeeze3   Tag Image File Format (TIFF) libra
ii  libwebkit-1.0-2       1.2.7-0+squeeze1   Web content engine library for Gtk
ii  libwmf0.2-7           0.2.8.4-6.1+b1     Windows metafile conversion librar
ii  libx11-6              2:1.3.3-4          X11 client-side library
ii  libxext6              2:1.1.2-1          X11 miscellaneous extension librar
ii  libxfixes3            1:4.0.5-1          X11 miscellaneous 'fixes' extensio
ii  libxmu6               2:1.0.5-2          X11 miscellaneous utility library
ii  libxpm4               1:3.5.8-1          X11 pixmap library
ii  python                2.6.6-3+squeeze6   interactive high-level object-orie
ii  python-gtk2           2.17.0-4           Python bindings for the GTK+ widge
ii  python-support        1.0.10             automated rebuilding support for P
ii  zlib1g                1:1.2.3.4.dfsg-3   compression library - runtime

gimp recommends no packages.

Versions of packages gimp suggests:
pn  ghostscript                   <none>     (no description available)
pn  gimp-data-extras              <none>     (no description available)
pn  gimp-help-en | gimp-help      <none>     (no description available)
ii  gvfs-backends                 1.6.4-3    userspace virtual filesystem - bac
ii  libasound2                    1.0.23-2.1 shared library for ALSA applicatio

-- debconf-show failed
>From c58dc682e6dbbcf2ad5eb162ae84e15f12ae74a1 Mon Sep 17 00:00:00 2001
From: Sven Neumann <s...@gimp.org>
Date: Sun, 03 Oct 2010 12:05:20 +0000
Subject: Bug 631199 - Printing and Print preview broken with cairo 1.10

Add missing calls to cairo_surface_mark_dirty().
(cherry picked from commit 6be41a6675007a0c7328453c654bcda5a2b875b0)
---
Index: gimp-2.6.10/plug-ins/print/print-draw-page.c
===================================================================
--- gimp-2.6.10.orig/plug-ins/print/print-draw-page.c   2010-07-02 
18:51:59.000000000 -0400
+++ gimp-2.6.10/plug-ins/print/print-draw-page.c        2012-01-11 
15:41:07.000000000 -0500
@@ -240,6 +240,8 @@
 
   gimp_drawable_detach (drawable);
 
+  cairo_surface_mark_dirty (surface);
+
   return surface;
 }
 
Index: gimp-2.6.10/plug-ins/print/print-preview.c
===================================================================
--- gimp-2.6.10.orig/plug-ins/print/print-preview.c     2010-07-02 
18:51:59.000000000 -0400
+++ gimp-2.6.10/plug-ins/print/print-preview.c  2012-01-11 15:41:07.000000000 
-0500
@@ -864,5 +864,7 @@
 
   g_free (data);
 
+  cairo_surface_mark_dirty (surface);
+
   return surface;
 }

Reply via email to