[Pkg-gs-devel] r104 - in ghostscript/trunk/debian: . patches

Masayuki Hatta mhatta at alioth.debian.org
Sun Jan 4 02:15:23 UTC 2009


Author: mhatta
Date: Sun Jan  4 02:15:22 2009
New Revision: 104

Log:
Added 32_improve-handling-of-media-size-changes-from-gv.dpatch.


Added:
   ghostscript/trunk/debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch   (contents, props changed)
Modified:
   ghostscript/trunk/debian/changelog
   ghostscript/trunk/debian/control
   ghostscript/trunk/debian/patches/00list
   ghostscript/trunk/debian/rules

Modified: ghostscript/trunk/debian/changelog
==============================================================================
--- ghostscript/trunk/debian/changelog	(original)
+++ ghostscript/trunk/debian/changelog	Sun Jan  4 02:15:22 2009
@@ -1,13 +1,14 @@
 ghostscript (8.63.dfsg.1-1) unstable; urgency=low
 
   [Masayuki Hatta]
-  	
   * Maintainer upload, New upstream release.
-  * Acknowledged NMUs, thanks tv - closes: #472645, #495703. #503712
+  * Acknowledged NMUs, thanks tv - closes: #472645, #495703, #503712
+  * debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch: 
+    Allow gv to change the image and media size (Upstream bug #688943) 
+    - closes: #142228
   * Sync'd with the Ubuntu 8.63.dfsg.1-0ubuntu13.
 	
   [Till Kamppeter]
-  	
   * debian/libgs8.shlibs: Removed. All libgs8 versions should have the same
     API and ABI. The artificial restriction set by this file required all
     reverse dependencies to be rebuilt for every stable release of Ghostscript.
@@ -27,8 +28,7 @@
     "DitheringType" option. With PDF input Ghostscript crashes, with
     PostScript input the "DitheringType" option was probably ignored
     (Upstream bug #690032).
-  * debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory.patch.d
-patch:
+  * debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory.patch.dpatch:
     Fixed several bugs in the "cups" (CUPS Raster) output device:
      - Ghostscript crashed with PDF input data
      - The "Duplex" and "MediaWeight" options were ignored
@@ -40,8 +40,6 @@
   * debian/local/pdftoraster/pdftoraster.c,
     debian/local/pdftoraster/pdftoraster.convs, debian/rules: Added pdftoraster
     filter from the Ghostscript SVN repository - closes: #505282
-  * debian/control: Added conflict with cups < 1.3.9-4 because the pdftoraster
-    filter was there before.
   * debian/patches/50_lips4-floating-point-exception: Fixed floating-point
     exception in "lips4" and other drivers (Upstream bug #690122).
   * debian/patches/52_cups-device-logging.dpatch: Made logging of the "cups"
@@ -70,12 +68,11 @@
   * debian/patches/67_too-big-temp-files-2.dpatch: Complete fix for the too big
     temporary files. Now the bug is completely fixed. Temp files are not much
     bigger than the jobs themselves now (Upstream bug #690133).
-  * debian/patches/70_take-into-account-data-in-stream-buffer-before-refill.dpat
-ch:
+  * debian/patches/70_take-into-account-data-in-stream-buffer-before-refill.dpatch:
     Certain files lead to a Ghostscript error due to wrong handling of the
     stream buffer (Upstream bug #690090).
-
- -- Masayuki Hatta (mhatta) <mhatta at debian.org>  Sun, 04 Jan 2009 03:08:51 +0900
+  
+ -- Masayuki Hatta (mhatta) <mhatta at debian.org>  Sun, 04 Jan 2009 09:30:13 +0900
 
 ghostscript (8.62.dfsg.1-3.2) unstable; urgency=low
 
@@ -197,7 +194,6 @@
 
  -- Masayuki Hatta (mhatta) <mhatta at debian.org>  Sun, 13 Jan 2008 02:13:25 +0900
 
-
 ghostscript (8.61.dfsg.1~svn8187-3) unstable; urgency=low
 
   * Maintainer upload.

Modified: ghostscript/trunk/debian/control
==============================================================================
--- ghostscript/trunk/debian/control	(original)
+++ ghostscript/trunk/debian/control	Sun Jan  4 02:15:22 2009
@@ -8,7 +8,7 @@
 
 Package: ghostscript
 Architecture: any
-Conflicts: gs (<< 8.63), gs-esp (<< 8.63), gs-gpl (<< 8.63), gs-afpl (<< 8.63), gs-aladdin (<< 8.63), gs-cjk-resource (<< 1.20010910-1), gs-pdfencrypt (<< 7.00), gs-common (<< 8.63), cups (<< 1.3.9-4)
+Conflicts: gs (<< 8.63), gs-esp (<< 8.63), gs-gpl (<< 8.63), gs-afpl (<< 8.63), gs-aladdin (<< 8.63), gs-cjk-resource (<< 1.20010910-1), gs-pdfencrypt (<< 7.00), gs-common (<< 8.63)
 Replaces: gs (<< 8.63), gs-esp (<< 8.63), gs-gpl (<< 8.63), gs-afpl (<< 8.63), gs-aladdin (<< 8.63), gs-pdfencrypt (<< 7.00), gs-common (<< 8.63)
 Provides: gs-pdfencrypt, postscript-viewer, gs-common
 Recommends: psfontmgr
@@ -30,7 +30,7 @@
 Package: gs
 Architecture: all
 Priority: extra
-Depends:  ghostscript, ghostscript-x
+Depends:  ghostscript, ghostscript-x, ${misc:Depends}
 Description: Transitional package
  This dummy package is provided for a smooth transition from the
  previous gs package (the package name has been changed to ghostscript).
@@ -39,7 +39,7 @@
 Package: gs-esp
 Architecture: all
 Priority: extra
-Depends:  ghostscript, ghostscript-x
+Depends:  ghostscript, ghostscript-x, ${misc:Depends}
 Description: Transitional package
  This dummy package is provided for a smooth transition from the
  previous gs-esp package (the package is replaced by ghostscript).

Modified: ghostscript/trunk/debian/patches/00list
==============================================================================
--- ghostscript/trunk/debian/patches/00list	(original)
+++ ghostscript/trunk/debian/patches/00list	Sun Jan  4 02:15:22 2009
@@ -15,6 +15,7 @@
 29_gs_css_fix
 30_ps2pdf_man_improvement
 31_fix-gc-sigbus
+32_improve-handling-of-media-size-changes-from-gv
 35_disable_libcairo
 38_pxl-duplex
 39_pxl-resolution

Added: ghostscript/trunk/debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch
==============================================================================
--- (empty file)
+++ ghostscript/trunk/debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch	Sun Jan  4 02:15:22 2009
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 32_improve-handling-of-media-size-changes-from-gv.dpatch by Masayuki Hatta (mhatta) <mhatta at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad ghostscript-8.63.dfsg.1~/src/gdevxini.c ghostscript-8.63.dfsg.1/src/gdevxini.c
+--- ghostscript-8.63.dfsg.1~/src/gdevxini.c	2007-09-25 22:31:24.000000000 +0900
++++ ghostscript-8.63.dfsg.1/src/gdevxini.c	2009-01-04 11:09:44.000000000 +0900
+@@ -912,6 +912,18 @@
+ 	    gs_closedevice(dev);
+ 	xdev->pwin = (Window) pwin;
+     }
++    /* Do not change the image size set by Ghostview */
++    /* This gives the Ghostview user control over the /setpage entry */
++    if (xdev->is_open && xdev->ghostview) {
++       dev->width = values.width;
++       dev->height = values.height;
++       dev->x_pixels_per_inch = values.x_pixels_per_inch;
++       dev->y_pixels_per_inch = values.y_pixels_per_inch;
++       dev->HWResolution[0] = values.HWResolution[0];
++       dev->HWResolution[1] = values.HWResolution[1];
++       dev->MediaSize[0] = values.MediaSize[0];
++       dev->MediaSize[1] = values.MediaSize[1];
++    }
+     /* If the device is open, resize the window. */
+     /* Don't do this if Ghostview is active. */
+     if (xdev->is_open && !xdev->ghostview &&

Modified: ghostscript/trunk/debian/rules
==============================================================================
--- ghostscript/trunk/debian/rules	(original)
+++ ghostscript/trunk/debian/rules	Sun Jan  4 02:15:22 2009
@@ -121,11 +121,11 @@
 	rm -f $(CURDIR)/debian/ghostscript/usr/share/doc/ghostscript/README
 	rm -rf $(CURDIR)/debian/ghostscript/usr/share/doc/ghostscript/examples
 	GSVERSION=`ls -1 $(CURDIR)/debian/ghostscript/usr/share/ghostscript/ | head -1`; \
-	for font in $(CURDIR)/debian/ghostscript/usr/share/ghostscript/$$GSVERSION/Resource/Font/*; do \
-		file="$$(basename $$font)"; \
-		[ "$$file" = "Dingbats" ] || [ "$$file" = "StandardSymL" ] \
-		|| rm $$font; \
-	done
+#	for font in $(CURDIR)/debian/ghostscript/usr/share/ghostscript/$$GSVERSION/Resource/Font/*; do \
+#		file="$$(basename $$font)"; \
+#		[ "$$file" = "Dingbats" ] || [ "$$file" = "StandardSymL" ] \
+#		|| rm $$font; \
+#	done
 
 install/libgs8::
 	# Move libgs into the libgs8 package



More information about the Pkg-gs-devel mailing list