From 23a2c4f876b6ce6db6597281e6fce4af06d9625c Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sat, 20 Feb 2010 16:08:21 +0000 Subject: [PATCH] - Fixed pdf2dsc.ps (bug #565935). --- ghostscript-pdf2dsc.patch | 12 ++++++++++++ ghostscript.spec | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 ghostscript-pdf2dsc.patch diff --git a/ghostscript-pdf2dsc.patch b/ghostscript-pdf2dsc.patch new file mode 100644 index 0000000..31b6b54 --- /dev/null +++ b/ghostscript-pdf2dsc.patch @@ -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 diff --git a/ghostscript.spec b/ghostscript.spec index 06d1768..6a7c873 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -30,6 +30,7 @@ Patch11: ghostscript-CVE-2009-4270.patch Patch12: ghostscript-vsnprintf.patch Patch13: ghostscript-pdftoraster-exit.patch Patch14: ghostscript-ldflags.patch +Patch15: ghostscript-pdf2dsc.patch Requires: urw-fonts >= 1.1, ghostscript-fonts BuildRequires: xz @@ -144,6 +145,9 @@ rm -rf libpng zlib jpeg jasper # Fixed LDFLAGS when building dynamically linked executables (bug #565935). %patch14 -p1 -b .ldflags +# Fixed pdf2dsc.ps (bug #565935). +%patch15 -p1 -b .pdf2dsc + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -326,6 +330,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Sat Feb 20 2010 Tim Waugh 8.71-4 +- Fixed pdf2dsc.ps (bug #565935). - Use fixed patch for LDFLAGS to make sure libgs.so gets a soname (bug #565935).