--- ghostscript-8.64.dfsg.1.orig/debian/gs-afpl.preinst +++ ghostscript-8.64.dfsg.1/debian/gs-afpl.preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for gs-esp +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Do away with update-alternative for /usr/bin/gs, we have one + # grand unified Ghostscript now! + if dpkg --compare-versions "$2" lt-nl "8.63.dfsg.1-1"; then + update-alternatives --remove-all gs || true + update-alternatives --remove-all gs.1 || true + fi + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ghostscript-8.64.dfsg.1.orig/debian/ghostscript.preinst +++ ghostscript-8.64.dfsg.1/debian/ghostscript.preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for ghostscript +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Do away with update-alternative for /usr/bin/gs, we have one + # grand unified Ghostscript now! + if dpkg --compare-versions "$2" lt-nl "8.63.dfsg.1-1"; then + update-alternatives --remove-all gs || true + update-alternatives --remove-all gs.1 || true + fi + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ghostscript-8.64.dfsg.1.orig/debian/changelog +++ ghostscript-8.64.dfsg.1/debian/changelog @@ -0,0 +1,1713 @@ +ghostscript (8.64.dfsg.1-0ubuntu1) jaunty; urgency=low + + * New upstream release (Ghostscript 8.64 final release) + o No functional change. This is only to let the final release not + appear as a release candidate in the help output and documentation. + + -- Till Kamppeter Tue, 03 Feb 2009 21:42:54 +0100 + +ghostscript (8.64.dfsg.1~svn9432-0ubuntu1) jaunty; urgency=low + + * New upstream release (SVN rev 9432, RC3) + o Fix regression of X output being broken with large images or other + cases of the image buffer being used (Upstream bug #690222, #690260). + o Fixed the bbox output device for example3.ps in LP: #160203. + + -- Till Kamppeter Mon, 02 Feb 2009 21:42:53 +0100 + +ghostscript (8.64.dfsg.1~svn9415-0ubuntu1) jaunty; urgency=low + + * New upstream release (SVN rev 9415, RC2) + o Fix problem of X display not completely clearing the previous page + before drawing the next page (Upstream bug #690255). + + -- Till Kamppeter Wed, 28 Jan 2009 00:12:16 +0100 + +ghostscript (8.64.dfsg.1~svn9403-0ubuntu1) jaunty; urgency=low + + * New upstream release (SVN rev 9403, RC1) + o Output of PDF-to-PostScript conversion was not DSC-conforming and + prevented CUPS from switching trays when the page size changes in + the middle of the document (LP: #310575) + o All but one Debian patches are incorporated upstream now. + * debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch: + Removed, applied upstream. + + -- Till Kamppeter Tue, 27 Jan 2009 10:28:07 +0100 + +ghostscript (8.64.dfsg.1~svn9377-0ubuntu1) jaunty; urgency=low + + * New upstream release (SVN rev 9377) + o Fixes many bugs concerning PDF rendering, to make the PDF printing + workflow correctly working. + o Fixes long-standing bugs in many drivers, like input paper tray and + duplex options not working for the built-in PCL 4, 5, 5c, 5e, and + 6/XL drivers, PDF input not working for bjc600, bjc800, and cups + output devices, several options not working and uninitialized + memory with cups output device. + o Merged nearly all patches of the Ubuntu and Debian packages upstream. + o Fixes LP: #317810, LP: #314439, LP: #314018. + * debian/patches/03_libpaper_support.dpatch, + debian/patches/11_gs-cjk_font_glyph_handling_fix.dpatch, + debian/patches/12_gs-cjk_vertical_writing_metrics_fix.dpatch, + debian/patches/13_gs-cjk_cjkps_examples.dpatch, + debian/patches/20_bbox_segv_fix.dpatch, + debian/patches/21_brother_7x0_gdi_fix.dpatch, + debian/patches/22_epsn_margin_workaround.dpatch, + debian/patches/24_gs_man_fix.dpatch, + debian/patches/25_toolbin_insecure_tmp_usage_fix.dpatch, + debian/patches/26_assorted_script_fixes.dpatch, + debian/patches/29_gs_css_fix.dpatch, + debian/patches/30_ps2pdf_man_improvement.dpatch, + debian/patches/31_fix-gc-sigbus.dpatch, + debian/patches/34_ftbfs-on-hurd-fix.dpatch, + debian/patches/35_disable_libcairo.dpatch, + debian/patches/38_pxl-duplex.dpatch, + debian/patches/39_pxl-resolution.dpatch, + debian/patches/42_gs-init-ps-delaybind-fix.dpatch, + debian/patches/45_bjc600-bjc800-pdf-input.dpatch, + debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory-fix.dpatch, + debian/patches/50_lips4-floating-point-exception.dpatch, + debian/patches/52_cups-device-logging.dpatch, + debian/patches/55_pcl-input-slot-fix.dpatch, + debian/patches/57_pxl-input-slot-fix.dpatch, + debian/patches/60_pxl-cups-driver-pdf.dpatch, + debian/patches/62_onebitcmyk-pdf.dpatch, + debian/patches/65_too-big-temp-files-1.dpatch, + debian/patches/67_too-big-temp-files-2.dpatch, + debian/patches/70_take-into-account-data-in-stream-buffer-before-refill.dpatch: + Removed, applied upstream. + * debian/patches/01_docdir_fix_for_debian.dpatch, + debian/patches/02_gs_man_fix_debian.dpatch, + debian/patches/01_docdir-fix-for-debian.dpatch, + debian/patches/02_docdir-fix-for-debian.dpatch: Renamed patches to + make merging with Debian easier. + * debian/patches/32_improve-handling-of-media-size-changes-from-gv.dpatch, + debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch: + regenerated for new source directory structure. + * debian/rules: Corrected paths to remove cidfmap (it is in Resource/Init/ + in GS 8.64) and to install headers (source paths are psi/ and base/ now). + * debian/rules: Remove all fontmaps, as DeFoMa replaces them. + * debian/local/pdftoraster/pdftoraster.c, + debian/local/pdftoraster/pdftoraster.convs, debian/rules: Removed + added pdftoraster filter and use the one which comes with Ghostscript. + * debian/ghostscript.links: s/8.63/8.64/ + + -- Till Kamppeter Tue, 20 Jan 2009 16:40:45 +0100 + +ghostscript (8.63.dfsg.1-2ubuntu2) jaunty; urgency=low + + * debian/rules: Removed /usr/share/ghostscript/8.63/lib/cidfmap, so that + DeFoMa's cidfmap gets used. Otherwise Ubuntu's CJK fonts will not get + found by Ghostscript (Thanks to Koji Otani from BBR Inc., Japan for the + hint). + + -- Till Kamppeter Tue, 6 Jan 2009 09:40:45 +0100 + +ghostscript (8.63.dfsg.1-2ubuntu1) jaunty; urgency=low + + * debian/patches/02_gs_man_fix_debian.dpatch: Corrected paths in the man + page. + * debian/patches/14_gs-cjk_big_cmap_post_table.dpatch, + debian/patches/23_gdevxini_segv_fix.dpatch, + debian/patches/28_print_encrypted_PDFs_from_adobe_reader_8.dpatch: + Removed obsolete patches which were not applied any more for longer time. + * debian/patches/48_cups-output-device-pdf-duplex-uninitialized-memory.patch.dpatch: + Removed accidentally generated file. + * Merge from debian unstable, remaining changes: + - gs-esp and gs-common depend only on ghostscript, not on ghostscript-x, + as gs-esp had already split off gs-esp-x in Ubuntu + - Resource/Font directory left in the .orig.tar.gz, therefore also left + the lines for removing faulty fonts in debian/rules active. + + -- Till Kamppeter Mon, 5 Jan 2009 12:21:45 +0100 + +ghostscript (8.63.dfsg.1-2) unstable; urgency=low + + * libgs-dev: put versioned dependency on libgs8 - closes: #510691 + + -- Masayuki Hatta (mhatta) Sun, 04 Jan 2009 12:09:59 +0900 + +ghostscript (8.63.dfsg.1-1) unstable; urgency=low + + [Masayuki Hatta] + * Maintainer upload, New upstream release. + * 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 + * debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch: + Fixed zooming problem in gv (Upstream bug #689547) + - closes: #419183 + * debian/patches//34_ftbfs-on-hurd-fix.dpatch: + Fixed FTBFS on hurd-i386 - closes: #475704 + * Added Homepage, Vcs-Svn and Vcs-Browser headers in control. + * 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. + * debian/patches/35_disable_libcairo.dpatch: Added possibility to + compile Ghostscript without the "cairo" output device. The device + is still in experimental state and with its dependency on libcairo + it pulls in a dependency on X. + * debian/control, debian/rules: Build Ghostscript without the "cairo" + output device. + * debian/patches/38_pxl-duplex.dpatch: The Duplex option of the "pxlmono" + and "pxlcolor" drivers did not work. + * debian/patches/39_pxl-resolution.dpatch: The resolution must be also set + as PJL command for the "pxlmono" and "pxlcolor" drivers. + * debian/patches/42_gs-init-ps-delaybind-fix.dpatch: Make "ps2ascii" working + again (Upstream bug #690124) - closes: #81430, #229748, #131528 + * debian/patches/45_bjc600-bjc800-pdf-input.dpatch: Fix setting of the + "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.dpatch: + Fixed several bugs in the "cups" (CUPS Raster) output device: + - Ghostscript crashed with PDF input data + - The "Duplex" and "MediaWeight" options were ignored + - There was uninitialized memory and wrong usage of pointers, potential + cause for segmentation faults or even vulnerabilities + - There were mismatches in data types, leading to possible breakage + of the "AdvanceDistance", "MediaWeight", and "cupsStringXX" options. + (Upstream bug #690101). + * debian/local/pdftoraster/pdftoraster.c, + debian/local/pdftoraster/pdftoraster.convs, debian/rules: Added pdftoraster + filter from the Ghostscript SVN repository - closes: #505282 + * 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" + output device much less verbose. The log of one jub in debug mode did not + fit into the maximum log file size of CUPS. + * debian/patches/55_pcl-input-slot-fix.dpatch: Made the paper tray selection + via "-dMediaPosition=..." in the PCL 4/5/5e drivers work (Upstream bug + #690182). + * debian/patches/57_pxl-input-slot-fix.dpatch: Made the paper tray selection + via "-dMediaPosition=..." in the PCL 6/XL drivers work. + * debian/patches/60_pxl-cups-driver-pdf.dpatch: Made the PCL-XL CUPS filter + and PPDs work with PDF input. + * debian/patches/62_onebitcmyk-pdf.dpatch: Check the whole Decode array to + detect special cases of identity and inverse decoding in PDF files + (Upstream bug #690178). + * debian/ghostscript.postinst: Added automatic update of the PPD files + of already existing print queues. + * debian/ghostscript.postinst: Do not try to update the PPDs of existing + print queues if CUPS is not installed or not running. + * debian/patches/60_pxl-cups-driver-pdf.dpatch: The pstopxl filter did not + remove its temporary file after finishing. + * debian/patches/65_too-big-temp-files-1.dpatch: Ghostscript produced much + too big temporary files (> 10 GB) when printing photos from GNOME apps in + 1200 dpi. Part 1 of the fix which reduces the temp file size to less than + 2 GB (Upstream bug #690133). + * 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.dpatch: + Certain files lead to a Ghostscript error due to wrong handling of the + stream buffer (Upstream bug #690090). + + -- Masayuki Hatta (mhatta) Sun, 04 Jan 2009 09:30:13 +0900 + +ghostscript (8.63.dfsg.1-0ubuntu13) jaunty; urgency=low + + * 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 (LP: #306125, upstream bug #690090). + + * 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 (LP: #288570, upstream bug #690133). + + -- Till Kamppeter Sun, 14 Dec 2008 15:37:45 +0100 + +ghostscript (8.63.dfsg.1-0ubuntu12) jaunty; urgency=low + + * debian/patches/65_too-big-temp-files-1.dpatch: Ghostscript produced much too + big temporary files (> 10 GB) when printing photos from GNOME apps in + 1200 dpi. Part 1 of the fix which reduces the temp file size to less than + 2 GB (LP: #288570, upstream bug #690133). + + -- Till Kamppeter Wed, 3 Dec 2008 23:37:45 +0100 + +ghostscript (8.63.dfsg.1-0ubuntu11) jaunty; urgency=low + + * debian/patches/60_pxl-cups-driver-pdf.dpatch: The pstopxl filter did not + remove its temporary file after finishing. + + -- Till Kamppeter Sat, 29 Nov 2008 13:37:45 +0100 + +ghostscript (8.63.dfsg.1-0ubuntu10) jaunty; urgency=low + + * debian/ghostscript.postinst: Do not try to update the PPDs of existing + print queues if CUPS is not installed or not running (LP: #302532). + + -- Till Kamppeter Wed, 26 Nov 2008 22:26:45 +0100 + +ghostscript (8.63.dfsg.1-0ubuntu9) jaunty; urgency=low + + * debian/ghostscript.postinst: Added automatic update of the PPD files + of already existing print queues. + + -- Till Kamppeter Wed, 26 Nov 2008 18:18:22 +0100 + +ghostscript (8.63.dfsg.1-0ubuntu8) jaunty; urgency=low + + * Release for assorted upstream fixes. + + * debian/patches/52_cups-device-logging.dpatch: Made logging of the "cups" + output device much less verbose. The log of one jub in debug mode did not + fit into the maximum log file size of CUPS. + + * debian/patches/55_pcl-input-slot-fix.dpatch: Made the paper tray selection + via "-dMediaPosition=..." in the PCL 4/5/5e drivers work (Upstream bug + #690182). + + * debian/patches/57_pxl-input-slot-fix.dpatch: Made the paper tray selection + via "-dMediaPosition=..." in the PCL 6/XL drivers work. + + * debian/patches/60_pxl-cups-driver-pdf.dpatch: Made the PCL-XL CUPS filter + and PPDs work with PDF input. + + * debian/patches/62_onebitcmyk-pdf.dpatch: Check the whole Decode array to + detect special cases of identity and inverse decoding in PDF files + (Upstream bug #690178). + + -- Till Kamppeter Wed, 26 Nov 2008 11:30:22 +0200 + +ghostscript (8.63.dfsg.1-0ubuntu7) jaunty; urgency=low + + * debian/local/pdftoraster/pdftoraster.c, + debian/local/pdftoraster/pdftoraster.convs, debian/rules: Added pdftoraster + filter from the Ghostscript SVN repository (LP: #290395). + + * 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). + + -- Till Kamppeter Tue, 11 Nov 2008 10:33:22 +0200 + +ghostscript (8.63.dfsg.1-0ubuntu6) intrepid; urgency=low + + * debian/patches/42_gs-init-ps-delaybind-fix.dpatch: Make "ps2ascii" working + again (LP: #281419, upstream bug #690124). + + * debian/patches/45_bjc600-bjc800-pdf-input.dpatch: Fix setting of the + "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.dpatch: + Fixed several bugs in the "cups" (CUPS Raster) output device: + - Ghostscript crashed with PDF input data + - The "Duplex" and "MediaWeight" options were ignored + - There was uninitialized memory and wrong usage of pointers, potential + cause for segmentation faults or even vulnerabilities + - There were mismatches in data types, leading to possible breakage + of the "AdvanceDistance", "MediaWeight", and "cupsStringXX" options. + (Upstream bug #690101). + + -- Till Kamppeter Sun, 19 Oct 2008 12:48:22 +0200 + +ghostscript (8.63.dfsg.1-0ubuntu5) intrepid; urgency=low + + * debian/patches/38_pxl-duplex.dpatch: The Duplex option of the "pxlmono" + and "pxlcolor" drivers did not work (part 1 of the fix for LP: #282738). + + * debian/patches/39_pxl-resolution.dpatch: The resolution must be also set + as PJL command for the "pxlmono" and "pxlcolor" drivers. + + -- Till Kamppeter Mon, 13 Oct 2008 22:55:22 +0200 + +ghostscript (8.63.dfsg.1-0ubuntu4) intrepid; urgency=low + + * debian/control, debian/rules: Merge ghostscript-fonts back into + ghostscript, since this is not needed at present. + * debian/rules: Drop most of the fonts from ghostscript since gsfonts + ships newer versions. + + -- Steve Langasek Thu, 21 Aug 2008 07:29:40 +0000 + +ghostscript (8.63.dfsg.1-0ubuntu3) intrepid; urgency=low + + * debian/rules: Fixed typo (LP: #256975). + * debian/ghostscript.links: s/8.62/8.63/ + * debian/patches/35_disable_libcairo.dpatch: Added possibility to + compile Ghostscript without the "cairo" output device. The device + is still in experimental state and with its dependency on libcairo + it pulls in a dependency on X. + * debian/control, debian/rules: Build Ghostscript without the "cairo" + output device (LP: #256859). + + -- Till Kamppeter Mon, 11 Aug 2008 17:10:22 +0200 + +ghostscript (8.63.dfsg.1-0ubuntu2) intrepid; urgency=low + + * debian/control, debian/rules: Split the fonts off into its own + "ghostscript-fonts" package. Changes dependencies of "ghostscript" + package that either "ghostscript-fonts" or "gsfonts" can be used. + + -- Till Kamppeter Mon, 11 Aug 2008 10:10:22 +0200 + +ghostscript (8.63.dfsg.1-0ubuntu1) intrepid; urgency=low + + * New upstream release + * Merge from debian unstable, remaining changes: + - gs-esp and gs-common depend only on ghostscript, not on ghostscript-x, + as gs-esp had already split off gs-esp-x in Ubuntu + * debian/patches/12_gs-cjk_vertical_writing_metrics_fix.dpatch, + debian/patches/30_ps2pdf_man_improvement.dpatch: Adapted to upstream + changes. + * debian/control: Added libcairo2-dev to the build dependencies, as + Ghostscript has a libcairo-based output device now. + + -- Till Kamppeter Tue, 5 Aug 2008 11:10:22 +0200 + +ghostscript (8.62.dfsg.1-3.2) unstable; urgency=low + + * Non-maintainer upload. + * Make ghostscript depend on gs-common to prevent removal. + Drop gs-common -> ghostscript-x dependency to not force the + X version on all users. Hopefully Closes: #503712. + + -- Thomas Viehmann Sun, 28 Dec 2008 11:18:18 +0100 + +ghostscript (8.62.dfsg.1-3.1) unstable; urgency=medium + + * Non-maintainer upload. + * Add (empty) gs-common.prerm to enable upgrades + etch->lenny to succeed when the old gs-common.prerm + fails. Closes: #495703. + Thanks to Niko Tyni for the bug report and analysis. + + -- Thomas Viehmann Sun, 31 Aug 2008 22:26:34 +0200 + +ghostscript (8.62.dfsg.1-3) unstable; urgency=low + + * Acknowledged NMU, thanks madcoder - closes: #453903 + * Bumped to Standards-Version: 3.8.0. + * Fixed fakeroot build error, thanks Bob Lindell - closes: #484712 + * ghostscript-doc.doc-base: Made file mask *.htm* instead of *.html. + + -- Masayuki Hatta (mhatta) Sun, 20 Jul 2008 08:59:17 +0900 + +ghostscript (8.62.dfsg.1-2.1ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + - gs-esp and gs-common depend only on ghostscript, not on ghostscript-x, + as gs-esp had already split off gs-esp-x in Ubuntu + * 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. + * debian/ghostscript.doc-base: Removed. The file conflicts with the + corresponding file of ghostscript-doc and it also points to documentation + files which make only part of ghostscript-doc, so the files can be not + installed when this doc-base file is installed. + * debian/ghostscript-doc.doc-base: Corrected file mask for all HTML files. + The Ghostscript documentation is in *.htm files. + + -- Till Kamppeter Mon, 9 Jun 2008 18:41:22 +0200 + +ghostscript (8.62.dfsg.1-2.1) unstable; urgency=high + + * Non-maintainer upload. + * Add patches/31_fix-gc-sigbus.dpatch to avoid sigbus/segfaults on sparc and + hppa (and probably errors on other architectures as well). + Closes: #453903. + + -- Pierre Habouzit Wed, 14 May 2008 15:25:03 +0200 + +ghostscript (8.62.dfsg.1-2) unstable; urgency=low + + * ghostscript: Tighten up versioned dependency on libgs8 + - closes: #470253 + * preinsts for each dummy packages now call update-alternatives + to make sure gs symlinks are removed before the new ghostscript + package is installed - closes: #449173 + + -- Masayuki Hatta (mhatta) Thu, 13 Mar 2008 02:30:51 +0900 + +ghostscript (8.62.dfsg.1-1) unstable; urgency=low + + * New upstream release. + * Removed Resource/Font for a minor licensing problem. + I'm now contacting the upstream, so they might be back soon. + * Fixed in the upstream - closes: #418706 + See also http://bugs.ghostscript.com/show_bug.cgi?id=689600 + * Now it can handle DEB_BUILD_OPTS as expected - closes: #446819 + * 10_ijs_krgb_support.dpatch: incorporated into the upstream, removed. + * 27_cups_filters_with_buffered_input.dpatch: incorporated into + the upstream, removed. + * 28_print_encrypted_PDFs_from_adobe_reader_8.dpatch: incorporated into + the upstream, removed. + * 31_CVE-2008-0411.dpatch: incorporated into the upstream, removed. + thanks Nico Golde for NMU. + * shlibs: loosen the libgs8 shlibs version specification, + thanks Sune Vuorela for pointing it out - closes: #469218 + * control: ghostscript doesn't provide gs, gs-esp, gs-gpl, gs-afpl + and gs-aladdin anymore - ghostscript-x does - closes: #448702, #462678 + * control: tighten up versioned Conflicts on dummy packages. + * rules: removes /usr/share/doc/ghostscript/README.gz explicitly + - closes: #460692 + * postinst: removes old /etc/alternative symlinks explicitly + - closes: #447495, #449061 + + -- Masayuki Hatta (mhatta) Sun, 09 Mar 2008 10:39:31 +0800 + +ghostscript (8.61.dfsg.1-1.1) unstable; urgency=high + + * Non-maintainer upload by security team. + * Fix stack based buffer overflow in the zseticcspace() function possibly + leading to arbitrary code exeuction via a crafted ps file. + (31_CVE-2008-0411.dpatch; Closes: #468190). + * Adjusting libgs shlibs file to match the new version number. + + -- Nico Golde Sat, 01 Mar 2008 11:18:27 +0100 + +ghostscript (8.61.dfsg.1-1ubuntu3) hardy; urgency=low + + * SECURITY UPDATE: buffer overflow in color space handling code + * debian/patches/31_CVE-2008-0411.dpatch: fix zseticcspace() to perform + range checks + * References + CVE-2008-0411 + + -- Jamie Strandboge Tue, 08 Apr 2008 11:58:11 -0400 + +ghostscript (8.61.dfsg.1-1ubuntu2) hardy; urgency=low + + * Fix debian/libgs8.shlibs for ubuntu version number + + -- Jonathan Riddell Sat, 16 Feb 2008 18:45:47 +0000 + +ghostscript (8.61.dfsg.1-1ubuntu1) hardy; urgency=low + + * Merge from debian unstable, remaining changes: + - gs-esp and gs-common depend only on ghostscript, not on ghostscript-x, + as gs-esp had already split off gs-esp-x in Ubuntu + - Updated the KRGB patch from HP to the newest upstream version with + added checks for null forward device in the graphic procedures to fix + segfault bug LP: #69905 and corrected "force banding" code in gsijs_open + for small images (IE: hagaki in landscape). + + -- Till Kamppeter Wed, 6 Feb 2008 17:41:22 +0100 + +ghostscript (8.61.dfsg.1-1) unstable; urgency=low + + [Masayuki Hatta] + + * New upstream release. + * Now pdf2dsc can handle PageLabels properly - closes: #266166 + * Bumped up Standards-Version to 3.7.3 (no physical changes). + * NEWS, README.Debian, copyright: Revised. + * NEWS: Fixed wrong version number - closes: #454514, #454515 + * Sorted out dpatches: + 01-09: Debian-specific patches + 10-19: Bigger 3rd party patches (KRGB & CJKV) + 20-: Temporary bug fixes (should be incorporated into the upstream) + * debian/patches/29_gs_css_fix.dpatch: Fixes a syntax error in gs.css + - closes: #457118 + * debian/patches/30_ps2pdf_man_improvement.dpatch: Improved manpages for + ps2pdf - closes: #193461 + + [Till Kamppeter] + + * debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes. + * debian/rules: Updated CUPS-related variables for "make install" calls. + * debian/rules: Remove /usr/include/ghostscript from the ghostscript + package, they go into libgs-dev. + * debian/patches/40_cups_filters_with_buffered_input.dpatch: Modified + cups/psto* filters to let Ghostscript always use buffered input. This + works around a Ghostscript bug which prevents printing encrypted PDF + files with Adobe Reader 8.1.1 and Ghostscript built as shared library + (Ghostscript bug #689577, Ubuntu bug LP: #172264) + * debian/patches/42_print_encrypted_PDFs_from_adobe_reader_8.dpatch: + Fixed printing of encrypted PDF files from Adobe Reader 8.1.1. This + is the real fix now and not only a workaround. (Ghostscript bug + #689577, Ubuntu bug LP: #172264). + + -- Masayuki Hatta (mhatta) Sun, 13 Jan 2008 02:13:25 +0900 + +ghostscript (8.61.dfsg.1-0ubuntu5) hardy; urgency=low + + * debian/rules: Do not ship README.gz in ghostscript, it collides with + ghostscript-doc. (LP: #185602, Debian #460692) + + -- Martin Pitt Wed, 30 Jan 2008 11:11:03 +0100 + +ghostscript (8.61.dfsg.1-0ubuntu4) hardy; urgency=low + + * debian/patches/09_ijs_krgb_support.dpatch: Updated the KRGB patch from + HP to the newest upstream version with added checks for null forward + device in the graphic procedures to fix segfault bug LP: #69905 and + corrected "force banding" code in gsijs_open for small images (IE: + hagaki in landscape). + + -- Till Kamppeter Wed, 23 Jan 2008 13:17:43 +0000 + +ghostscript (8.61.dfsg.1-0ubuntu3) hardy; urgency=low + + * debian/patches/42_print_encrypted_PDFs_from_adobe_reader_8.dpatch: + Fixed printing of encrypted PDF files from Adobe Reader 8.1.1. This is + the real fix now and not only a workaround. (Ghostscript bug #689577, + Ubuntu bug LP: #172264). + + -- Till Kamppeter Mon, 12 Dec 2007 12:17:43 +0000 + +ghostscript (8.61.dfsg.1-0ubuntu2) hardy; urgency=low + + * Merge with Debian unstable. Remaining Ubuntu changes: + - gs-esp and gs-common depend only on ghostscript, not on ghostscript-x, + as gs-esp had already split off gs-esp-x in Ubuntu + - Upstream version 8.61 final + * debian/patches/40_cups_filters_with_buffered_input.dpatch: Modified + cups/psto* filters to let Ghostscript always use buffered input. This + works around a Ghostscript bug which prevents printing encrypted PDF + files with Adobe Reader 8.1.1 and Ghostscript built as shared library + (Ghostscript bug #689577, Ubuntu bug LP: #172264) + + -- Till Kamppeter Wed, 5 Dec 2007 13:17:43 +0000 + +ghostscript (8.61.dfsg.1-0ubuntu1) hardy; urgency=low + + * New upstream release + o Final 8.61 release + * debian/patches/09_ijs_krgb_support.dpatch: Adapted to upstream changes. + * debian/rules: Updated CUPS-related variables for "make install" calls. + * debian/rules: Remove /usr/include/ghostscript from the ghostscript + package, they go into libgs-dev. + + -- Till Kamppeter Thu, 22 Nov 2007 12:17:43 +0000 + +ghostscript (8.61.dfsg.1~svn8187-3) unstable; urgency=low + + * Maintainer upload. + * Acknowledged NMU, thanks Cyril - closes: #422723, #430337 + * 06_libpaper_support.dpatch: fixed to cope with being called repeatedly. Thanks Carlos Garcia Campos - closes: #453048 + * debian/watch: Now it works. Thanks Raphael Geissert - closes: #449310 + + -- Masayuki Hatta (mhatta) Wed, 05 Dec 2007 06:06:23 +0900 + +ghostscript (8.61.dfsg.1~svn8187-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix long-standing implicit pointer conversions by backporting a fix from + SVN revision 8232, as pointed by Dann Frazier (Closes: #422723): + - 40_implicit_pointer_conversion_fix.dpatch added for this purpose. It + also contains an additional tweak for src/gpmisc.c so that no attempt + to use fdopen64() is made, fdopen() is the way to go. That tweak also + solves the FTBFS on GNU/kFreeBSD (Closes: #430337). + - DEB_AUTO_UPDATE_AUTOCONF set to “yes” in debian/rules so that the + configure script gets updated at build time (the needed build + dependencies are already there). + + -- Cyril Brulebois Sat, 24 Nov 2007 06:35:17 +0100 + +ghostscript (8.61.dfsg.1~svn8187-2) unstable; urgency=low + + * Maintainer upload, acknowledged NMU - closes: #447188 + * Made all dummy packages depend on ghostscript AND ghostscript-x, so + their nominal "functionality" should virtually be the equivalent to + the former gs|gs-gpl|gs-esp|gs-afpl packages - closes: #446825 + * Revised debian/copyright - closes: #444468, #444467 + * debian/rules: Clean files from package ghostscript which are moved to + ghostscript-doc on i386 (where arch-all packages are built). On all + non-i386 platforms the files remained in the main package, which + causes file conflicts and unnecessary package growth - closes: #446927 + (fix from Ubuntu) + * debian/patches/06_libpaper_support.dpatch: Added missing "#include + ", this made Ghostscript not working at all on IA64 - closes: + #428055 (fix from Ubuntu) + + -- Masayuki Hatta (mhatta) Wed, 31 Oct 2007 02:27:38 +0900 + +ghostscript (8.61.dfsg.1~svn8187-1.1) unstable; urgency=high + + * Non-maintainer upload by testing security team. + * Included 31-CVE-2007-2721.dpatch to fix remote + user-assisted denial of service via malformed image + files in embedded copy of jasper (Closes: #447188) + + -- Nico Golde Sat, 20 Oct 2007 12:46:44 +0200 + +ghostscript (8.61.dfsg.1~svn8187-1) unstable; urgency=low + + * New upstream release - closes: #437848, #291452 + * Important CJK handling fixes are absent from the current 8.60 or SVN, so I + decided to use this SVN snapshots until the issue is fixed (Ubuntu does the same). + * Can be built with the modern GCC now - closes: #440427 + * Complete re-organization: gs-gpl, gs-esp and gs-afpl are discontinued and + gone altogether, and now there's only one ghostscript package - closes: #52603, #159516, #434791, #394628, #394350, #295377, #246983, #416253, #323867 + * Imported Ubuntu's various improvements on packaging. + Thanks for Ubuntu people, especially Till Kamppeter. + * Sorted out dummy packages - closes: #321989, #401137 + * Separated -doc package - closes: #138549, #391082, #389872 + * Separated -x package, the main ghostscrpt doesn't depend X anymore - cloese: #76814, #393980, #240215 + * Separated libgs* packages - closes: #344351 + * Enabled cdj880 driver - closes: #157067 + * Enabled Lexmark 3200 driver - closes: #157067 + * Enabled pcl3 driver - closes: #259075 + * Added /usr/share/fonts/type1/gsfonts to fontpath - closes: #434310 + * Sorted out licensing information. + * Removed jasper/doc/*.pdf since those are shipped without + "transparent" copies a la GFDL. + + -- Masayuki Hatta (mhatta) Sun, 14 Oct 2007 22:24:34 +0900 + +ghostscript (8.61.dfsg.1~svn8187-0ubuntu4) hardy; urgency=low + + * debian/rules: Clean /usr/share/doc/*.html files from package + 'ghostscript', too (incomplete fix in previous versions), since they are + already shipped in ghostscript-doc and thus have a file conflict. + (LP: #153218) + + -- Martin Pitt Mon, 22 Oct 2007 17:21:21 +0200 + +ghostscript (8.61.dfsg.1~svn8187-0ubuntu3) gutsy; urgency=low + + [ Till Kamppeter ] + * debian/rules: Install missing *.upp files (usptream bug, LP: #150985). + + [ Martin Pitt ] + * debian/rules: Clean files from package ghostscript which are moved to + ghostscript-doc on i386 (where arch-all packages are built). On all + non-i386 platforms the files remained in the main package, which causes + file conflicts and unnecessary package growth. This is a quick hack for + Gutsy. In Hardy, this horribly broken build system should be fixed + properly. + + -- Martin Pitt Tue, 09 Oct 2007 23:00:28 +0200 + +ghostscript (8.61.dfsg.1~svn8187-0ubuntu2) gutsy; urgency=low + + * debian/patches/06_libpaper_support.dpatch: Added missing + "#include ", this made Ghostscript not working at all + on IA64 (Fixes LP: #130842, thanks to Ralph Giles from ghostscript.com + for the fix and to Matthias Klose for the IA64 test machine). + * debian/ghostscript.links: Bumped version number in link for CJK fonts + (Fixes LP: #139911). + + -- Till Kamppeter Tue, 18 Sep 2007 10:00:58 +0100 + +ghostscript (8.61.dfsg.1~svn8187-0ubuntu1) gutsy; urgency=low + + * New upstream release + o SVN snapshot rev 8187 + o CJK patches from Koji Otani to fix several issues with CJK text + (should fix http://bugs.ghostscript.com/show_bug.cgi?id=689304). + These patches were also applied to ESP Ghostscript and having them + in Gutsy's GPL GS will avoide regressions against Feisty's ESP GS. + o Minor bug fixes from upstream. + + -- Till Kamppeter Mon, 13 Aug 2007 21:49:58 +0100 + +ghostscript (8.60.dfsg.6-0ubuntu2) gutsy; urgency=low + + * debian/patches/30_assorted_script_fixes.dpatch: Back out the update + to pdf2eps, causing build failures on the buildds. + * debian/control: Build-depend on freeglut3-dev | libglut-dev. + + -- Matthias Klose Fri, 10 Aug 2007 10:50:08 +0200 + +ghostscript (8.60.dfsg.6-0ubuntu1) gutsy; urgency=low + + * Final release of Ghostscript 8.60 + o First official release of GPL Ghostscript with merged functionality + of ESP Ghostscript. + o Closes: LP: #128801 + * debian/patches/50_gv_kghostview_compatibility.dpatch: Removed workaround, + real fix done upstream + + -- Till Kamppeter Thu, 02 Aug 2007 02:13:11 +0100 + +ghostscript (8.60.dfsg.5-0ubuntu1) gutsy; urgency=low + + * New upstream release + o SVN snapshot rev 8127 + o Carried over some bug fixes from ESP Ghostscript (see + http://bugs.ghostscript.com/show_bug.cgi?id=689315) + o Minor bug fixes from upstream. + * debian/patches/30_assorted_script_fixes.dpatch: Updated. + + -- Till Kamppeter Mon, 16 Jul 2007 17:43:58 +0100 + +ghostscript (8.60.dfsg.4-0ubuntu1) gutsy; urgency=low + + * New upstream release + o SVN snapshot rev 8050 + o From now on we take snapshots from the trunk, as the merger of ESP and + GPL Ghostscript is completed and moved into the trunk. The branch + "gs-esp-gpl-merger" has been removed. + o Minor bug fixes from upstream. + * debian/patches/50_gv_kghostview_compatibility.dpatch: Updated. + + -- Till Kamppeter Thu, 14 Jun 2007 2:53:50 -0700 + +ghostscript (8.60.dfsg.3-0ubuntu2) gutsy; urgency=low + + * debian/control: + + Make gsfonts a Depends instead of Recommends as it was before on the + gs-common package. This fixes the GStreamer build failure. + + -- Sebastian Dröge Tue, 12 Jun 2007 21:15:25 +0200 + +ghostscript (8.60.dfsg.3-0ubuntu1) gutsy; urgency=low + + * New upstream release + o SVN snapshot rev 8025, branch "gs-esp-gpl-merger" + o Minor bug fixes from upstream. + * debian/rules: Renamed executable /usr/bin/gsc to /usr/bin/gs to not + conflict with the gambc package (Fixes LP: #118785). + + -- Till Kamppeter Wed, 06 Jun 2007 17:22:27 +0100 + +ghostscript (8.60.dfsg.2-0ubuntu2) gutsy; urgency=low + + * debian/ghostscript.preinst: + - Only remove the gs alternatives on upgrades from before + 8.60.dfsg.2-0ubuntu1, and don't let the lack of alternatives fail + installation. + - Remove "rm -rf /etc/ghostscript /etc/gs-gpl" insanity. + + -- Martin Pitt Fri, 01 Jun 2007 14:18:02 +0200 + +ghostscript (8.60.dfsg.2-0ubuntu1) gutsy; urgency=low + + * New upstream release + o SVN snapshot rev 7997, branch "gs-esp-gpl-merger" + o Added functionality to compile with shared libgs and without GTK + via "--disable-gtk" configure option (feature overtaken from ESP + Ghostscript). + o Minor bug fixes from upstream. + * debian/patches/40_fix_imdi_patch.dpatch: Removed, fixed upstream. + + -- Till Kamppeter Wed, 23 May 2007 11:54:11 +0100 + +ghostscript (8.60.dfsg.1-0ubuntu2) gutsy; urgency=low + + * debian/rules: Added forgotten option "--disable-gtk" to the "./configure" + command line, this prevented ghostscript from building on the build + servers. + * Added missing version number to "Conflicts: gs-common" in the ghostscript + package. + * Do away with the update-alternatives, we have one grand unified Ghostscript + now! + + -- Till Kamppeter Tue, 22 May 2007 21:38:21 +0100 + +ghostscript (8.60.dfsg.1-0ubuntu1) gutsy; urgency=low + + * This is the first Debian/Ubuntu package reflecting Artifex' move to do + the head development of Ghostscript under GPL and the merger of ESP + Ghostscript into GPL Ghostscript which followed after that. + * Renamed from "gs-gpl" to "ghostscript" on agreement with Debian Ghostscript + maintainer Masayuki Hatta + * New upstream release + o SVN snapshot rev 7979, branch "gs-esp-gpl-merger" + o This is the head of the Ghostscript development now. There is no separate + AFPL Ghostscript any more. See http://www.ghostscript.com/awki/News. + o All extra functionality of ESP Ghostscript is merged into GPL + Ghostscript now and the development of ESP Ghostscript is discontinued. + See http://www.cups.org/espgs/. + * debian/control: Added tags and transitional packages to make this package + (ghostscript) replacing gs-esp and gs-afpl (Closes: LP#47432, LP#47458, + LP#75894, LP#83769, LP#103595, LP#105752, LP#108159, LP#109304). + * debian/rules, debian/control, debian/dirs, debian/ghostscript.*, + debian/README.Debian, debian/gs.defoma: Merged in gs-common. + * debian/control: Set Ubuntu maintainer. + * debian/rules: Activated full functionality by appropriate "./configure" + command line options. This is now the one and only Ghostscript in Ubuntu + Linux. + * debian/rules: Do not build static executable, to reduce the build time + to one half of the former build time of gs-esp (or to not double the + build time of ghostscript). + * debian/rules, debian/control: Split package into ghostscript, libgs8, + libgs-dev, and ghostscript-x, like we did with gs-esp, also split off + documentation into ghostcript-doc. + * debian/NEWS: Added info about merger of ESP and GPL Ghostscript + * debian/patches/: Removed 01_gsdir_for_gs-gpl.dpatch, + 02_fontpath_for_debian, 20_additional_drivers, 21_additional_drivers_mak, + 22_gdi_support, 23_hl12x0_support: They are not needed any more after + merging in the ESP GS functionality and moving to "ghostscript" as + package name. + * debian/patches/09_ijs_krgb_support.dpatch: Updated to version 1.3 + of the KRGB patch (from HPLIP 1.7.3). + * debian/patches/04_gdevxini_segv_fix.dpatch: Removed, it makes the X + device being reopened on every page size change and breaks output with + tools like gv (gv hangs without showing any page). + * debian/patches/40_fix_imdi_patch.dpatch: Fixed imdi directory location + in src/devs.mak + * debian/patches/50_gv_kghostview_compatibility.dpatch: Fixed compatibility + with GUIs like gv and kghostview (see upstream bug 689237, + http://bugs.ghostscript.com/show_bug.cgi?id=689237, note: reintroduces + upstream bug 687125 but that bug is much less a problem). + * debian/ghostscript.postinst: update-alternatives configuration does not get + correctly updated when the obsolete gs-esp and gs-afpl packages get removed + via the transitional packages. Let the post-install script of the + ghostscript package reset update-alternatives to auto mode for such a case. + + -- Till Kamppeter Mon, 21 May 2007 13:00:21 +0100 + +gs-gpl (8.56.dfsg.1-1) unstable; urgency=low + + * New upstream release. + * man/gs.1: Paths are adjusted to Debian - closes: #405049 + * man/gs.1: Fixed various typos - closes: #323534 + * Fixed insecure /tmp usage in toolbin scripts (CAN-2005-2352) - closes: #291373 + * Now opdfread.ps is installed - closes: #401755 + + -- Masayuki Hatta (mhatta) Sat, 05 May 2007 00:58:39 +0900 + +gs-gpl (8.54.dfsg.1-5) unstable; urgency=high + + * Oops, I forgot to apply dpatch #20, so the large amount of drivers are missing in -4. Mea Culpa. + * Added Brother HL-1240/1250 support - closes: #280693 + * Make sure /etc/gs-gpl is removed - closes: #333474 + * Remove Fontmap and Fontmap.GS from the package - closes: #325400 + * Provides the index.html symlink - closes: #303792 + * Added binary-indep rules in debian/rules - closes: #267398 + + -- Masayuki Hatta (mhatta) Sat, 21 Oct 2006 10:25:56 +0900 + +gs-gpl (8.54.dfsg.1-4) unstable; urgency=high + + * Brought back KRGB colorspace support to ijs - closes: #355616 + * Brought back Samsung GDI support - closes: #365337 + * gs depends on gs-gpl | gs-esp - closes: #297024 + * rules, gs-gpl.links: s/8.15/8.54/g. + + -- Masayuki Hatta (mhatta) Wed, 18 Oct 2006 21:33:33 +0900 + +gs-gpl (8.54.dfsg.1-3) unstable; urgency=low + + * Supports big post table for CMap - closes: #205055 + * Fixed a potential segv problem in src/gdevxini.c, thanks Ian Jackson for providing a patch - closes: #254206 + + -- Masayuki Hatta (mhatta) Wed, 18 Oct 2006 03:48:57 +0900 + +gs-gpl (8.54.dfsg.1-2) unstable; urgency=high + + * Made qsort call in src/gxfcopy.c 64-bit clean, thanks Andreas - closes: #390875 + + -- Masayuki Hatta (mhatta) Thu, 12 Oct 2006 09:28:26 +0900 + +gs-gpl (8.54.dfsg.1-1) unstable; urgency=low + + * New upstream release - closes: #373805 + * Acknowledged NMUs, since crash on ppc has been fixed in the upstream - closes: #357326, #327288, #324796 + + -- Masayuki Hatta (mhatta) Tue, 26 Sep 2006 01:25:04 +0900 + +gs-gpl (8.50-1.1) unstable; urgency=high + + * Non-maintainer upload. + * debian/patches/00list: Re-enable patch 10_powerpc_crash_fix; upstream + delayed to fix after the 8.50 release. Cures segfaults on ppc (again). + Thanks to Roger Leigh for testing. Closes: #357326 + + -- Daniel Kobras Wed, 29 Mar 2006 14:22:21 +0200 + +gs-gpl (8.50-1) unstable; urgency=low + + * Works done at Codefest in Malaysia 2006. + * New upstream release - closes: #347637, #348834 + * Updated debian/watch - closes: #354352 + * Bumped to Standards-Version: 3.6.2.2 (no physical changes). + + -- Masayuki Hatta (mhatta) Sun, 5 Mar 2006 10:46:33 +0900 + +gs-gpl (8.15-4.1) unstable; urgency=low + + * Non-maintainer upload. + * Use gcc-3.4 on s390. + + -- Bastian Blank Thu, 29 Dec 2005 10:52:10 +0000 + +gs-gpl (8.15-4) unstable; urgency=low + + * Apply patch 10 working around a crashing bug on powerpc (details in + the patch file itself). This closes: bug#324796, #325570, #327288 + (thanks to Paul Brossier for first reporting, Ian + Jackson for providing the patch, and + Thomas Bushnell BSG for shouting about the problem). + + -- Jonas Smedegaard Mon, 19 Sep 2005 15:15:44 +0200 + +gs-gpl (8.15-3) unstable; urgency=low + + * Bumped Standards-Version to 3.6.2.1 (no physical changes). + * Removed patch 04, since it doesn't affect at all. + * Enabled jbig2dec support. + * Now uses cidfmap generated by defoma. + * gs-gpl.links: make a symlink of CMap directory under /usr/share/gs-gpl/8.15/Resource. + NOTE: even if CMap files can be found somewhere in the font path, gs-esp + fails to prepare a composed font with CIDFont and CMap. This hack is + a workaround for "the CMap files must be put into the first directory of + the font path" problem. Many Thanks Akira TAGOH for suggestion. + + -- Masayuki Hatta (mhatta) Thu, 18 Aug 2005 03:38:59 +0900 + +gs-gpl (8.15-2) unstable; urgency=low + + * Drop stp patch: + + Remove stp-related parts of additional_drivers patches 20 and 21. + + Drop build-dependency on libgimpprint-dev. + + Remove stp note from README.Debian. + + Closes: bug#313026 (thanks to Roger Leigh ). + + -- Jonas Smedegaard Wed, 20 Jul 2005 14:05:26 +0200 + +gs-gpl (8.15-1) unstable; urgency=low + + * Repackaged source tarball with non-free CMaps stripped. + * Added check in debian/rules to fail if CMaps exist in the source. + * Mention in debian/copyright that CMaps are stripped. + * Add myself as uploader (acknowledged by Masayuki), and re-upload as + regular maintainer upload. This package closes: bug#280352 (thanks + to some anonymous(?) lilypond-lover offering virtual beer for + pushing this newer release, and Wouter Verhelst + for delivering the message). + * Correct UTF8-encoding of debian/changelog. + + -- Jonas Smedegaard Fri, 15 Jul 2005 13:27:05 +0200 + +gs-gpl (8.15-0.1) unstable; urgency=low + + * NMU of newer upstream release. + * Update and unfuzz patches (Note: source patched by + 04_resourcedir_fix_for_debian slightly changed upstream, so may no + longer be needed). + * Use fine-grained X11 build-dependencies. + + -- Jonas Smedegaard Tue, 12 Jul 2005 10:52:11 +0200 + +gs-gpl (8.01-5) unstable; urgency=high + + * [NEWS] added a note on CJK TTF support. + * Revive Samsung GDI support, thanks plum - closes: #250180 + * Revive Brother 7x0 GDI support - closes: #253479 + * Added KRGB colorspace support to gs IJS driver - closes: #249166 + * Fix SEGV on -sDEVICE=bbox - closes: #250290, #254877 + * Adjust the margins for Epson drivers - closes: #48975 + * Now Suggests hpijs - closes: #161953 + + -- Masayuki Hatta (mhatta) Sun, 15 Aug 2004 13:03:15 +0900 + +gs-gpl (8.01-4) unstable; urgency=low + + * Fixed the priority to 20 - closes: #246983 + * Removed funky character in NEWS, thanks tbm for pointing it out. + + -- Masayuki Hatta (mhatta) Wed, 5 May 2004 16:09:24 +0900 + +gs-gpl (8.01-3) unstable; urgency=low + + * Added Build-Dep: libgimpprint1-dev - closes: #244143 + * Added lj3100sw driver - closes: #243963 + * Revised description. + * Added notes on stp. + + -- Masayuki Hatta (mhatta) Wed, 28 Apr 2004 05:40:05 +0900 + +gs-gpl (8.01-2) unstable; urgency=low + + * Added STP support culled from gimp-print 4.2.6. + + -- Masayuki Hatta (mhatta) Tue, 13 Apr 2004 13:20:31 +0900 + +gs-gpl (8.01-1) unstable; urgency=low + + * New maintainer with torsten's blessing. He is still a co-maintainer. + * The package name has been changed to gs-gpl. + * Now uses dpatch. + * Acknowledged NMUs - closes: #63163, #136652, #105179, #128314, #128416 + * New upstream release - closes: #235686, #226088 + * Revised copyright - closes: #226020 + * Moved *map under /etc/gs-gpl - closes: #179244 + * Do not run "update-alternatives --remove" when upgrade - closes: #163267 + * Improved libpaper support - closes: #182268 + * Set the font path appropriately - closes: #122828, #159816, #111874, #195931, #128955 + * Removed stp driver - closes: #170550 + * Added cfax driver - closes: #183438 + * Set the priority to 20. + + -- Masayuki Hatta (mhatta) Sat, 27 Mar 2004 00:00:05 +0900 + +gs (7.07-1) unstable; urgency=low + + * New upstream release. + + Uses /dev/urandom instead of /dev/random so does not block forever + waiting for quality random numbers (closes: #176850). + * Fix buffer overflow in gdevhpij.c (sizeof(PK) < PIPE_BUF...) and + remove the old patch (closes: #184345). + * debian/devices: Add pngalpha device. + + -- Torsten Landschoff Wed, 18 Jun 2003 10:51:53 +0200 + +gs (7.06-1.1) unstable; urgency=low + + * NMU + * Fix unconditional PIPE_BUF bug to build on GNU. (Closes: #184345) + + -- Robert Millan Sun, 13 Apr 2003 14:01:41 +0200 + +gs (7.06-1) unstable; urgency=low + + * New upstream release. + * debian/rules: + + Include History7.htm into the changelog. + + Kill the /usr/share/man/de hierarchy which only documents stuff + in gs-common, not even the gs command. + + -- Torsten Landschoff Thu, 3 Apr 2003 11:34:02 +0200 + +gs (7.05-3) unstable; urgency=low + + * Reextract the source without running ntpdate on another console + and rebuild to fix the search path (closes: #173493, #173560). + + -- Torsten Landschoff Fri, 20 Dec 2002 15:54:29 +0100 + +gs (7.05-2) unstable; urgency=low + + * debian/control: Conflicts, Provides and Replaces gs-pdfencrypt - that + functionality is now included in gs itself and the old stuff breaks + with current gs (closes: #173222). + * Apply the patch from Florian Zumbiehl (identical to the upstream + solution in newer releases) to fix the scaling of the psmono/psgray + driver - the output was scaled twice (closes: #171530). + + -- Torsten Landschoff Tue, 17 Dec 2002 11:44:44 +0100 + +gs (7.05-1) unstable; urgency=low + + * New upstream release. + * debian/control: Use libpng3-dev instead libpng2-dev. + + -- Torsten Landschoff Sun, 1 Sep 2002 01:10:37 +0200 + +gs (6.53-7) unstable; urgency=low + + * debian/rules (binary-arch): Use rm -Rf to kill the man dir as rm -R + seems to ask for permission for some users (closes: #152037). + + -- Torsten Landschoff Wed, 28 Aug 2002 01:28:36 +0200 + +gs (6.53-6) unstable; urgency=low + + * debian/devices: Enable the ljet4d driver as suggested by + Isidro Cachadiña Gutiérez. + + -- Torsten Landschoff Tue, 27 Aug 2002 11:29:17 +0200 + +gs (6.53-5) unstable; urgency=low + + * Apply the hpijs margin patch from + http://hpinkjet.sourceforge.net/gdevijs2.patch (closes: #151869). + + -- Torsten Landschoff Thu, 4 Jul 2002 09:54:39 +0200 + +gs (6.53-4) unstable; urgency=low + + * Enable the hl1240 driver (the hl1250 should already be there, but it + seems it isn't...). + * debian/control: Change build dependency on libgimpprint-dev to + libgimpprint1-dev. + + -- Torsten Landschoff Wed, 3 Jul 2002 19:36:58 +0200 + +gs (6.53-3) unstable; urgency=high + + * debian/copyright: Include information about add on packages and + their licenses. + + * debian/devices: Move x11 in front of x11alpha which has problems with + mono displays at least (closes: #138844). + * src/unix-gcc.mak: Reenable the pipe device as it seems harmless after + all and many filters will break as they are using this feature to + circumvent the old Ghostscript problem with -sOutputFile=- when + the PostScript file writes text to stdout which interferes with the + printer commands... (closes: #138364). + * debian/control: Remove the reference to gs-pdfencrypt which is now + obsolete as it is included in the official Ghostscript now. + + * Lintian cleanup: + + Remove the extra license file /usr/share/doc/gs/COPYING.gz + + Copying.htm stays as it is since it is linked in the docs + + Convert History[56].htm to changes.gz using html2text to have an + upstream changelog. + * Included a few important patches from the Ghostscript CVS: + + Handle the margins from an ijs server correctly. It was my hope that + this would account for #141608, but that does not seem to be the + case :( + + src/gdevx.c: Patched to use the "right" color depth on X11 for + all cases. It used to take the actual number of bits to store + the color info as opposed to the number of bits actually used. + + lib/pdf2dsc.ps: This was broken because of the security fix. + Patched to open the files before dropping privileges. + + * lib/stcolor.ps: Compare the product name with "GNU Ghostscript" instead + of just "Ghostscript" to detect the interpreter (closes: #108120). + * src/gdevbj10.c: Apply the patch to fix the margins for the Canon BJ10e + submitted by Jim Hague (closes: #118078). + * debian/postinst: Link the manpage to gs.1.gz as well as a slave of + the /usr/bin/gs alternative (closes: #122538). + * gimp-print/README.stp: Copy from gimp-print source tree. + * debian/docs: Install that file as $(docdir)/README.stp for those + using that driver and needing some infos (closes: #122099). + + debian/README.Debian: Refer the user to README.stp. + * debian/rules: Install the documentation of the pcl3 driver + (closes: #39342). + * debian/docs: Add the README.lexmark of the lexmarkgs driver to the + installed documentation. + + -- Torsten Landschoff Tue, 9 Apr 2002 02:29:10 +0200 + +gs (6.53-2) unstable; urgency=high + + * [SECURITY] src/unix-gcc.mak: Disable the pipe device as well since it + still allows executing arbitrary commands. I'll turn it back on when I am + sure it does not cause any security problems. + + -- Torsten Landschoff Thu, 7 Mar 2002 12:24:53 +0100 + +gs (6.53-1) unstable; urgency=high + + * New upstream release (closes: #130426). + + Fixes the security problem allowing reading all files and + executing random commands (closes: #136652). + * debian/gen-makefile: Fix the BUILD_OPTIONS check (closes: #121871). + * Should fix the cjk stuff I hope (closes: #116516). In case there is + another problem please could somebody provide me with information + how to check that it works? I am more than deeply frustrated with + getting readmes in japanese, web pages in japanese etc. That's just + deeply frustrating. + + -- Torsten Landschoff Wed, 6 Mar 2002 01:20:30 +0100 + +gs (6.51-7) unstable; urgency=medium + + * Urgency medium because it works around a bug breaking the package + on one Debian architecture. + * src/gxobj.h [IA64]: Lock the object alignment to 16 bytes, as the + initial setjmp segfaults because of a bad alignment. jmp_buf needs + to be on 16 byte boundaries for this arch. This is a quick work + around until somebody comes up with a better fix - at least it + gets gs to work on ia64 - I am not certain how much memory overhead + this causes though. Kudos to John Daily for his + investigative work. I am leaving the bug open for now, since it does + not really fix the problem (#128314). + + -- Torsten Landschoff Tue, 8 Jan 2002 21:12:22 +0100 + +gs (6.51-6) unstable; urgency=low + + * ijs/*: Include the ijs driver from the hpijs source. + * debian/devices: Add ijs to the device list. + * src/contrib.mak: Include ijs/contrib.mak-6.51.add + + -- Torsten Landschoff Mon, 31 Dec 2001 15:00:45 +0100 + +gs (6.51-5) unstable; urgency=low + + * gimp-print/gdevstp.c: Update from gimp-print 4.1.99-rc1 (closes: #120009) + + -- Torsten Landschoff Fri, 16 Nov 2001 14:29:11 +0100 + +gs (6.51-4) unstable; urgency=low + + * src/gdevxini.c: Apply the patch supplied by Chanop Silpa-Anan + (closes: #85811). Thanks for your support, Chanop! + * debian/gen-makefile: Add /usr/share/ghostscript/common to the + search path to get gs-pdfencrypt working again (closes: #119406). + * Download the lex5000 driver and include it in the build system + (closes: #58657). + * debian/devices: Add lx5000, lex5000. + + -- Torsten Landschoff Wed, 14 Nov 2001 16:47:57 +0100 + +gs (6.51-3) unstable; urgency=low + + * debian/devices: Enabled the cfax driver as requested by a user. + + -- Torsten Landschoff Fri, 9 Nov 2001 17:48:23 +0100 + +gs (6.51-2) unstable; urgency=low + + * Enable the Brother HL 1250 driver (closes: #63027). + + -- Torsten Landschoff Wed, 17 Oct 2001 12:07:23 +0200 + +gs (6.51-1) unstable; urgency=low + + * New upstream release (closes: #101928). + * The new upstream release fixes many problems with the interpreter. + These bugs were fixed in Ghostscript 6.0: + + the font rendering problem in X11 is fixed (closes: #28579) + + ps2pdf does not write rectangles for polygons anymore (closes: #36200) + + the PDF which crashed gs does not lead to any problems (closes: #45361) + + a PDF which was inverted by pdf2ps stays black on + white now (closes: #49659). + + Philipp's file crashing gs does not do so anymore (closes: #58468) + + the invalid LanguageGroup in fonts does not cause gs to abort + anymore (closes: #67462). + + another PDF file which caused a crash is working now (closes: #89995) + * Rewrote the build system. + * The libjpeg sources are now included in the diff which is not nice + but working (closes: #87896). + * lynx is not used anymore to convert the changelog to plain text + (closes: #93722). + * The hpijs driver is now included upstream (closes: #106294). + * Driver support for the Apple Imagewriter is now included (closes: #110740). + * Make the package use update-alternatives so that different gs packages + can cooperate (closes: #98227). + * Add in the gdi driver provided by Daniel Burrows (closes: #105885). + * debian/devices: Add omni to the list + + debian/gen-makefile: Add threading and dynamic linking support. + * debian/control: Add libglib1.2-dev to the Build-Depends as it is + needed for the Omni driver. + * debian/devices: Go through the list of available drivers and add + what we seem to be able to build. Among the new devices: + - cdj970 (closes: #112434) + - cljet5, cljet5pr, cljet5c + - dl2100, hl7x0 + - the generic hpijs device (supports hpijs 0.97, closes: #102369, #110657) + - imagen, inferno, jetp3852 + - lex2050, lex3200, lex5700 + - oki4w + - plan9bm + - psrgb + - x11cmyk2, x11cmyk4, x11cmyk8, x11gray4 + * src/contrib.mak: Add missing generic hpijs device. + * Enable stp driver and link with libgimpprint + (closes: #82454, #87004, #103036) + * debian/control: Build-Depend on libgimpprint-dev. + * debian/gen-makefile: Add support for the DEB_BUILD_OPTIONS environment + variable (more precisely, the debug option leads to a build with + debugging support and exported private variables). + * Add in the CJK support using the patch from + Yasuhiro Take . A huge "THANK YOU" to him for his + work!!! His changes: + + Add debian/patches/gs-cjk-M2-R1+CJKPDF.diff & .info, and apply it + to the source. + + debian/control: Conflicts: Add gs-cjk-resource (<< 1.20010910-1) because + the new gs-cjk patch requires new gs-cjk-resource that i've already + prepared and doesn't work with older ones. + + debian/control: Depends: Add gs-common (>= 0.2) because font + configuration for the new gs-cjk patch is completely different from + the old one. + * debian/control: Removed the conflict with gs_x, gs_svga and gs_both. + I don't even remember when those packages where in Debian, probably + before Debian 1.3 so a direct upgrade is going to fail anyway. And + with intermediate upgrades it will not be a problem. + * src/imainarg.c: Reapply the papersize diff from debian/patches. + + -- Torsten Landschoff Tue, 16 Oct 2001 21:06:14 +0200 + +gs (5.50-8) unstable; urgency=low + + * debian/rules: Use html2text to convert the html changelog into + plain text instead of lynx (closes: #93722). + * debian/control: Update Build-Depends. + * debian/prerm: Fix the case to handle both removal and upgrade + instead of handling upgrading in two cases (closes: #98458). + * debian/control: Merge multi-line Build-Depends into one line for + now until our tools support multi line fields (closes: #98459). + + -- Torsten Landschoff Mon, 4 Jun 2001 01:22:36 +0200 + +gs (5.50-7) unstable; urgency=low + + * debian/postrm: Add missing #DEBHELPER# (arg!). + * debian/prerm: Add defoma-app clean on upgrade. + * debian/gs.templates: Remove the double negation of the previewer + question (closes: #94146). + * Merge german translation for debconf templates (closes: #93840). + * debian/shlibs.local: Depend on svgalibg1 or svgalib-dummyg1 + alternatively (closes: #93811). + + -- Torsten Landschoff Tue, 1 May 2001 22:24:55 +0200 + +gs (5.50-6) unstable; urgency=low + + * debian/README: + + Move copyright info to debian/copyright. + + Mention the align.ps file (closes: #67317). + * gdevbbox.c: Use default color methods instead of NULL pointers so + that gs -sDEVICE=bbox does not crash anymore (closes: #36883). + + -- Torsten Landschoff Sat, 7 Apr 2001 21:09:55 +0200 + +gs (5.50-5) unstable; urgency=low + + * debian/default_path.sh: + + Include defoma dir in search path. + + Search local directories before system directories. + + Defoma is preferred if available... + * debian/postinst: Fix the hopefully last bashism (s/source/g/). + * Included support for Hewlett Packard's own printer driver called + hpijs (closes: #92010). Note that you will need the hpijs package + for using it. + + -- Torsten Landschoff Sat, 7 Apr 2001 02:40:15 +0200 + +gs (5.50-4) unstable; urgency=low + + * Install interesting Postscript files as examples (closes: #79461). + * Finally include the missing if-hpdj filter (closes: #63705). + * Also add the documentation of hp8xx (closes: #63566). + + -- Torsten Landschoff Thu, 5 Apr 2001 03:58:27 +0200 + +gs (5.50-3) unstable; urgency=low + + * debian/rules: + + Don't remove debian/postinst anymore in clean target. + + Read package and version info from changelog. + + Convert to debhelper. + * debian/postinst: Again rewritten from scratch (guess why!? *arg*) + + -- Torsten Landschoff Thu, 5 Apr 2001 02:34:17 +0200 + +gs (5.50-2) unstable; urgency=low + + * debian/postinst: Completely rewritten. + + Fixes the bashism reported by Joey Hess (closes: #92056). + + Does not mess with /usr/local anymore (closes: #57276). + * unix-gcc.mak: Readd the x11 device (closes: #92586). + * debian/config: Change the priority of the defoma questions to + low. I don't see how the defaults can cause any problems. + * debian/shlibs.local: Removed. Let's see if it works without. + + -- Torsten Landschoff Thu, 5 Apr 2001 01:36:09 +0200 + +gs (5.50-1) unstable; urgency=low + + * Finally upgrade to new upstream version, still based on the old + package (the reimplementation is still under the hood ;) + (closes: #65832, #87673). + * unix-gcc.mak: Make x11alpha the default device on X11 as already + done in gs-aladdin. Modern systems should be able to handle the + anti aliasing fast enough. + * debian/control: Update build dependencies for new X11. + * debian/control: Removed Conflicts with local defoma packages made + by Yasuhiro. + * debian/patches/svgalib: Adjust for name change of the main Makefile + and move the targets out of the ifeq so that one can run the file + standalone. + * debian/patches/hpdj: + - Don't patch zmedia2.c since upstream changed it since 5.10. + - Adjust for name change of the main makefile. + - Use the right patch from the hpdj distribution for 5.50. + * debian/patches/hp8xx: + - Update the devs.mak diff for gs 5.50. + - Adjust for name change of main makefile. + * debian/rules: Disable kanji and jpdrivers support (needs update for 5.50). + * debian/patches/lexmarkgs: + - Update the devs.mak diff for 5.50. + * debian/control: Add missing build-depends (closes: #82114, #88393). + * debian/rules: Make debian/addentry executable before running it + (closes: #90278). + * time_.h: Include as well as sys/time.h (closes: #90433, #88391). + + -- Torsten Landschoff Thu, 29 Mar 2001 01:17:54 +0200 + +gs (5.10-11.5defoma2) unstable; urgency=low + + * Add kanji patches. + + -- Yasuhiro Take Tue, 27 Mar 2001 20:58:55 +0900 + +gs (5.10-11.5defoma1) unstable; urgency=low + + * Add Defoma support. + * Remove kanji patches. + + -- Yasuhiro Take Tue, 20 Mar 2001 18:21:22 +0900 + +gs (5.10-11) unstable; urgency=low + + * debian/control: Added build time dependency for libfreetype2-dev + (closes: #82114). + * Included upp files for stc740 printer provided by Gregory P. Smith + (closes: #76845). + + -- Torsten Landschoff Mon, 15 Jan 2001 00:53:32 +0100 + +gs (5.10-10.1) stable unstable; urgency=high + + * Non-maintainer upload by security team + * Patch from Werner Fink: + + Create temporary files securely using mkstemp instead of mktemp + + Don't set LD_RUN_PATH to empty, that makes the runtime linker look + in the current path as well + + -- Wichert Akkerman Wed, 22 Nov 2000 03:35:35 +0100 + +gs (5.10-10) unstable; urgency=low + + * contrib/kanji/man/ps2jpdf.1: Changed ".SH PS2JPDF" into ".SH NAME" + (closes: #59925, #60002, #60474). + * debian/rules: Added -isp to call of dpkg-gencontrol (lintian). + + -- Torsten Landschoff Wed, 15 Mar 2000 23:30:41 +0100 + +gs (5.10-9) frozen unstable; urgency=high + + * Applied patch from Colin Phipps to fix security problem in ps2epsi + (closes: #57034) + + -- Torsten Landschoff Sun, 6 Feb 2000 02:24:33 +0100 + +gs (5.10-8) frozen unstable; urgency=low + + * Only a simple change to close a bugreport: The package contained a + directory in /usr/local in violation with policy. Sorry for this, + the directories are now created by the postinst (closes: #56396). + + -- Torsten Landschoff Fri, 28 Jan 2000 09:52:17 +0100 + +gs (5.10-7) frozen unstable; urgency=low + + * This can go into frozen since the changes are absolutely simple. + * debian/control: Fixed build dependencies (closes: #55451). + * debian/patches/hpdj: Added installation of margin files as requested in + #39342 (for gs-aladdin). + * gcc-head.mak: Added path for local fonts as requested in #31898 + (/usr/local/lib/ghostscript/{common,5.10,fonts}) + * debian/rules: Make the directories intended for local fonts. + * gs.1: Added documentation for local postscript files. + + -- Torsten Landschoff Thu, 20 Jan 2000 12:47:48 +0100 + +gs (5.10-6) unstable; urgency=low + + * Added driver for Lexmark 7000. Thanks to Alex Winbow for pointing + me to the patch. + * debian/rules: Completely rewritten and a bit modularized. + * hpdj driver updated to version 2.6. + + -- Torsten Landschoff Wed, 12 Jan 2000 20:24:44 +0100 + +gs (5.10-5) unstable; urgency=low + + * New maintainer. + * debian/control: Added build dependencies. + * Applied patch from Taketoshi Sano to remove copyrighted stuff from + the package (closes: #52575). + * This release is based on Wicherts NMU (thanks for the work Wichert!) + closes: #53071 + + -- Torsten Landschoff Wed, 29 Dec 1999 22:22:02 +0100 + +gs (5.10-4.1) unstable; urgency=low + + * Non-maintainer upload + * Apply patch to fix mac ttf rendering, Closes: Bug#52590 + + -- Wichert Akkerman Sun, 19 Dec 1999 17:05:38 +0100 + +gs (5.10-4) unstable; urgency=low + + * Small patch applied to file gs_init.ps, so that japanese + fonts are required only for japanese people (many thaks to + Fumitoshi Ukai) (closes: Bug#49725, #49732, #49867) + + -- Marco Pistore Fri, 12 Nov 1999 12:45:37 +0100 + +gs (5.10-3) unstable; urgency=low + + * Many thanks to Taketoshi Sano for his great job + with the Japanese support (closes Bug#41570) + + -- Marco Pistore Sun, 7 Nov 1999 02:56:13 +0100 + +gs (5.10-2.0.vflib.2) experimental; urgency=low + + * Non Maintainer. + * Add support for many drivers included in gs510j49 + * FHS transition + * Lintian free + + -- Taketoshi Sano Sun, 31 Oct 1999 09:21:06 +0900 + +gs (5.10-2.0.vflib.1) experimental; urgency=low + + * Non Maintainer. + * Experimental revision for Japanese VFlib support enhancement. + * Please check and modify this experimental revision to add + Japanese support on the Debian package of "gs" + + -- Taketoshi Sano Sat, 30 Oct 1999 15:03:07 +0900 + +gs (5.10-2) unstable; urgency=low + + * Added support for hp8xx drivers by Uli Wortmann (closes Bug#40807). + * Added support for epsf and ttfont features. + * Changed "Aladdin Ghostscript" into "GNU Ghostscript" in + file stcolor.ps e stcinfo.ps (closed Bug#35411, Bug#35525). + + -- Marco Pistore Sat, 10 Jul 1999 23:29:57 +0200 + +gs (5.10-1) unstable frozen; urgency=low + + * Ghostscript 5.10 is GPL! + This package essentially corresponds to package gs-aladdin_5.10-12, + but redistributed under GPL. Changes w.r.t. gs-aladdin_5.10-12 + are: + * Corrected "regulamentations" --> "regulations" + in description of package. + * Filenames in script pdf2ps are now enclosed in double quotes + * Fixed the manpages for bdftops, printafm and wftopfa, + so that they work with apropos. + The various patches to ghostscript 5.10 that have been proposed + by L.P.Deutsch and that appear in gs-aladdin_5.10-12 also appear + in this package. + + -- Marco Pistore Sun, 3 Jan 1999 18:22:57 +0100 + +gs (4.03-6) unstable; urgency=low + + * Moved to version 2.5 of hpdj driver by Martin Lottermoser (debian/rules + is changed accordingly). + * Mentined package gsfonts in description of gs. + + -- Marco Pistore Mon, 7 Dec 1998 22:06:21 +0100 + +gs (4.03-5) frozen unstable; urgency=low + + * Fixed the manpages for bdftops, printafm and wftopfa, + so that they work with apropos. + + * Removed *.1.gz files from /usr/doc/gs (they already are in the + /usr/man/man1 directory). + + -- Marco Pistore Fri, 6 Nov 1998 10:52:31 +0100 + +gs (4.03-4) frozen unstable; urgency=low + + * Fixed files stcolor.ps and stcinfo.ps so that they recognize that + they are called by GNU ghostscript; thanks to Gordon Matzigkeit + (closes Bug#28726). + + -- Marco Pistore Thu, 5 Nov 1998 21:44:07 +0100 + +gs (4.03-3) unstable; urgency=low + + * Changed "Recommends: gs-pdfencrypt" to "Suggests: gs-pdfencrypt" in + control file (closes Bug#27431) + * Removed "Provides: gs_x, gs_svga, gs_both", since "_" cannot appear + in package names, and no packages should depend on these quite old + virtual packages. + * Changed directory name for the libjpeg source from ../libjpeg-6a + to ../libjpeg: so it does not depend on the particular version + of libjpeg (changes in files gcc-head.mak, debian/rules and + debian/jpeg). + * Linked against libjpeg-6b. + + -- Marco Pistore Sat, 10 Oct 1998 00:01:15 +0200 + +gs (4.03-2) unstable; urgency=low + + * Now /usr/lib/ghostscript/common is searched for library files + before /usr/lib/ghostscript/X.YY (where X.YY is the version of + ghostscript). This is useful for installing packages like + gs-pdfencrypt, that provide (modified) library files + to ghostscript that are independent from the version of gs + (also gs.1 is changed accordingly) + * Now gs-pdfencrypt (in the nonUS distribution) is suggested by + gs-aladdin. Changed the message in the file pdf_sec.ps so that + it suggests to install that package if an encrypted pdf file is + being processed. + * Linked against libpng2 (closes Bug#26924) + + -- Marco Pistore Tue, 29 Sep 1998 21:01:10 +0200 + +gs (4.03-1) unstable; urgency=low + + * New upstream version (gs 4.03 is finally GPL!!!) + * Pristine source + * Set options in gcc-head.mak + * Added man pages for all the binaries + * All example files in /usr/doc/gs/examples start now with %! + * Script font2c moved from /usr/bin to /usr/lib/ghostscript + (there is really no reason to put this script in /usr/bin) + * Patched devs.mak and gdevpng.c so to work with version 0.96 of libpng. + * Patched gdevcdj.c so that device cdeskjet works + (and is identical to cdj500) + * Patched gdevl256.c imainarg.c so that superuser rights are given away + as soon as possible, and re-obtained only to start svgalib (see + /usr/doc/gs/README.Debian and /usr/doc/gs/setuid.Debian) + * Patched imainarg.c to set default paper accordig to the system paper + as reported by libpaper, also patched imaiarg.c so that the lvga256 + device is chosen as the default one if gs is not called from X + * Patched zlib.mak: here the shared file for zlib is called libz, + not libgz + + -- Marco Pistore Thu, 4 Jun 1998 20:29:47 +0100 + +gs (3.33-7) unstable; urgency=low + + * Corrected address of FSF in copyright file + * All the scripts start now with #! + * Added man pages for all the binaries + * bdftops, font2c and wftopfa moved from /usr/bin to + /usr/lib/ghostscript + (there is really no reason to put these scripts in /usr/bin) + * gs.real moved to /usr/lib/ghostscript (it should not be + called by the user) + + -- Marco Pistore Thu, 12 Mar 1998 20:29:38 +0100 + +gs (3.33-6) unstable; urgency=low + + * New maintainer + * Libc6 (hamm) release + * Minor fixes in debian/rules + * Bug 10270 fixed: now manpages are compressed + * Bug 9935 fixed: package works with svgalib-dummy + * Redundant dependencies removed in debian/control + (this also fixes Bug 9157) + * Now device cdeskjet works (and is identical to cdj500) + + -- Marco Pistore Mon, 29 Sep 1997 20:41:47 +0200 + +gs (3.33-5) stable; urgency=low + + * Examples used to be in /usr/doc/$(examples)/examples, but $(examples) + was empty (should have been $(package), must have been sleeping) + + -- joost witteveen Fri, 7 Feb 1997 15:15:37 +0100 + +gs (3.33-4) stable; urgency=low + + * debian/rules didn't install some files in ./debian/tmp, but in /!!! + Why do I need root to build packages? + * Minor fix in wrapper.c (no change in binary) + + -- joost witteveen Tue, 21 Jan 1997 19:15:53 +0100 + +gs (3.33-3) stable; urgency=low + + * apparently, gs-3.33 never got compiled with all devices (only a + pitiful few ones). Fixed this. + + -- joost witteveen Fri, 8 Nov 1996 21:49:49 +0100 + +gs (3.33-2) unstable; urgency=low + + * Converted to new source format + * Removed the "+1" bug in the wrapper that caused coredumps with + libc5.4.7 + * included x11alpha x11cmyk devices + * removed dependancy on gsfonts + * Improved argument parsing of wrapper + * Stripped the executables + * Fixed discription bug "This version is aladdin coright,..."! + (Sorry!) + + -- joost witteveen Thu, 31 Oct 1996 20:56:01 +0100 + --- ghostscript-8.64.dfsg.1.orig/debian/ghostscript.prerm +++ ghostscript-8.64.dfsg.1/debian/ghostscript.prerm @@ -0,0 +1,50 @@ +#! /bin/sh +# prerm script for ghostscript +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove) +# install-info --quiet --remove /usr/info/ghostscript.info.gz + if type defoma-app >/dev/null 2>&1; then + defoma-app -t purge gs + fi + update-alternatives --remove-all ps2pdf + ;; + upgrade) + if type defoma-app >/dev/null 2>&1; then + defoma-app -t clean gs + update-alternatives --remove-all ps2pdf + fi + ;; + deconfigure) +# install-info --quiet --remove /usr/info/ghostscript.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ghostscript-8.64.dfsg.1.orig/debian/gs.preinst +++ ghostscript-8.64.dfsg.1/debian/gs.preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for gs +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Do away with update-alternative for /usr/bin/gs, we have one + # grand unified Ghostscript now! + if dpkg --compare-versions "$2" lt-nl "8.63.dfsg.1-1"; then + update-alternatives --remove-all gs || true + update-alternatives --remove-all gs.1 || true + fi + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ghostscript-8.64.dfsg.1.orig/debian/README.Debian +++ ghostscript-8.64.dfsg.1/debian/README.Debian @@ -0,0 +1,124 @@ +ghostscript for Debian +====================== + +Reconstruction +-------------- + +This package is merged from the former gs-gpl, gs-esp, and gs-common +packages, see debian/NEWS file. + + -- Masayuki Hatta (mhatta) , Sun, 13 Jan 2008 07:58:25 +0900 + +Removal of non-free files +------------------------- + +I removed the directory Resource/Cmap and its contents from the +upstream source tarball since their licensing policy does not conform +to the DFSG. Also, jaspter/doc/*.pdf have been removed since their +corresponding sources are not available. + + -- Masayuki Hatta (mhatta) , Wed Apr 28 06:31:45 2004 + +Font handling with Defoma +------------------------- + +The font configuration for Ghostscript is now controlled by Defoma. + +If you want to update the font configuration, run: + + defoma-app update gs + +Then the Defoma-configuration script for gs is called. + +Following describes what the Defoma-configuration script for gs does. + +Ghostscript accepts "type1", "type3", "gsfontderivative", "truetype", +"cid", "cmap" and "psprint" categories. gs registers all PostScript +fonts available to gs in the postscript category with / added to +the front of their names. + +Ghostscript creates files under /var/lib/defoma/gs.d/dirs. This +directory contains CMap and fonts subdirectories, and the CMap +subdirectory is symlinked under /usr/share/ghostscript. + +If you want to have a certain PostScript font name which is not +provided by registered fonts as RealName or Alias, you can have such a +font name substituted. Run + + defoma-subst edit-rule ghostscript + +to edit the subst-rule. + +For example, if you want to have Charter-Bold available whose charset +is ISO8859-1 and which has serifed, proportionally-spaced bold face, +you should add the following line: + +Charter-Bold --Charset,* ISO8859-1 --GeneralFamily Roman --Weight Bold +--Width Variable --Shape Upright Serif + +Then Charter-Bold will be substituted by the most similar font and +become available. + +The way to have CJK font substituted changes compared to the old +gs-aladdin (6.50-x). If you want to have Korean PostScript font, +Dotum-Medium-KSC-EUC-H available whose actual font name is +Dotum-Medium and KSC-EUC-H is a name of CMap, you should add the +following line: + +Dotum-Medium --CIDRegistry,* Adobe --CIDOrdering,* Korea1 --Weight Medium --Shape Upright + +Then Dotum-Medium-* (* is a name of Korean CMap) are substituted and +become available. + +Following is a list of hinttypes specific to gs. + +* GS-OriginFont, GS-OriginID: These hinttypes are used in + gsfontderivative category. The content of a font within this + category is a small PostScript program that generates a + derivative font from a certain substantial type1 or type3 font. + Generally a derivative font has bold or oblique shape, while + the original font has normal upright shape. + A font within this category must specify the original font and + its RealName with GS-OriginFont and GS-OriginID hinttypes. + +1. type1 and type3 + +Fonts within this category are handled in the same way. Symlink to the +fontfile is created under /var/lib/defoma/gs.d/dirs/fonts, and its +font name, font file and alises are listed in Fontmap. + +2. gsfontderivative + +Fonts within this category are handled in the similar way. Only one +difference is that dependency on the origin of the font is registered +when fonts are registered to Id cache. + +3. truetype + +Fonts within this category are handled in the same way as type1 and +type3 if the font doesn't include CJK glyphs. CJK truetype fonts goes +different. It is treated as a cid font. + +4. cid + +Symlink to the font file is created under +/var/lib/defoma/gs.d/dirs/fonts, and its font name, font file and +aliases are listed in CIDFnmap. Using registered CMaps which belong +to the same CIDRegistry and CIDOrdering, - are +registered in postscript category. + +5. cmap + +Symlink to the CMap file is created under +/var/lib/defoma/gs.d/dirs/CMap. Using registered CID fonts which +belong to the same CIDRegistry and CIDOrdering, +- are registered in postscript category. + +6. psprint + +Fonts installed in a PostSciprt printer should be previewable by +ghostscript. They are registered to psprint category, so the script +accepts this category and add the fonts and their hints to a +subst-rule. + + -- Masayuki Hatta (mhatta) , Sat, 21 Oct 2006 05:21:11 +0900 --- ghostscript-8.64.dfsg.1.orig/debian/ghostscript-doc.doc-base +++ ghostscript-8.64.dfsg.1/debian/ghostscript-doc.doc-base @@ -0,0 +1,10 @@ +Document: ghostscript +Title: GPL Ghostscript Manual +Author: artofcode LLC. +Abstract: This manual describes what GPL Ghostscript is + and how it can be used +Section: Text + +Format: HTML +Index: /usr/share/doc/ghostscript/index.html +Files: /usr/share/doc/ghostscript/*.htm* --- ghostscript-8.64.dfsg.1.orig/debian/gs-esp.preinst +++ ghostscript-8.64.dfsg.1/debian/gs-esp.preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for gs-esp +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Do away with update-alternative for /usr/bin/gs, we have one + # grand unified Ghostscript now! + if dpkg --compare-versions "$2" lt-nl "8.63.dfsg.1-1"; then + update-alternatives --remove-all gs || true + update-alternatives --remove-all gs.1 || true + fi + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ghostscript-8.64.dfsg.1.orig/debian/ghostscript.postrm +++ ghostscript-8.64.dfsg.1/debian/ghostscript.postrm @@ -0,0 +1,44 @@ +#! /bin/sh +# postrm script for ghostscript +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove) + # Remove defoma directory + rm -rf /var/lib/defoma/gs.d + ;; + purge) + # Remove defoma-related files + rm -f /etc/defoma/ghostscript.subst-rule + rm -f /etc/defoma/ghostscript.subst-rule~ + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ghostscript-8.64.dfsg.1.orig/debian/copyright +++ ghostscript-8.64.dfsg.1/debian/copyright @@ -0,0 +1,430 @@ +This package was debianized by Masayuki Hatta (mhatta) on +Tue, 23 Mar 2004 19:46:37 +0900. + +It was downloaded from ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/ + +Note: The directory Resource/CMap is stripped from the source tarball, +as its content is not GPL-licensed (only verbatim copying is allowed). +Also, jasper/doc/*.pdf have been removed since their corresponding +sources are not available. + +Upstream Author: artofcode LLC. + +Copyright: + +From LICENSE: + + Copyright (c) Artifex Software Inc., All Rights Reserved. + + The files in the src, lib, toolbin, examples, ijs, doc and man + directories (folders) and any subdirectories (sub-folders) thereof + are part of GPL Ghostscript. + + The files in the Resource directory and any subdirectories thereof + are also part of GPL Ghostscript, with the explicit exception of the + files in the CMap subdirectory. The CMap files are copyright Adobe + Systems Incorporated and covered by a separate license which permits + only verbatim distribution. + + (Non-free CMap files have been removed from the Debian package. - + ed.) + + GPL Ghostscript is free software; you can redistribute it and/or + modify it under the terms of version 2 of the GNU General Public + License as published by the Free Software Foundation. + + GPL Ghostscript is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program so you can know your rights and + responsibilities. It should be in a file named doc/COPYING. If not, + write to the Free Software Foundation, Inc., 51 Franklin Street, + Fifth Floor, Boston, MA 02110-1301, USA. + + --- + + GPL Ghostscript contains an implementation of techniques covered by + US Patents 5,055,942 and 5,917,614, and corresponding international + patents. These patents are licensed for use with GPL Ghostscript + under the following grant: + + Whereas, Raph Levien (hereinafter "Inventor") has obtained patent + protection for related technology (hereinafter "Patented + Technology"), Inventor wishes to aid the the GNU free software + project in achieving its goals, and Inventor also wishes to increase + public awareness of Patented Technology, Inventor hereby grants a + fully paid up, nonexclusive, royalty free license to practice the + patents listed below ("the Patents") if and only if practiced in + conjunction with software distributed under the terms of any version + of the GNU General Public License as published by the Free Software + Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. Inventor reserves all other rights, including without + limitation, licensing for software not distributed under the GNU + General Public License. + + 5055942 Photographic image reproduction device using digital + halftoning to screen images allowing adjustable coarseness + + 5917614 Method and apparatus for error diffusion screening of + images with improved smoothness in highlight and shadow + regions + +On Debian systems, the complete text of the GNU General Public License +Version 2 can be found in `/usr/share/common-licenses/GPL-2'. + +The GPL Ghostscript distribution contains several third party +software, and some of them are governed by different licenses instead +of GNU GPL2. + +For files in the icclib directory: + + ************************************************************************* + Copyright (c) 1997-2002 Graeme W. Gill + + Permission is hereby granted, to use, copy, modify, distribute, and + sell this software and its associated documentation files (the + "Software") for any purpose without fee, provided that: + + 1) The above copyright notices and this permission notice + accompany all source code copies of the Software and + related documentation. and + + 2) If executable code based on the Software only is + distributed, then the accompanying documentation must + aknowledge that "this software is based in part on the work + of Graeme W. Gill". and + + 3) It is accepted that Graeme W. Gill (the "Author") accepts + NO LIABILITY for damages of any kind. The Software is + provided without fee by the Author "AS-IS" and without + warranty of any kind, express, implied or otherwise, + including without limitation, any warranty of + merchantability or fitness for a particular purpose. and + + 4) These conditions apply to any software derived from or + based on the Software, not just to the unmodified library. + and + + 5) Except as contained in this notice, or in the required + acknowledgment, the name of the Author, or the name of any + organization or company affiliated with the Author may not + be used in any advertising or publicity relating to the + Software, without the specific, prior written permission of + the Author. + + ************************************************************************* + +For files in the jasper directory: + + JasPer License Version 2.0 + + Copyright (c) 1999-2000 Image Power, Inc. + Copyright (c) 1999-2000 The University of British Columbia + Copyright (c) 2001-2003 Michael David Adams + + All rights reserved. + + Permission is hereby granted, free of charge, to any person (the + "User") obtaining a copy of this software and associated + documentation files (the "Software"), to deal in the Software + without restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, and/or sell copies of the + Software, and to permit persons to whom the Software is furnished to + do so, subject to the following conditions: + + 1. The above copyright notices and this permission notice (which + includes the disclaimer below) shall be included in all copies or + substantial portions of the Software. + + 2. The name of a copyright holder shall not be used to endorse or + promote products derived from the Software without specific prior + written permission. + + THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS + LICENSE. NO USE OF THE SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT + UNDER THIS DISCLAIMER. THE SOFTWARE IS PROVIDED BY THE COPYRIGHT + HOLDERS "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY + RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY + CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY + DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS + ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + OF THIS SOFTWARE. NO ASSURANCES ARE PROVIDED BY THE COPYRIGHT + HOLDERS THAT THE SOFTWARE DOES NOT INFRINGE THE PATENT OR OTHER + INTELLECTUAL PROPERTY RIGHTS OF ANY OTHER ENTITY. EACH COPYRIGHT + HOLDER DISCLAIMS ANY LIABILITY TO THE USER FOR CLAIMS BROUGHT BY ANY + OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS + OR OTHERWISE. AS A CONDITION TO EXERCISING THE RIGHTS GRANTED + HEREUNDER, EACH USER HEREBY ASSUMES SOLE RESPONSIBILITY TO SECURE + ANY OTHER INTELLECTUAL PROPERTY RIGHTS NEEDED, IF ANY. THE SOFTWARE + IS NOT FAULT-TOLERANT AND IS NOT INTENDED FOR USE IN + MISSION-CRITICAL SYSTEMS, SUCH AS THOSE USED IN THE OPERATION OF + NUCLEAR FACILITIES, AIRCRAFT NAVIGATION OR COMMUNICATION SYSTEMS, + AIR TRAFFIC CONTROL SYSTEMS, DIRECT LIFE SUPPORT MACHINES, OR + WEAPONS SYSTEMS, IN WHICH THE FAILURE OF THE SOFTWARE OR SYSTEM + COULD LEAD DIRECTLY TO DEATH, PERSONAL INJURY, OR SEVERE PHYSICAL OR + ENVIRONMENTAL DAMAGE ("HIGH RISK ACTIVITIES"). THE COPYRIGHT + HOLDERS SPECIFICALLY DISCLAIM ANY EXPRESS OR IMPLIED WARRANTY OF + FITNESS FOR HIGH RISK ACTIVITIES. + + (jasper/doc/*.pdf have been removed since their corresponding + sources are not available - ed.) + +For files in the jbig2dec directory: + + The files in this directory (folder) and any subdirectories + (sub-folders) thereof are part of jbig2dec, with the exception of + certain source files included to support portability which are + marked otherwise in their copyright headers. + + jbig2dec is free software; you can redistribute it and/or modify it + under the terms of version 2 of the GNU General Public License as + published by the Free Software Foundation. + + This software is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program in the file named COPYING. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. + + In addition, specific permission is given to link jbig2dec to or + compile jbig2dec into AFPL Ghostscript and to distribute same under + the AFPL license. + +For files in the jpeg directory: + + (Quoted from jpeg/README) + + LEGAL ISSUES + ============ + + The authors make NO WARRANTY or representation, either express or + implied, with respect to this software, its quality, accuracy, + merchantability, or fitness for a particular purpose. This software + is provided "AS IS", and you, its user, assume the entire risk as to + its quality and accuracy. + + This software is copyright (C) 1991-1998, Thomas G. Lane. All + Rights Reserved except as specified below. + + Permission is hereby granted to use, copy, modify, and distribute + this software (or portions thereof) for any purpose, without fee, + subject to these conditions: (1) If any part of the source code for + this software is distributed, then this README file must be + included, with this copyright and no-warranty notice unaltered; and + any additions, deletions, or changes to the original files must be + clearly indicated in accompanying documentation. (2) If only + executable code is distributed, then the accompanying documentation + must state that "this software is based in part on the work of the + Independent JPEG Group". (3) Permission for use of this software is + granted only if the user accepts full responsibility for any + undesirable consequences; the authors accept NO LIABILITY for + damages of any kind. + + These conditions apply to any software derived from or based on the + IJG code, not just to the unmodified library. If you use our work, + you ought to acknowledge us. + + Permission is NOT granted for the use of any IJG author's name or + company name in advertising or publicity relating to this software + or products derived from it. This software may be referred to only + as "the Independent JPEG Group's software". + + We specifically permit and encourage the use of this software as the + basis of commercial products, provided that all warranty or + liability claims are assumed by the product vendor. + + ansi2knr.c is included in this distribution by permission of + L. Peter Deutsch, sole proprietor of its copyright holder, Aladdin + Enterprises of Menlo Park, CA. ansi2knr.c is NOT covered by the + above copyright and conditions, but instead by the usual + distribution terms of the Free Software Foundation; principally, + that you must include source code if you redistribute it. (See the + file ansi2knr.c for full details.) However, since ansi2knr.c is not + needed as part of any program generated from the IJG code, this does + not limit you more than the foregoing paragraphs do. + + The Unix configuration script "configure" was produced with GNU + Autoconf. It is copyright by the Free Software Foundation but is + freely distributable. The same holds for its supporting scripts + (config.guess, config.sub, ltconfig, ltmain.sh). Another support + script, install-sh, is copyright by M.I.T. but is also freely + distributable. + + It appears that the arithmetic coding option of the JPEG spec is + covered by patents owned by IBM, AT&T, and Mitsubishi. Hence + arithmetic coding cannot legally be used without obtaining one or + more licenses. For this reason, support for arithmetic coding has + been removed from the free JPEG software. (Since arithmetic coding + provides only a marginal gain over the unpatented Huffman mode, it + is unlikely that very many implementations will support it.) So far + as we are aware, there are no patent restrictions on the remaining + code. + + The IJG distribution formerly included code to read and write GIF + files. To avoid entanglement with the Unisys LZW patent, GIF + reading support has been removed altogether, and the GIF writer has + been simplified to produce "uncompressed GIFs". This technique does + not use the LZW algorithm; the resulting GIF files are larger than + usual, but are readable by all standard GIF decoders. + + We are required to state that + "The Graphics Interchange Format(c) is the Copyright property of + CompuServe Incorporated. GIF(sm) is a Service Mark property of + CompuServe Incorporated." + + (The LZW Patent is now void - ed.) + +For files in the libpng directory: + + This copy of the libpng notices is provided for your convenience. + In case of any discrepancy between this copy and the notices in the + file png.h that is included in the libpng distribution, the latter + shall prevail. + + COPYRIGHT NOTICE, DISCLAIMER, and LICENSE: + + If you modify libpng you may insert additional notices immediately + following this sentence. + + libpng versions 1.2.6, August 15, 2004, through 1.2.18, May 15, + 2007, are Copyright (c) 2004, 2006-2007 Glenn Randers-Pehrson, and + are distributed according to the same disclaimer and license as + libpng-1.2.5 with the following individual added to the list of + Contributing Authors + + Cosmin Truta + + libpng versions 1.0.7, July 1, 2000, through 1.2.5 - October 3, + 2002, are Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are + distributed according to the same disclaimer and license as + libpng-1.0.6 with the following individuals added to the list of + Contributing Authors + + Simon-Pierre Cadieux + Eric S. Raymond + Gilles Vollant + + and with the following additions to the disclaimer: + + There is no warranty against interference with your enjoyment of + the library or against infringement. There is no warranty that + our efforts or the library will fulfill any of your particular + purposes or needs. This library is provided with all faults, and + the entire risk of satisfactory quality, performance, accuracy, + and effort is with the user. + + libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, + are Copyright (c) 1998, 1999 Glenn Randers-Pehrson, and are + distributed according to the same disclaimer and license as + libpng-0.96, with the following individuals added to the list of + Contributing Authors: + + Tom Lane + Glenn Randers-Pehrson + Willem van Schaik + + libpng versions 0.89, June 1996, through 0.96, May 1997, are + Copyright (c) 1996, 1997 Andreas Dilger Distributed according to the + same disclaimer and license as libpng-0.88, with the following + individuals added to the list of Contributing Authors: + + John Bowler + Kevin Bracey + Sam Bushell + Magnus Holmgren + Greg Roelofs + Tom Tanner + + libpng versions 0.5, May 1995, through 0.88, January 1996, are + Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc. + + For the purposes of this copyright and license, "Contributing + Authors" is defined as the following set of individuals: + + Andreas Dilger + Dave Martindale + Guy Eric Schalnat + Paul Schmidt + Tim Wegner + + The PNG Reference Library is supplied "AS IS". The Contributing + Authors and Group 42, Inc. disclaim all warranties, expressed or + implied, including, without limitation, the warranties of + merchantability and of fitness for any purpose. The Contributing + Authors and Group 42, Inc. assume no liability for direct, + indirect, incidental, special, exemplary, or consequential damages, + which may result from the use of the PNG Reference Library, even if + advised of the possibility of such damage. + + Permission is hereby granted to use, copy, modify, and distribute + this source code, or portions hereof, for any purpose, without fee, + subject to the following restrictions: + + 1. The origin of this source code must not be misrepresented. + + 2. Altered versions must be plainly marked as such and must not be + misrepresented as being the original source. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + + The Contributing Authors and Group 42, Inc. specifically permit, + without fee, and encourage the use of this source code as a + component to supporting the PNG file format in commercial products. + If you use this source code in a product, acknowledgment is not + required but would be appreciated. + + + A "png_get_copyright" function is available, for convenient use in + "about" boxes and the like: + + printf("%s",png_get_copyright(NULL)); + + Also, the PNG logo (in PNG format, of course) is supplied in the + files "pngbar.png" and "pngbar.jpg (88x31) and "pngnow.png" (98x31). + + Libpng is OSI Certified Open Source Software. OSI Certified Open + Source is a certification mark of the Open Source Initiative. + + Glenn Randers-Pehrson + glennrp at users.sourceforge.net + May 15, 2007 + +For files in the zlib directory: + + Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + + + The data format used by the zlib library is described by RFCs + (Request for Comments) 1950 to 1952 in the files + http://www.ietf.org/rfc/rfc1950.txt (zlib format), rfc1951.txt + (deflate format) and rfc1952.txt (gzip format). --- ghostscript-8.64.dfsg.1.orig/debian/gs-common.preinst +++ ghostscript-8.64.dfsg.1/debian/gs-common.preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for gs-common +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Do away with update-alternative for /usr/bin/gs, we have one + # grand unified Ghostscript now! + if dpkg --compare-versions "$2" lt-nl "8.63.dfsg.1-1"; then + update-alternatives --remove-all gs || true + update-alternatives --remove-all gs.1 || true + fi + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ghostscript-8.64.dfsg.1.orig/debian/rules +++ ghostscript-8.64.dfsg.1/debian/rules @@ -0,0 +1,147 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +DEB_AUTO_UPDATE_AUTOCONF=yes + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk +include /usr/share/cdbs/1/rules/dpatch.mk + +# for building w/ FAPI +#FT_CPPFLAGS = $(shell pkg-config --cflags freetype2) +#FT_LDFLAGS=$(shell pkg-config --libs freetype2) +#FT_OPTS := FT_BRIDGE=1 FT_CFLAGS=$(FT_CPPFLAGS) FT_LIB=$(FT_LDFLAGS) + +#ifeq ($(DEB_HOST_ARCH),s390) +# CC=gcc-3.4 +#else +# CC=gcc +#endif + +# Handling DEB_BUILD_OPTIONS +#export DEB_BUILD_OPTIONS=noopt,nostrip +CFLAGS:=$(CFLAGS) -g $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2) + +DEB_CONFIGURE_SCRIPT_ENV := CFLAGS="$(CFLAGS) -fPIC" CPPFLAGS="$(FT_CPPFLAGS)" LDFLAGS="-lpaper $(FT_LDFLAGS)" +DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ + --with-ijs --with-jbig2dec --with-jasper --with-x --disable-gtk \ + --enable-dynamic --with-omni --enable-cups --disable-compile-inits \ + --disable-cairo --with-drivers=ALL \ + --with-fontpath=/var/lib/defoma/gs.d/dirs/fonts:/usr/share/cups/fonts:/usr/share/ghostscript/fonts:/usr/local/lib/ghostscript/fonts:/usr/share/fonts +DEB_MAKE_BUILD_TARGET := STDDIRS $(FT_OPTS) +DEB_MAKE_INSTALL_TARGET := soinstall install-shared install-cups install-contrib-extras \ + DESTDIR=$(CURDIR)/debian/ghostscript \ + prefix=/usr \ + datadir=/usr/share \ + gsdir=/usr/share/ghostscript \ + docdir=/usr/share/doc/ghostscript \ + exdir=/usr/share/doc/ghostscript/examples \ + CUPSSERVERBIN=/usr/lib/cups \ + CUPSSERVER=/usr/lib/cups \ + CUPSSERVERROOT=/etc/cups \ + CUPSDATA=/usr/share/ppd/ghostscript + +fail-if-cmaps-exist: + @test ! -d Resource/CMap || ( \ + echo; \ + echo 'ERROR: Source contains CMaps that are declared non-free.'; \ + echo ' Please strip Resource/CMap from source!'; \ + exit 1) + +clean:: + -cd jasper && $(MAKE) distclean + [ ! -f Makefile ] || $(MAKE) soclean + [ ! -f Makefile ] || $(MAKE) distclean + # These are somehow left... + -rm -rf sobin soobj cups/pstopxl cups/pstoraster + +build/ghostscript:: + #/usr/bin/docbook-to-man debian/ghostscript.sgml > ghostscript.1 + $(MAKE) cups + +build/ghostscript-x:: + $(MAKE) obj/X11.so + +build/libgs8:: + $(MAKE) so + +install/ghostscript:: + # Move *.types and *.convs files from /etc/cups to + # /usr/share/cups/mime, so that they are not considered conffiles + mkdir -p $(CURDIR)/debian/ghostscript/usr/share/cups/mime/ + mv $(CURDIR)/debian/ghostscript/etc/cups/*.types \ + $(CURDIR)/debian/ghostscript/usr/share/cups/mime/ 2> /dev/null || : + mv $(CURDIR)/debian/ghostscript/etc/cups/*.convs \ + $(CURDIR)/debian/ghostscript/usr/share/cups/mime/ 2> /dev/null || : + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/ghostscript/etc/cups + rmdir --ignore-fail-on-non-empty $(CURDIR)/debian/ghostscript/etc + + # Install Defoma script + install -m 644 $(CURDIR)/debian/gs.defoma $(CURDIR)/debian/ghostscript/usr/share/defoma/scripts + + # Remove some of the scripts + rm $(CURDIR)/debian/ghostscript/usr/bin/unix-lpr.sh $(CURDIR)/debian/ghostscript/usr/bin/lprsetup.sh $(CURDIR)/debian/ghostscript/usr/bin/pv.sh $(CURDIR)/debian/ghostscript/usr/bin/fixmswrd.pl + + # Do not include the Ghostscript loader executable with GTK support + rm -f $(CURDIR)/debian/ghostscript/usr/bin/gsx + + # Do not include the shipped Fontmaps, since Fontmaps will be + # automatically generated by Defoma. + # You may find them in /var/lib/defoma/gs.d/dirs/fonts/ + GSVERSION=`ls -1 $(CURDIR)/debian/ghostscript/usr/share/ghostscript/ | head -1`; \ + rm -f $(CURDIR)/debian/ghostscript/usr/share/ghostscript/$$GSVERSION/Resource/Init/Fontmap*; \ + rm -f $(CURDIR)/debian/ghostscript/usr/share/ghostscript/$$GSVERSION/Resource/Init/cidfmap + + # Rename /usr/bin/gsc, to not conflict with gambc + mv $(CURDIR)/debian/ghostscript/usr/bin/gsc $(CURDIR)/debian/ghostscript/usr/bin/gs + + # Some convenience links + ln -s /usr/bin/gs $(CURDIR)/debian/ghostscript/usr/bin/ghostscript + ln -s /usr/share/man/man1/gs.1 $(CURDIR)/debian/ghostscript/usr/share/man/man1/ghostscript.1 + + # Remove C headers, they go into the libgs-dev package + rm -rf $(CURDIR)/debian/ghostscript/usr/include + +install/ghostscript-x:: + # Separate the dynamic library for X support into the ghostscript-x + # package + mkdir -p $(CURDIR)/debian/ghostscript-x/usr/lib/ + mv $(CURDIR)/debian/ghostscript/usr/lib/ghostscript $(CURDIR)/debian/ghostscript-x/usr/lib/ + +install/ghostscript-doc:: + # Move documentation into the ghostscript-doc package + mkdir -p $(CURDIR)/debian/ghostscript-doc/usr/share/ + mv $(CURDIR)/debian/ghostscript/usr/share/doc $(CURDIR)/debian/ghostscript-doc/usr/share/ + +binary-post-install/ghostscript:: + # for non-arch-all builds, we need to remove the + # documentation and the fonts manually, since + # install/ghostscript-doc is not called + # for them + rm -f $(CURDIR)/debian/ghostscript/usr/share/doc/ghostscript/*.htm + rm -f $(CURDIR)/debian/ghostscript/usr/share/doc/ghostscript/*.html + rm -f $(CURDIR)/debian/ghostscript/usr/share/doc/ghostscript/*.css + 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 + +install/libgs8:: + # Move libgs into the libgs8 package + mkdir -p $(CURDIR)/debian/libgs8/usr/lib/ + rm -f $(CURDIR)/debian/ghostscript/usr/lib/libgs* + cp sobin/libgs.so.8.* $(CURDIR)/debian/libgs8/usr/lib/ + cp -P sobin/libgs.so.8 $(CURDIR)/debian/libgs8/usr/lib/ + + # Move libgs.so link into the libgs-dev package + # and install also the C headers there + mkdir -p $(CURDIR)/debian/libgs-dev/usr/lib/ + cp -P sobin/libgs.so $(CURDIR)/debian/libgs-dev/usr/lib/ + mkdir -p $(CURDIR)/debian/libgs-dev/usr/include/ghostscript + install -m 644 $(CURDIR)/psi/iapi.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript + install -m 644 $(CURDIR)/psi/ierrors.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript + install -m 644 $(CURDIR)/base/gdevdsp.h $(CURDIR)/debian/libgs-dev/usr/include/ghostscript --- ghostscript-8.64.dfsg.1.orig/debian/dirs +++ ghostscript-8.64.dfsg.1/debian/dirs @@ -0,0 +1,5 @@ +usr/bin +usr/share/defoma/scripts +etc/defoma/config +var/lib/defoma/gs.d/dirs/fonts +var/lib/defoma/gs.d/dirs/CMap --- ghostscript-8.64.dfsg.1.orig/debian/control +++ ghostscript-8.64.dfsg.1/debian/control @@ -0,0 +1,149 @@ +Source: ghostscript +Section: text +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Masayuki Hatta (mhatta) +Build-Depends: autoconf, automake1.9 | automaken, debhelper (>= 4.1.0), dpatch, freeglut3-dev | libglut-dev, libjpeg-dev, libpaper-dev, libpng-dev, libz-dev, libxt-dev, libxext-dev, libx11-dev, libcups2-dev (>= 1.3.7), libcupsimage2-dev (>= 1.1.20final+rc1-4), libice-dev, libsm-dev, pkg-config, libfontconfig1-dev, cdbs +Standards-Version: 3.8.0 +Uploaders: Torsten Landschoff , Jonas Smedegaard +Homepage: http://www.ghostscript.com/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-gs/ghostscript/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-gs/ghostscript/trunk/ + +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), ghostscript-fonts, cups (<< 1.3.9-4) +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), ghostscript-fonts +Provides: gs-pdfencrypt, postscript-viewer, gs-common +Recommends: psfontmgr +Suggests: ghostscript-x, hpijs +Depends: ${shlibs:Depends}, gsfonts (>= 6.0-1), defoma, debconf | debconf-2.0, debianutils (>= 1.6), libgs8 (= ${binary:Version}), ${misc:Depends} +Description: The GPL Ghostscript PostScript/PDF interpreter + Ghostscript is used for PostScript/PDF preview and printing. Usually as + a back-end to a program such as ghostview, it can display PostScript and PDF + documents in an X11 environment. + . + Furthermore, it can render PostScript and PDF files as graphics to be printed + on non-PostScript printers. Supported printers include common + dot-matrix, inkjet and laser models. + . + Package gsfonts contains a set of standard fonts for Ghostscript. + +Package: gs +Architecture: all +Priority: extra +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). + It may safely be removed after installation. + +Package: gs-esp +Architecture: all +Priority: extra +Depends: ghostscript, ${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). + It may safely be removed after installation. + +Package: gs-gpl +Architecture: all +Priority: extra +Depends: ghostscript, ghostscript-x, ${misc:Depends} +Description: Transitional package + This dummy package is provided for a smooth transition from the + previous gs-gpl package (the package is replaced by ghostscript). + It may safely be removed after installation. + +Package: gs-aladdin +Architecture: all +Priority: extra +Depends: ghostscript, ghostscript-x, ${misc:Depends} +Description: Transitional package + This dummy package is provided for a smooth transition from the + previous gs-aladdin package (the package is replaced by ghostscript). + It may safely be removed after installation. + +Package: gs-common +Architecture: all +Priority: extra +Depends: ghostscript, ${misc:Depends} +Description: Dummy package depending on ghostscript + This dummy package is provided for a smooth transition from the + previous gs-.../gs-common combo (the packages are replaced by ghostscript). + It may safely be removed after installation. + +Package: ghostscript-x +Architecture: any +Depends: ${shlibs:Depends}, ghostscript (>= 8.63), ${misc:Depends} +Conflicts: ghostscript (<< 8.63) +Provides: gs, gs-esp, gs-gpl, gs-afpl, gs-aladdin +Description: The GPL Ghostscript PostScript/PDF interpreter - X Display support + Ghostscript is used for PostScript/PDF preview and printing. Usually as + a back-end to a program such as ghostview, it can display PostScript and PDF + documents in an X11 environment. + . + This package contains the Ghostscript output device for X11. It is in + a separate package to allow the main package (ghostscript) to be installed + on X-less servers. + +Package: gs-esp-x +Architecture: all +Priority: extra +Depends: ghostscript-x +Description: Transitional package + This dummy package is provided for a smooth transition from the + previous gs-esp-x package (the package is replaced by ghostscript-x). + It may safely be removed after installation. + +Package: ghostscript-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ghostscript (>= 8.63), ${misc:Depends} +Conflicts: ghostscript (<< 8.63) +Description: The GPL Ghostscript PostScript/PDF interpreter - Documentation + Ghostscript is used for PostScript/PDF preview and printing. Usually as + a back-end to a program such as ghostview, it can display PostScript and PDF + documents in an X11 environment. + . + This package contains the documentation of Ghostscript. As this documentation + is only interesting for printer driver developers or advanced users, it is + in this separate package which can be left out in space-restricted + installations, like for example live CDs. + +Package: libgs8 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: The Ghostscript PostScript/PDF interpreter Library + Ghostscript is used for PostScript/PDF preview and printing. Usually as + a back-end to a program such as ghostview, it can display PostScript and PDF + documents in an X11 environment. + . + This package provides the Ghostscript library which makes the + facilities of Ghostscript available to applications. + +Package: libgs-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, libgs8 (= ${binary:Version}), ${misc:Depends} +Conflicts: libgs-esp-dev (<< 8.63) +Replaces: libgs-esp-dev (<< 8.63) +Provides: libgs-esp-dev +Description: The Ghostscript PostScript Library - Development Files + Ghostscript is used for PostScript/PDF preview and printing. Usually as + a back-end to a program such as ghostview, it can display PostScript and PDF + documents in an X11 environment. + . + This package provides the development files for the Ghostscript library + which makes the facilities of Ghostscript available to applications. + +Package: libgs-esp-dev +Architecture: all +Priority: extra +Depends: libgs-dev +Description: Transitional package + This dummy package is provided for a smooth transition from the + previous libgs-esp-dev package (the package is replaced by libgs-dev). + It may safely be removed after installation. --- ghostscript-8.64.dfsg.1.orig/debian/ghostscript.links +++ ghostscript-8.64.dfsg.1/debian/ghostscript.links @@ -0,0 +1,14 @@ +var/lib/defoma/gs.d/dirs/CMap usr/share/ghostscript/8.64/Resource/CMap +var/lib/defoma/gs.d/dirs/CMap usr/share/ghostscript/CMap +usr/bin/ps2ascii usr/bin/ps2txt +usr/share/man/de/man1/ps2ps.1.gz usr/share/man/de/man1/eps2eps.1.gz +usr/share/man/de/man1/ps2pdf.1.gz usr/share/man/de/man1/ps2pdf12.1.gz +usr/share/man/de/man1/ps2pdf.1.gz usr/share/man/de/man1/ps2pdf13.1.gz +usr/share/man/man1/ps2ps.1.gz usr/share/man/man1/eps2eps.1.gz +usr/share/man/man1/gslp.1.gz usr/share/man/man1/gsbj.1.gz +usr/share/man/man1/gslp.1.gz usr/share/man/man1/gsdj.1.gz +usr/share/man/man1/gslp.1.gz usr/share/man/man1/gsdj500.1.gz +usr/share/man/man1/gslp.1.gz usr/share/man/man1/gslj.1.gz +usr/share/man/man1/ps2pdf.1.gz usr/share/man/man1/ps2pdf12.1.gz +usr/share/man/man1/ps2pdf.1.gz usr/share/man/man1/ps2pdf13.1.gz +usr/share/man/man1/ps2pdf.1.gz usr/share/man/man1/ps2pdf14.1.gz --- ghostscript-8.64.dfsg.1.orig/debian/NEWS +++ ghostscript-8.64.dfsg.1/debian/NEWS @@ -0,0 +1,55 @@ +ghostscript (8.61.dfsg.1~svn8187-1) unstable; urgency=low + + As the ESP Ghostscript development is discontinued now, the extra + functionality of ESP Ghostscript is merged into upstream GPL Ghostscript + from version 8.60 on. This is the first Debian/Ubuntu package of this + merged Ghostscript. It contains the following added functionality from + ESP Ghostscript: + + - Enhanced PCL XL driver. + - Shared library and driver (X11) support for Linux/UNIX. + - The CUPS "driver" that generates a series of raster + images for CUPS printer drivers. + - Nearly all known free printer drivers which have to + be compiled into Ghostscript - drivers listed with + "Execution style: Ghostscript" on openprinting.org. + Not included are some obsolete drivers such as hpdj + which is replaced by the included pcl3 driver. + - All known Uniprint configuration files (*.upp) as + listed on openprinting.org. + - Patches to add the NOMEDIAATTRS option to Ghostscript, + which allows CUPS drivers to use media options + separate from Ghostscript. + - KRGB support for IJS drivers. + - OpenPrinting Vector interface + - Support files for CUPS. + - Enhanced build system (easy driver selection, font + search path setting, ...). + + This package has everything activated. + + Due to Ghostscript's head development being under GPL now, and all important + functionality being developed at ghostscript.com, forks are not needed any + more. This makes gs-esp, gs-afpl, and gs-common obsolete. gs-gpl is also + renamed to ghostscript now, so that it can be found in repositories more + easily. This new ghostscript package automatically removes all gs-* packages. + + -- Till Kamppeter Mon, 21 May 2007 13:00:21 +0100 + +gs-gpl (8.01-5) unstable; urgency=low + + For CJKV users: GPL gs 8.x does not contain CJK TrueType font + support (it still has CJK CID font support, though), so you can not + use CJK *.ttf/ttc with gs-gpl. I strongly urge you to use + gs-esp for the time being. + + -- Masayuki Hatta (mhatta) Sun, 15 Aug 2004 13:26:21 +0900 + +gs-gpl (8.01-3) unstable; urgency=low + + Currently gs-gpl has stp support, but please note that this driver + will be removed after sarge's release since stp has been obsoleted + by ijs (ijsgimpprint). Those of you who still use stp are strongly + recommended to migrate to ijsgimpprint ASAP. + + -- Masayuki Hatta (mhatta) Wed, 28 Apr 2004 05:40:05 +0900 --- ghostscript-8.64.dfsg.1.orig/debian/watch +++ ghostscript-8.64.dfsg.1/debian/watch @@ -0,0 +1,8 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +version=3 +opts=uversionmangle=s/-gpl$//,dversionmangle=s/\.dfsg.+// \ +http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/current/ghostscript-(\d+.+)\.tar\.gz + --- ghostscript-8.64.dfsg.1.orig/debian/gs.defoma +++ ghostscript-8.64.dfsg.1/debian/gs.defoma @@ -0,0 +1,930 @@ +# +# gs.defoma: Defoma support for Ghostscripts +# + +@ACCEPT_CATEGORIES = qw(type1 type3 gsfontderivative truetype cid + cmap psprint); + +package gs; +use strict; +use POSIX; + +use vars qw($DEFOMA_TEST_DIR $ROOTDIR); + +use Debian::Defoma::Common; +use Debian::Defoma::Font; +use Debian::Defoma::Id; +use Debian::Defoma::Subst; +import Debian::Defoma::Font; +import Debian::Defoma::Id; +import Debian::Defoma::Subst; +import Debian::Defoma::Common; + +my $Id; +my $IdCmap; +my $Sb1; +my $Sb2; + +my $PkgDir = "$ROOTDIR/gs.d"; +my $CidDir = "$PkgDir/dirs/CIDFont"; +my $CMapDir = "$PkgDir/dirs/CMap"; +my $TTCidDir = "$PkgDir/dirs/TTCIDFont"; +my $FontDir = "$PkgDir/dirs/fonts"; +my $FontMap = "$FontDir/Fontmap"; # F +my $CIDFontMap = "$FontDir/CIDFnmap"; # FF +my $Subst4psprint = 0; +# For Ghostscript 8 or later +my $FAPIfmap = "$FontDir/FAPIfontmap"; # FFF +my $Cidfmap = "$FontDir/cidfmap"; # FFFF + +sub init { + unless ($Id) { + $Id = defoma_id_open_cache(); + } + unless ($IdCmap) { + $IdCmap = defoma_id_open_cache('cmap'); + } + unless ($Sb1) { + $Sb1 = defoma_subst_open(rulename => 'psprint', threshold => 50, + idobject => $Id, private => 1); + } + unless ($Sb2) { + $Sb2 = defoma_subst_open(rulename => 'ghostscript', threshold => 30, + idobject => $Id); + } + + return 0; +} + +sub term { + my @list; + my $i; + + if ($Id) { + if (open(F, '>' . $FontMap) && open(FF, '>' . $CIDFontMap) && + open(FFF, '>' . $FAPIfmap) && open(FFFF, '>' . $Cidfmap)) { + @list = defoma_id_get_font($Id, 'installed'); + + foreach $i (@list) { + next if ($Id->{2}->[$i] ne 'SrI'); + my $c = $Id->{4}->[$i]; + my $f; + my @h; + my $cmap; + my @cmaplist; + my $j; + my @ch; + my %hh; + + if ($c =~ /^(type1|type3|gsfontderivative)$/) { + $f = $Id->{1}->[$i]; + $f =~ s/^.*\///; + # + # Spit out $FontDir/Fontmap + # + print F '/', $Id->{0}->[$i], ' (', $f, ") ;\n"; + } elsif ($c =~ /^truetype$/) { + $f = $Id->{1}->[$i]; + # + # Spit out $FontDir/FAPIfontmap + # + # FIXME: need to support the sub font id for the collection. + print FFF '/', $Id->{0}->[$i], ' << /Path (', $f, ') /FontType 1 /FAPI /FreeType /SubfontId ', '0' , " >> ;\n" + } elsif ($c =~ /^(truetype-cjk|cid)$/) { + $f = $Id->{1}->[$i]; + @h = split(/ +/, $Id->{7}->[$i]); + # + # Spit out $FontDir/CIDFnmap + # + print FF '/', $Id->{0}->[$i], ' (', $f, ') '; + if ($c eq 'truetype-cjk') { + print FF '/', $h[0], '-', $h[1], '-', $h[2]; + } + print FF " ;\n"; + # For Ghostscript 8 or later + if ($c eq 'truetype-cjk') { + my @hints = defoma_id_get_hints( $Id, $i ); + my $cidsupplement; + while (@hints) { + my $var = shift @hints; + if ($var eq "--CIDSupplement") { + $cidsupplement = shift @hints; + last; + } + } + unless (defined $cidsupplement) { + print STDERR "No CIDSupplement specified for $Id->{0}->[$i], defaulting to 0.\n"; + $cidsupplement = 0; + } + # + # Spit out $FontDir/cidfmap + # + # FIXME: need to support the sub font id for the collection. + print FFFF '/', $Id->{0}->[$i], ' << /FileType /TrueType /Path (', $f, ') /SubfontID ', '0', ' /CSI [(', $h[6], ') ', $cidsupplement, "] >> ;\n"; + } + } + } + + @list = defoma_id_get_font($Id, 'installed'); + + foreach $i (@list) { + next if ($Id->{2}->[$i] !~ /^.[aS]/); + + my $c = $Id->{4}->[$i]; + # + # Spit out aliases + # + if ($c =~ /^(truetype|type1|type3|gsfontderivative)$/) { + print F '/', $Id->{0}->[$i], ' /', $Id->{5}->[$i], " ; \n"; + print FFF '/', $Id->{0}->[$i], ' /', $Id->{5}->[$i], " ; \n"; + } elsif ($c =~ /^(truetype-cjk|cid)$/) { + print FF '/', $Id->{0}->[$i], ' /', $Id->{5}->[$i], " ;\n"; + print FFFF '/', $Id->{0}->[$i], ' /', $Id->{5}->[$i], " ;\n"; + } + + } + + close F; + close FF; + close FFF; + close FFFF; + unlink($FontMap) unless(-s $FontMap); + unlink($CIDFontMap) unless(-s $CIDFontMap); + unlink($FAPIfmap) unless(-s $FAPIfmap); + unlink($Cidfmap) unless(-s $Cidfmap); + } + + defoma_id_close_cache($Id); + $Id = 0; + } + if ($IdCmap) { + defoma_id_close_cache($IdCmap); + $IdCmap = 0; + } + if ($Sb1) { + defoma_subst_close($Sb1); + $Sb1 = 0; + } + if ($Sb2) { + defoma_subst_close($Sb2); + $Sb2 = 0; + } + + return 0; +} + +sub create_symlink { + my $font = shift; + my $dir = shift || $FontDir; + + if ($font =~ /^(.*)\/(.+)$/) { + my $fontpath = $1; + my $fontfile = $2; + my $newfile = $dir . '/' . $fontfile; + + return 1 if (-e $newfile); + + symlink($font, $newfile) || return 1; + } else { + return 1; + } + + return 0; +} + +sub remove_symlink { + my $font = shift; + my $dir = shift || $FontDir; + + if ($font =~ /^(.*)\/(.+)$/) { + my $fontpath = $1; + my $fontfile = $2; + my $newfile = $dir . '/' . $fontfile; + + return 1 unless (-l $newfile); + + unlink($newfile); + } else { + return 1; + } + + return 0; +} + +sub register_ps { + my $id = shift; + + defoma_font_register('postscript', '/' . $id, @_); +} + +sub unregister_ps { + my $id = shift; + + if (defoma_font_if_register('postscript', '/' . $id)) { + defoma_font_unregister('postscript', '/' . $id); + } +} + +sub t1_register { + my $type = shift; + my $font = shift; + my $h = parse_hints_start(@_); + + my $fontname = $h->{FontName}; + return 1 unless ($fontname); + $fontname =~ s/ .*//; + + my $priority = $h->{Priority} || 0; + + my %add; + $add{hints} = join(' ', @_); + + if ($type eq 'gsfontderivative') { + my $ofont = $h->{'GSF-OriginFont'}; + my $oid = $h->{'GSF-OriginID'}; + + if ($ofont && $oid) { + $add{depend} = $ofont.' '.$oid; + } else { + return 2; + } + } + + return 3 if (create_symlink($font)); + + defoma_id_register($Id, type => 'real', font => $font, id => $fontname, + priority => $priority, %add); + + my @alias = ($h->{Alias}) ? split(/ +/, $h->{Alias}) : (); + my $i; + + foreach $i (@alias) { + defoma_id_register($Id, type => 'alias', font => $font, id => $i, + priority => $priority, origin => $fontname); + } + + defoma_subst_register($Sb1, $font, $fontname); + defoma_subst_register($Sb2, $font, $fontname); + + return 0; +} + +sub t1_unregister { + my $font = shift; + + defoma_subst_unregister($Sb1, $font); + defoma_subst_unregister($Sb2, $font); + defoma_id_unregister($Id, type => 'alias', font => $font); + defoma_id_unregister($Id, type => 'real', font => $font); + + remove_symlink($font); + + return 0; +} + +sub t1_install { + my $type = shift; + my $font = shift; + my $id = shift; + my $depfont = shift; + my $depid = shift; + my @add = (); + + if ($type eq 'real') { + return 0 if (grep($_ eq '--Alias', @_)); + + $add[0] = '--RealName'; + } + + register_ps($id, @_, @add); + + return 0; +} + +sub t1_remove { + my $type = shift; + my $font = shift; + my $id = shift; + my $depfont = shift; + my $depid = shift; + + unregister_ps($id); + + return 0; +} + +sub type1 { + my $com = shift; + + if ($com eq 'register') { + return t1_register('type1', @_); + } elsif ($com eq 'unregister') { + return t1_unregister(@_); + } elsif ($com =~ /^do-install-(.*)$/) { + return t1_install($1, @_); + } elsif ($com =~ /^do-remove-(.*)$/) { + return t1_remove($1, @_); + } elsif ($com eq 'init') { + return init(); + } elsif ($com eq 'term') { + return term(); + } + + return 0; +} + +sub type3 { + return type1(@_); +} + +sub gsfontderivative { + my $com = shift; + + if ($com eq 'register') { + return t1_register('gsfontderivative', @_); + } else { + return type1($com, @_); + } +} + +sub tt_register_cjk { + my %addstr = ('Japanese' => '-Ja', + 'Korean' => '-Ko', + 'Chinese-China' => '-GB', + 'Chinese-Taiwan' => '-CNS'); + my %ordering = ('Japanese' => 'Japan1', + 'Korean' => 'Korea1', + 'Chinese-China' => 'GB1', + 'Chinese-Taiwan' => 'CNS1'); + my %coding = ('Unicode' => 'Unicode', + 'BIG5' => 'Big5', + 'ShiftJIS' => 'ShiftJIS', + 'WanSung' => 'WanSung', + 'Johab' => 'Johab'); + + my $cnt = shift; + my $loc = shift; + my $font = shift; + my $fontname = shift; + my $alias = shift; + my $charset = shift; + my $encoding = shift; + my $priority = shift; + + return $cnt unless (exists($addstr{$loc}) && exists($ordering{$loc}) && + exists($coding{$encoding})); + my $ord = $ordering{$loc}; + my $enc = $coding{$encoding}; + + my $add = ''; + $add = $addstr{$loc} if ($cnt > 0); + + my @hints = ('Adobe', $ord, $enc, + '--CIDRegistry', 'Adobe', '--CIDOrdering', $ord); + + defoma_id_register($Id, type => 'real', font => $font, + id => $fontname . $add, priority => $priority, + category => 'truetype-cjk', + hints => join(' ', @hints, @_)); + + foreach my $i (@{$alias}) { + defoma_id_register($Id, type => 'alias', font => $font, + id => $i . $add, priority => $priority, + category => 'truetype-cjk', + origin => $fontname . $add); + } + + defoma_subst_register($Sb1, $font, $fontname . $add); + defoma_subst_register($Sb2, $font, $fontname . $add); + + $cnt++; + return $cnt unless ($charset =~ /JISX0212/ && $loc eq 'Japanese' && + $encoding eq 'Unicode'); + + $add = '-JaH'; + @hints = ('Adobe', 'Japan2', 'Unicode', + '--CIDRegistry', 'Adobe', '--CIDOrdering', 'Japan2'); + + defoma_id_register($Id, type => 'real', font => $font, + id => $fontname . $add, priority => $priority, + category => 'truetype-cjk', + hints => join(' ', @hints, @_)); + + foreach my $i (@{$alias}) { + defoma_id_register($Id, type => 'alias', font => $font, + id => $i . $add, priority => $priority, + category => 'truetype-cjk', + origin => $fontname . $add); + } + + defoma_subst_register($Sb1, $font, $fontname . $add); + defoma_subst_register($Sb2, $font, $fontname . $add); + + $cnt++; + return $cnt; +} + +sub tt_register { + my $font = shift; + my $h = parse_hints_start(@_); + my $i; + + my $fontname = $h->{FontName}; + my $location = $h->{Location}; + my $encoding = $h->{Encoding}; + my $priority = $h->{Priority} || 0; + my $charset = $h->{Charset}; + + return 1 unless ($fontname && $location && $encoding); + $fontname =~ s/ .*//; + my @alias = ($h->{Alias}) ? split(/ +/, $h->{Alias}) : (); + + return 2 if (create_symlink($font)); + + parse_hints_cut($h, 'Encoding', 'Location', 'FontName'); + my @hints; + + if ($location !~ /Japanese|Korean|Chinese/) { + @hints = parse_hints_build($h); + + defoma_id_register($Id, type => 'real', font => $font, id => $fontname, + priority => $priority, hints => join(' ', @hints)); + + foreach $i (@alias) { + defoma_id_register($Id, type => 'alias', font => $font, id => $i, + priority => $priority, origin => $fontname); + } + + defoma_subst_register($Sb1, $font, $fontname); + defoma_subst_register($Sb2, $font, $fontname); + } else { + parse_hints_cut($h, 'Charset'); + @hints = parse_hints_build($h); + + my $loc; + my @locs = split(/ /, $location); + my $cnt = 0; + + foreach $loc (@locs) { + $cnt = tt_register_cjk($cnt, $loc, $font, $fontname, \@alias, + $charset, $encoding, $priority, @hints); + } + } + + return 0; +} + +sub tt_unregister { + my $font = shift; + + defoma_subst_unregister($Sb1, $font); + defoma_subst_unregister($Sb2, $font); + defoma_id_unregister($Id, type => 'alias', font => $font); + defoma_id_unregister($Id, type => 'real', font => $font); + + remove_symlink($font); + + return 0; +} + +sub tt_install { + my $type = shift; + my $font = shift; + my $id = shift; + my $depfont = shift; + my $depid = shift; + + my @add = (); + + $add[0] = '--RealName' if ($type eq 'real'); + + register_ps($id, @_, @add); + + return 0; +} + +sub tt_remove { + my $type = shift; + my $font = shift; + my $id = shift; + my $depfont = shift; + my $depid = shift; + + unregister_ps($id); + + return 0; +} + +sub truetype { + my $com = shift; + + if ($com eq 'register') { + return tt_register(@_); + } elsif ($com eq 'unregister') { + return tt_unregister(@_); + } elsif ($com =~ /^do-install-(.*)$/) { + return tt_install($1, @_); + } elsif ($com =~ /^do-remove-(.*)$/) { + return tt_remove($1, @_); + } elsif ($com eq 'init') { + return init(); + } elsif ($com eq 'term') { + return term(); + } + + return 0; +} + +sub truetype_cjk { + my $com = shift; + + if ($com =~ /^do-install-(.*)$/) { + return cid_install($1, @_); + } elsif ($com =~ /^do-remove-(.*)$/) { + return cid_remove($1, @_); + } elsif ($com eq 'init') { + return init(); + } elsif ($com eq 'term') { + return term(); + } + + return 0; +} + +sub cid_register { + my $type = shift; + my $font = shift; + my $h = parse_hints_start(@_); + + my $fontname = $h->{FontName}; + my $registry = $h->{CIDRegistry}; + my $ordering = $h->{CIDOrdering}; + my $priority = $h->{Priority} || 0; + + return 1 unless($fontname && $registry && $ordering); + $fontname =~ s/ .*//; + $registry =~ s/ .*//; + $ordering =~ s/ .*//; + my @alias = ($h->{Alias}) ? split(/ +/, $h->{Alias}) : (); + + return 2 if (create_symlink($font)); + + parse_hints_cut($h, 'PSCharset', 'PSEncoding', 'Charset', 'Encoding'); + my @hints = parse_hints_build($h); + @hints = ($registry, $ordering, '.', @hints); + + defoma_id_register($Id, type => 'real', font => $font, + id => $fontname, priority => $priority, + category => $type, hints => join(' ', @hints)); + + my $i; + foreach $i (@alias) { + defoma_id_register($Id, type => 'alias', font => $font, id => $i, + priority => $priority, origin => $fontname, + category => $type); + } + + defoma_subst_register($Sb1, $font, $fontname); + defoma_subst_register($Sb2, $font, $fontname); + + return 0; +} + +sub cid_unregister { + my $font = shift; + + defoma_subst_unregister($Sb1, $font); + defoma_subst_unregister($Sb2, $font); + defoma_id_unregister($Id, type => 'alias', font => $font); + defoma_id_unregister($Id, type => 'real', font => $font); + + remove_symlink($font); + + return 0; +} + +sub cid_install_all { + my $type = shift; + my $id = shift; + my $registry = shift; + my $ordering = shift; + + my @cmaps = defoma_id_get_font($IdCmap, 'installed'); + foreach my $c (@cmaps) { + my @chs = split(/ +/, $IdCmap->{7}->[$c]); + + next if ($chs[0] ne $registry); + next if ($chs[1] ne $ordering && $chs[1] ne 'Identity'); + + shift(@chs); + shift(@chs); + + my $psname = $id . '-' . $IdCmap->{0}->[$c]; + + my @add = (); + $add[0] = '--RealName' if ($type eq 'real'); + + register_ps($psname, @_, @add, @chs); + } + + return 0; +} + +sub cid_remove_all { + my $type = shift; + my $id = shift; + my $registry = shift; + my $ordering = shift; + + my @cmaps = defoma_id_get_font($IdCmap, 'installed'); + foreach my $c (@cmaps) { + my @chs = split(/ +/, $IdCmap->{7}->[$c]); + + next if ($chs[0] ne $registry); + next if ($chs[1] ne $ordering && $chs[1] ne 'Identity'); + + my $psname = $id . '-' . $IdCmap->{0}->[$c]; + + unregister_ps($psname); + } + + return 0; +} + +sub cid_install { + my $type = shift; + my $font = shift; + my $id = shift; + my $depfont = shift; + my $depid = shift; + my $registry = shift; + my $ordering = shift; + my $encoding = shift; + + cid_install_all($type, $id, $registry, $ordering, @_); + + return 0; +} + +sub cid_remove { + my $type = shift; + my $font = shift; + my $id = shift; + my $depfont = shift; + my $depid = shift; + my $registry = shift; + my $ordering = shift; + my $encoding = shift; + + cid_remove_all($type, $id, $registry, $ordering); + + return 0; +} + +sub cid { + my $com = shift; + + if ($com eq 'register') { + return cid_register('cid', @_); + } elsif ($com eq 'unregister') { + return cid_unregister(@_); + } elsif ($com =~ /^do-install-(.*)$/) { + return cid_install($1, @_); + } elsif ($com =~ /^do-remove-(.*)$/) { + return cid_remove($1, @_); + } elsif ($com eq 'init') { + return init(); + } elsif ($com eq 'term') { + return term(); + } + + return 0; +} + +sub cmap_register { + my $font = shift; + + if ($font =~ /\/gs-cjk-resource\//) { + return 2 if (create_symlink($font, $CMapDir)); + return 0; + } + + my $h = parse_hints_start(@_); + + my $cmap = $h->{CMapName}; + my $reg = $h->{CIDRegistry}; + my $ord = $h->{CIDOrdering}; + + return 1 unless ($cmap && $reg && $ord); + $reg =~ s/ .*//; + $ord =~ s/ .*//; + $cmap =~ s/ .*//; + + my @hints = ($reg, $ord, @_); + + defoma_id_register($IdCmap, type => 'real', font => $font, id => $cmap, + priority => 0, hints => join(' ', @hints)); + + return 0; +} + +sub cmap_unregister { + my $font = shift; + + if ($font =~ /\/gs-cjk-resource\//) { + remove_symlink($font, $CMapDir); + return 0; + } + + defoma_id_unregister($IdCmap, type => 'real', font => $font); + + return 0; +} + +sub cmap_install { + my $font = shift; + my $cmap = shift; + my $df = shift; + my $di = shift; + my $reg = shift; + my $ord = shift; + my %hash; + my @nonreal = (); + + return 1 if (create_symlink($font, $CMapDir)); + + my @list = (defoma_id_get_font($Id, 'installed', f4 => 'cid'), + defoma_id_get_font($Id, 'installed', f4 => 'truetype-cjk')); + + foreach my $i (@list) { + my $type = $Id->{2}->[$i]; + my $id = $Id->{0}->[$i]; + + if ($type ne 'SrI') { + push(@nonreal, $i); + next; + } + + my @hints = split(/ +/, $Id->{7}->[$i]); + + next if ($hints[0] ne $reg); + next if ($hints[1] ne $ord && $ord ne 'Identity'); + + $hash{$id} = $i; + + shift(@hints); + shift(@hints); + shift(@hints); + + my $psname = $id . '-' . $cmap; + + register_ps($psname, @hints, '--RealName', @_); + } + + foreach my $i (@nonreal) { + my $depid = $Id->{5}->[$i]; + next unless (exists($hash{$depid})); + + my @hints = split(/ +/, $Id->{7}->[$hash{$depid}]); + + next if ($hints[0] ne $reg); + next if ($hints[1] ne $ord && $ord ne 'Identity'); + + shift(@hints); + shift(@hints); + shift(@hints); + + my $psname = $Id->{0}->[$i] . '-' . $cmap; + + register_ps($psname, @hints, @_); + } + + return 0; +} + +sub cmap_remove { + my $font = shift; + my $cmap = shift; + my $df = shift; + my $di = shift; + my $reg = shift; + my $ord = shift; + my %hash; + + remove_symlink($font, $CMapDir); + + my @list = (defoma_id_get_font($Id, 'installed', f4 => 'cid'), + defoma_id_get_font($Id, 'installed', f4 => 'truetype-cjk')); + + foreach my $i (@list) { + my @hints = split(/ +/, $Id->{7}->[$i]); + + if (@hints > 0) { + next if ($hints[0] ne $reg); + next if ($hints[1] ne $ord && $ord ne 'Identity'); + } + + my $psname = $Id->{0}->[$i] . '-' . $cmap; + + unregister_ps($psname); + } + + return 0; +} + +sub cmap { + my $com = shift; + + if ($com eq 'register') { + return cmap_register(@_); + } elsif ($com eq 'unregister') { + return cmap_unregister(@_); + } elsif ($com eq 'do-install-real') { + return cmap_install(@_); + } elsif ($com eq 'do-remove-real') { + return cmap_remove(@_); + } elsif ($com eq 'init') { + return init(); + } elsif ($com eq 'term') { + return term(); + } + + return 0; +} + +sub psprint_register { + my $font = shift; + return 0 unless ($Subst4psprint); + return 1 if ($font !~ /(.+)\/(.+)/); + + return 0 if ($1 eq ''); + my $fontname = $2; + + return 2 if ($Sb1->grep_rule('', $fontname)); + + my @hints; + my $h = parse_hints_start(@_); + my $cset = $h->{PSCharset}; + my $enc = $h->{PSEncoding}; + + if ($cset && $enc && $cset =~ /^Adobe-([^-]+).*$/) { + my $ord = $1; + $fontname =~ s/-$enc$//; + + parse_hints_cut($h, 'PSCharset', 'PSEncoding', 'Charset', 'Encoding', + 'Direction'); + @hints = parse_hints_build($h); + push(@hints, '--CIDRegistry,*', 'Adobe', '--CIDOrdering,*', $ord); + } else { + @hints = @_; + } + + for my $i (@hints) { + $i = '--Charset,*' if ($i eq '--Charset'); + $i = '--Encoding,*' if ($i eq '--Encoding'); + $i = '--Direction,*' if ($i eq '--Direction'); + $i = '--Shape,2' if ($i eq '--Shape'); + } + + defoma_subst_add_rule($Sb1, $fontname, @hints); + + return 0; +} + +sub psprint_unregister { + my $font = shift; + return 0 if ($font !~ /(.+)\/(.+)/); + + return 0 if ($1 eq ''); + my $fontname = $2; + + my $h = parse_hints_start(@_); + my $cset = $h->{PSCharset}; + my $enc = $h->{PSEncoding}; + + if ($cset && $enc && $cset =~ /^Adobe-.*$/) { + $fontname =~ s/-$enc$//; + } + + defoma_subst_remove_rule($Sb1, $fontname); + + return 0; +} + +sub psprint { + my $com = shift; + + if ($com eq 'register') { + return psprint_register(@_); + } elsif ($com eq 'unregister') { + return psprint_unregister(@_); + } elsif ($com eq 'init') { + return init(); + } elsif ($com eq 'term') { + return term(); + } + + return 0; +} + +1; --- ghostscript-8.64.dfsg.1.orig/debian/gs-aladdin.preinst +++ ghostscript-8.64.dfsg.1/debian/gs-aladdin.preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for gs-aladdin +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Do away with update-alternative for /usr/bin/gs, we have one + # grand unified Ghostscript now! + if dpkg --compare-versions "$2" lt-nl "8.63.dfsg.1-1"; then + update-alternatives --remove-all gs || true + update-alternatives --remove-all gs.1 || true + fi + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ghostscript-8.64.dfsg.1.orig/debian/gs-gpl.preinst +++ ghostscript-8.64.dfsg.1/debian/gs-gpl.preinst @@ -0,0 +1,45 @@ +#!/bin/sh +# preinst script for gs-afpl +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + # Do away with update-alternative for /usr/bin/gs, we have one + # grand unified Ghostscript now! + if dpkg --compare-versions "$2" lt-nl "8.63.dfsg.1-1"; then + update-alternatives --remove-all gs || true + update-alternatives --remove-all gs.1 || true + fi + + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- ghostscript-8.64.dfsg.1.orig/debian/ghostscript.postinst +++ ghostscript-8.64.dfsg.1/debian/ghostscript.postinst @@ -0,0 +1,92 @@ +#! /bin/sh +# postinst script for ghostscript +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + # /usr/bin/ps2pdf is now controlled by update-alternatives + update-alternatives --install /usr/bin/ps2pdf \ + ps2pdf /usr/bin/ps2pdf14 50 + update-alternatives --install /usr/bin/ps2pdf \ + ps2pdf /usr/bin/ps2pdf12 30 + update-alternatives --install /usr/bin/ps2pdf \ + ps2pdf /usr/bin/ps2pdf13 40 + + # Make sure the substitution file for Ghostscript exists + if ! defoma-subst check-rule ghostscript; then + defoma-subst new-rule ghostscript + fi + + defoma-app -t update gs + + # Do the following only if CUPS is running and the needed CUPS tools + # are available + if which lpstat > /dev/null 2>&1 && \ + which lpinfo > /dev/null 2>&1 && \ + which lpadmin > /dev/null 2>&1 && \ + lpstat -r > /dev/null 2>&1; then + # Update the PPD files of all already installed print queues + driverregexp='lsb/usr/ghostscript/' + gennicknameregexp='' + [ ! -z "$gennicknameregexp" ] && \ + gennicknameregexp="; $gennicknameregexp" + gennicknameregexp='s/\s*\(recommended\)//'"$gennicknameregexp" + tempfiles= + trap 'rm -f $tempfiles; exit 0' 0 1 2 13 15 + tmpfile1=`mktemp -t updateppds.XXXXXX` + tempfiles="$tempfiles $tmpfile1" + lpinfo -m | grep -E $driverregexp > $tmpfile1 + cd /etc/cups/ppd + for ppd in `ls -1 *.ppd 2>/dev/null`; do + queue=${ppd%.ppd} + nickname=`grep '\*NickName:' $ppd | cut -d '"' -f 2 | perl -p -e 's/\n$//' | perl -p -e "$gennicknameregexp" | perl -p -e 's/(\W)/\\\\$1/g'` + lang=`grep '\*LanguageVersion:' $ppd | cut -d ' ' -f 2 | perl -e 'print lc(<>)' | perl -p -e 's/[\r\n]//gs'` + ppdfound="0" + englishppduri="" + tmpfile2=`mktemp -t updateppds.XXXXXX` + tempfiles="$tempfiles $tmpfile2" + cat $tmpfile1 | perl -p -e "$gennicknameregexp" | grep -E '^\S+\s+.*'"$nickname"'$' | cut -d ' ' -f 1 > $tmpfile2 + while read newppduri; do + [ "$ppdfound" = "0" ] && lpadmin -p $queue -m $newppduri + newlang=`grep '\*LanguageVersion:' $ppd | cut -d ' ' -f 2 | perl -e 'print lc(<>)' | perl -p -e 's/[\r\n]//gs'` + [ "$newlang" = "$lang" ] && ppdfound="1" + [ "$newlang" = "english" ] && englishppduri="$newppduri" + done < $tmpfile2 + [ "$ppdfound" = "0" ] && [ ! -z "$englishppduri" ] && lpadmin -p $queue -m $englishppduri && ppdfound="1" + [ "$ppdfound" = "1" ] && echo PPD for printer $queue updated >&2 + done + fi + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- ghostscript-8.64.dfsg.1.orig/debian/compat +++ ghostscript-8.64.dfsg.1/debian/compat @@ -0,0 +1 @@ +4 --- ghostscript-8.64.dfsg.1.orig/debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch +++ ghostscript-8.64.dfsg.1/debian/patches/33_bad-params-to-xinitimage-on-large-bitmaps.dpatch @@ -0,0 +1,39 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 33_bad-params-to-xinitimage-on-large-bitmaps.dpatch by Masayuki Hatta (mhatta) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad ghostscript-8.64.dfsg.1~svn9324~/base/gdevx.c ghostscript-8.64.dfsg.1~svn9324/base/gdevx.c +--- ghostscript-8.64.dfsg.1~svn9324~/base/gdevx.c 2009-01-05 19:53:02.000000000 +0900 ++++ ghostscript-8.64.dfsg.1~svn9324/base/gdevx.c 2009-01-05 20:31:44.000000000 +0900 +@@ -565,15 +565,24 @@ + X_SET_FORE_COLOR(xdev, pixel); + XDrawPoint(xdev->dpy, xdev->dest, xdev->gc, x, y); + } else { +- xdev->image.width = sourcex + w; ++ /* Reduce base, sourcex */ ++ int width = sourcex + w; ++ int vdepth = xdev->vinfo->depth; ++ xdev->image.width = width; + xdev->image.height = h; + xdev->image.format = ZPixmap; + xdev->image.data = (char *)base; +- xdev->image.depth = xdev->vinfo->depth; +- xdev->image.bytes_per_line = raster; ++ xdev->image.depth = vdepth; ++ xdev->image.bitmap_pad = 8; ++ if (width * vdepth < raster * 8) ++ xdev->image.bytes_per_line = raster; ++ else ++ xdev->image.bytes_per_line = 0; + xdev->image.bits_per_pixel = depth; +- if (XInitImage(&xdev->image) == 0) ++ if (XInitImage(&xdev->image) == 0){ ++ errprintf("XInitImage failed in x_copy_image.\n"); + return_error(gs_error_unknownerror); ++ } + XPutImage(xdev->dpy, xdev->dest, xdev->gc, &xdev->image, + sourcex, 0, x, y, w, h); + xdev->image.depth = xdev->image.bits_per_pixel = 1; --- ghostscript-8.64.dfsg.1.orig/debian/patches/00list +++ ghostscript-8.64.dfsg.1/debian/patches/00list @@ -0,0 +1,3 @@ +01_docdir-fix-for-debian +02_gs-man-fix-for-debian +33_bad-params-to-xinitimage-on-large-bitmaps --- ghostscript-8.64.dfsg.1.orig/debian/patches/01_docdir-fix-for-debian.dpatch +++ ghostscript-8.64.dfsg.1/debian/patches/01_docdir-fix-for-debian.dpatch @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_docdir-fix-for-debian.dpatch by Masayuki Hatta (mhatta) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Set docdir appropriately for Debian. + +@DPATCH@ +diff -urNad ghostscript-8.64.dfsg.1~svn9323~/base/Makefile.in ghostscript-8.64.dfsg.1~svn9323/base/Makefile.in +--- ghostscript-8.64.dfsg.1~svn9323~/base/Makefile.in 2009-01-05 19:08:07.000000000 +0900 ++++ ghostscript-8.64.dfsg.1~svn9323/base/Makefile.in 2009-01-05 19:43:07.000000000 +0900 +@@ -71,8 +71,8 @@ + gssharedir = @libdir@/ghostscript/$(GS_DOT_VERSION) + gsincludedir = @includedir@/ghostscript/ + +-docdir=$(gsdatadir)/doc +-exdir=$(gsdatadir)/examples ++docdir=$(prefix)/share/doc/ghostscript ++exdir=$(prefix)/share/doc/ghostscript/examples + GS_DOCDIR=$(docdir) + + # Define install location for 'cups' device/filter support --- ghostscript-8.64.dfsg.1.orig/debian/patches/02_gs-man-fix-for-debian.dpatch +++ ghostscript-8.64.dfsg.1/debian/patches/02_gs-man-fix-for-debian.dpatch @@ -0,0 +1,44 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_gs-man-fix-for-debian.dpatch by Masayuki Hatta (mhatta) +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad ghostscript-8.64.dfsg.1~svn9323~/man/gs.1 ghostscript-8.64.dfsg.1~svn9323/man/gs.1 +--- ghostscript-8.64.dfsg.1~svn9323~/man/gs.1 2009-01-05 19:08:07.000000000 +0900 ++++ ghostscript-8.64.dfsg.1~svn9323/man/gs.1 2009-01-05 19:50:58.000000000 +0900 +@@ -295,18 +295,18 @@ + are typically based in \fBC:\\GS\fR, but may be elsewhere, especially if + you install Ghostscript with \fBGSview\fR. Run "\fBgs -h\fR" to find the + location of Ghostscript documentation on your system, from which you can +-get more details. ++get more details. On a Debian system they are in \fB/usr\fR. + .TP +-.B /usr/local/share/ghostscript/#.##/* ++.B /usr/share/ghostscript/#.##/* + Startup files, utilities, and basic font definitions + .TP +-.B /usr/local/share/ghostscript/fonts/* ++.B /usr/share/fonts/type1/gsfonts/* + More font definitions + .TP +-.B /usr/local/share/ghostscript/#.##/examples/* ++.B /usr/share/doc/ghostscript/examples/* + Ghostscript demonstration files + .TP +-.B /usr/local/share/ghostscript/#.##/doc/* ++.B /usr/share/doc/ghostscript/* + Diverse document files + .SH "INITIALIZATION FILES" + When looking for the initialization files "gs_*.ps", the files related to +@@ -330,7 +330,8 @@ + Ghostscript makefile when the executable was built. When \fBgs\fR is built + on Unix, \fBGS_LIB_DEFAULT\fR is usually + "/usr/local/share/ghostscript/#.##:/usr/local/share/ghostscript/fonts" +-where "#.##" represents the Ghostscript version number. ++where "#.##" represents the Ghostscript version number. They are ++"/usr/share/ghostscript/#.##" on a Debian system. + .PP + Each of these (\fBGS_LIB_DEFAULT\fR, \fBGS_LIB\fR, and \fB\-I\fR parameter) + may be either a single directory or a list of directories separated by