pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] print/ghostscript duplex support for pxlmono and pxlcolor



For additional information, see
http://www.openprinting.org/show_driver.cgi?driver=pxlcolor

Quote:
"Due to a bug in Ghostscript Duplex does not work with the "pxlmono" and
the "pxlcolor" drivers. Here is a patch  for GPL Ghostscript 8.63. This patch
is needed so that the Duplex option of the PPDs from this site works. Setting
Duplex with PJL commands does not work."

"The patches are both committed to the Subversion of GPL Ghostscript, so they
are not needed any more in future versions."

NOTE: I only made a patch for duplex but not for the resolution patch that is
also provided there


I have tested ghostscript with the applied patch with pxlcolor and it works
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/print/ghostscript/distinfo,v
retrieving revision 1.17
diff -u -r1.17 distinfo
--- distinfo    3 Sep 2008 21:31:12 -0000       1.17
+++ distinfo    23 Oct 2008 09:48:10 -0000
@@ -3,6 +3,7 @@
 SHA1 (ghostscript-8.63.tar.bz2) = c97159d3cccb0b1b5fc409715c6321a7256717ec
 RMD160 (ghostscript-8.63.tar.bz2) = 817d5c1539d88be979c42f67a9246f690328da33
 Size (ghostscript-8.63.tar.bz2) = 15017410 bytes
+SHA1 (patch-aa) = 28b0a28da49d157674fc30aae5713e256cf706b9
 SHA1 (patch-ab) = 2477242c4c5f6b6feaaa217deb1aa37485f2fac5
 SHA1 (patch-ad) = 8b3b743b2d6405ea35bfb16970942ecd55702401
 SHA1 (patch-ae) = df329ac87f9ed97b76f0a7fff738050e8c35794a
Index: patches/patch-aa
===================================================================
RCS file: patches/patch-aa
diff -N patches/patch-aa
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-aa    23 Oct 2008 09:48:10 -0000
@@ -0,0 +1,16 @@
+Fix duplex support for pxlmono and pxlcolor.
+
+--- src/gdevpx.c.orig  2008-10-23 11:44:10 +0200
++++ src/gdevpx.c       2008-10-23 11:44:22 +0200
+@@ -1149,11 +1149,6 @@
+     if (code < 0)
+       return code;
+ 
+-    xdev->page = 0;
+-    xdev->Duplex = false;
+-    xdev->MediaPosition = 0;
+-    xdev->Tumble = false;
+-
+     pclxl_page_init(xdev);
+     px_write_file_header(vdev->strm, dev);
+     xdev->media_size = pxeMediaSize_next;     /* no size selected */



Home | Main Index | Thread Index | Old Index