From 07f0a4bf65356f49016033de12ca4f2cd219fc97 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Mon, 1 Mar 2010 10:07:52 +0000 Subject: [PATCH] - Use a temporary file in pstotiff to allow gs random access. --- hplip-pstotiff-is-rubbish.patch | 13 +++++++++---- hplip.spec | 5 ++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/hplip-pstotiff-is-rubbish.patch b/hplip-pstotiff-is-rubbish.patch index 9db74e2..5091e19 100644 --- a/hplip-pstotiff-is-rubbish.patch +++ b/hplip-pstotiff-is-rubbish.patch @@ -1,7 +1,7 @@ diff -up hplip-3.10.2/fax/filters/pstotiff.pstotiff-is-rubbish hplip-3.10.2/fax/filters/pstotiff ---- hplip-3.10.2/fax/filters/pstotiff.pstotiff-is-rubbish 2010-02-26 12:05:42.883265245 +0000 -+++ hplip-3.10.2/fax/filters/pstotiff 2010-02-26 12:06:06.546266294 +0000 -@@ -1,43 +1,11 @@ +--- hplip-3.10.2/fax/filters/pstotiff.pstotiff-is-rubbish 2010-02-24 23:07:09.000000000 +0000 ++++ hplip-3.10.2/fax/filters/pstotiff 2010-03-01 09:52:50.676611385 +0000 +@@ -1,43 +1,16 @@ -#!/usr/bin/env python - -import os @@ -52,7 +52,12 @@ diff -up hplip-3.10.2/fax/filters/pstotiff.pstotiff-is-rubbish hplip-3.10.2/fax/ + IN="$6" +fi + ++TMPFILE=`mktemp /tmp/pstotiff.XXXXXX` || exit 1 +gs -I/usr/share/cups/fonts -sDEVICE=tiffg4 -dNOPAUSE -dBATCH \ + -dSAFER -dPARANOIDSAFER \ + -dSHORTERRORS -dWRITESYSTEMDICT -dGHOSTSCRIPT \ -+ -sstdout=%stderr -sOutputFile=- "$IN" ++ -sstdout=%stderr -sOutputFile="$TMPFILE" "$IN" ++RET=$? ++cat "$TMPFILE" ++rm -f "$TMPFILE" ++exit $RET diff --git a/hplip.spec b/hplip.spec index cbb7d97..70e7530 100644 --- a/hplip.spec +++ b/hplip.spec @@ -1,7 +1,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 3.10.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ and MIT Group: System Environment/Daemons Conflicts: system-config-printer < 0.6.132 @@ -362,6 +362,9 @@ fi /usr/bin/update-desktop-database &>/dev/null ||: %changelog +* Mon Mar 1 2010 Tim Waugh - 3.10.2-2 +- Use a temporary file in pstotiff to allow gs random access. + * Fri Feb 26 2010 Tim Waugh - 3.10.2-1 - 3.10.2. No longer need preferences-crash patch. - The pstotiff filter is rubbish so replace it (launchpad #528394).