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 0e8a5fd..6aa1dc3 100644 --- a/ghostscript.spec +++ b/ghostscript.spec @@ -29,6 +29,7 @@ Patch10: ghostscript-CVE-2009-4270.patch Patch11: ghostscript-vsnprintf.patch Patch12: ghostscript-pdftoraster-exit.patch Patch13: ghostscript-ldflags.patch +Patch14: ghostscript-pdf2dsc.patch Requires: urw-fonts >= 1.1, ghostscript-fonts BuildRequires: xz @@ -131,6 +132,9 @@ rm -rf libpng zlib jpeg jasper # Fixed LDFLAGS when building dynamically linked executables (bug #565935). %patch13 -p1 -b .ldflags +# Fixed pdf2dsc.ps (bug #565935). +%patch14 -p1 -b .pdf2dsc + # Convert manual pages to UTF-8 from8859_1() { iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_" @@ -313,6 +317,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Sat Feb 20 2010 Tim Waugh 8.71-3 +- Fixed pdf2dsc.ps (bug #565935). - Use fixed patch for LDFLAGS to make sure libgs.so gets a soname (bug #565935).