rev 11463 - in krap/libspectre/trunk/debian: . patches

Matthew Rosewarne mukidohime-guest at alioth.debian.org
Fri Jul 11 12:18:14 UTC 2008


Author: mukidohime-guest
Date: 2008-07-11 12:18:14 +0000 (Fri, 11 Jul 2008)
New Revision: 11463

Added:
   krap/libspectre/trunk/debian/patches/mozilla-fix.patch
Modified:
   krap/libspectre/trunk/debian/changelog
Log:
* patch libspectre from git to work around Mozilla's "creative" interpretation
  of the PostScript specification.


Modified: krap/libspectre/trunk/debian/changelog
===================================================================
--- krap/libspectre/trunk/debian/changelog	2008-07-11 00:21:38 UTC (rev 11462)
+++ krap/libspectre/trunk/debian/changelog	2008-07-11 12:18:14 UTC (rev 11463)
@@ -1,8 +1,9 @@
-libspectre (0.2.0.ds-2) UNRELEASED; urgency=low
+libspectre (0.2.0.ds-2) unstable; urgency=low
 
+  * Add mozilla-fix.patch to hack around Mozilla's broken PS. (Closes: #484645).
   * Fix watch file.
 
- -- Matthew Rosewarne <mrosewarne at inoutbox.com>  Thu, 14 Feb 2008 12:22:43 -0500
+ -- Matthew Rosewarne <mrosewarne at inoutbox.com>  Fri, 11 Jul 2008 07:58:55 -0400
 
 libspectre (0.2.0.ds-1) unstable; urgency=low
 

Added: krap/libspectre/trunk/debian/patches/mozilla-fix.patch
===================================================================
--- krap/libspectre/trunk/debian/patches/mozilla-fix.patch	                        (rev 0)
+++ krap/libspectre/trunk/debian/patches/mozilla-fix.patch	2008-07-11 12:18:14 UTC (rev 11463)
@@ -0,0 +1,23 @@
+diff -Nur libspectre-0.2.0/libspectre/ps.c libspectre-0.2.0.new/libspectre/ps.c
+--- libspectre-0.2.0/libspectre/ps.c	2007-12-08 11:38:09.000000000 -0500
++++ libspectre-0.2.0.new/libspectre/ps.c	2008-07-11 07:33:57.365383008 -0400
+@@ -950,6 +949,19 @@
+ 	doc->endsetup = position;
+ 	doc->lensetup = section_len - line_len;
+     }
++    /* BEGIN Mozilla fix. Some documents generated by mozilla
++       have resources between %%EndProlog and the first
++       page and there isn't any setup section. So instead
++       of including such resources in the first page,
++       we add them here as an implicit setup section
++    */
++    else if (doc->endprolog != position) {
++      doc->beginsetup = beginsection;
++      doc->endsetup = position;
++      doc->lensetup = section_len - line_len;
++      beginsection = 0;
++    }
++    /* END Mozilla fix */
+ 
+     /* BEGIN Windows NT fix ###jp###
+        Mark Pfeifer (pfeiferm%ppddev at comet.cmis.abbott.com) told me




More information about the pkg-kde-commits mailing list