Date: Monday, March 8, 2010 @ 17:17:00 Author: andyrtr Revision: 71738
upgpkg: ghostscript 8.71-2 fix #18491 Added: ghostscript/trunk/ghostscript-pdf2dsc.patch Modified: ghostscript/trunk/PKGBUILD ---------------------------+ PKGBUILD | 11 ++++++++--- ghostscript-pdf2dsc.patch | 12 ++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2010-03-08 22:15:20 UTC (rev 71737) +++ PKGBUILD 2010-03-08 22:17:00 UTC (rev 71738) @@ -3,7 +3,7 @@ pkgname=ghostscript pkgver=8.71 -pkgrel=1 +pkgrel=2 pkgdesc="An interpreter for the PostScript language" arch=('i686' 'x86_64') license=('GPL3' 'custom') @@ -18,12 +18,14 @@ source=(http://ghostscript.com/releases/ghostscript-${pkgver}.tar.xz ghostscript-fPIC.patch ghostscript-system-jasper.patch - libpng14.patch) + libpng14.patch + ghostscript-pdf2dsc.patch) options=('!libtool') # '!makeflags') md5sums=('5005d68f7395c2bfc4b05c1a60d9b6ba' '1a8fcacf0005214db823225c870f093d' '03e27cd02471ab3b642c344fa06b623e' - 'be94ee357986f7f63d1b470da5bdc99e') + 'be94ee357986f7f63d1b470da5bdc99e' + 'f88f3764fc11e3ae2a86b17d2502da2f') build() { cd ${srcdir}/ghostscript-${pkgver} @@ -34,6 +36,9 @@ # fix build with systems jasper patch -Np1 -i ${srcdir}/ghostscript-system-jasper.patch || return 1 + + # fix PDF viewing with gv - from Fedora + patch -Np1 -i ${srcdir}/ghostscript-pdf2dsc.patch || return 1 if [ "$CARCH" = "x86_64" ]; then patch -Np1 -i ${srcdir}/ghostscript-fPIC.patch || return 1 Added: ghostscript-pdf2dsc.patch =================================================================== --- ghostscript-pdf2dsc.patch (rev 0) +++ ghostscript-pdf2dsc.patch 2010-03-08 22:17:00 UTC (rev 71738) @@ -0,0 +1,12 @@ +diff -up ghostscript-8.71/lib/pdf2dsc.ps.pdf2dsc ghostscript-8.71/lib/pdf2dsc.ps +--- ghostscript-8.71/lib/pdf2dsc.ps.pdf2dsc 2010-02-20 15:50:51.287734970 +0000 ++++ ghostscript-8.71/lib/pdf2dsc.ps 2010-02-20 15:51:02.902609964 +0000 +@@ -116,7 +116,7 @@ systemdict /.setsafe known { .setsafe } + DSCfile PDFname write==only + ( \(r\) file { DELAYSAFER { .setsafe } if } stopped pop\n) puts + ( pdfopen begin\n) puts +- ( copy_trailer_attrs\n) puts ++ ( process_trailer_attrs\n) puts + (%%EndSetup\n) puts + + /.hasPageLabels false def % see "Page Labels" in the PDF Reference