- Fixed pdf2dsc.ps (bug #565935).

This commit is contained in:
Tim Waugh 2010-02-20 16:10:51 +00:00
parent d34af71c88
commit 61b75ba371
2 changed files with 17 additions and 0 deletions

12
ghostscript-pdf2dsc.patch Normal file
View File

@ -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

View File

@ -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 <twaugh@redhat.com> 8.71-4
- Fixed pdf2dsc.ps (bug #565935).
- Use fixed patch for LDFLAGS to make sure libgs.so gets a soname
(bug #565935).