From be8f42280e66929e04cef822ab374f7dbd2a7abd Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Aug 08 2006 13:54:20 +0000 Subject: - Prevent fixps tmpdir problem (bug #188156). --- diff --git a/a2ps-tmpdir.patch b/a2ps-tmpdir.patch index 2008642..77cb9d1 100644 --- a/a2ps-tmpdir.patch +++ b/a2ps-tmpdir.patch @@ -1,5 +1,5 @@ ---- a2ps-4.13/contrib/psmandup.in.tmpdir 2006-02-15 11:03:50.000000000 +0000 -+++ a2ps-4.13/contrib/psmandup.in 2006-02-15 11:03:50.000000000 +0000 +--- a2ps-4.13/contrib/psmandup.in.tmpdir 1999-10-24 14:06:42.000000000 +0100 ++++ a2ps-4.13/contrib/psmandup.in 2006-08-08 14:52:22.000000000 +0100 @@ -36,7 +36,7 @@ message= psselect=${PSSELECT:-psselect} @@ -9,19 +9,34 @@ # These two must be kept in synch. They are opposed. verbose=echo ---- a2ps-4.13/contrib/fixps.in.tmpdir 2006-02-15 11:06:07.000000000 +0000 -+++ a2ps-4.13/contrib/fixps.in 2006-02-15 11:06:33.000000000 +0000 -@@ -38,7 +38,7 @@ +--- a2ps-4.13/contrib/fixps.in.tmpdir 2000-02-21 08:16:15.000000000 +0000 ++++ a2ps-4.13/contrib/fixps.in 2006-08-08 14:53:36.000000000 +0100 +@@ -38,7 +38,6 @@ run_gs=0 # What action to perform: fixps, cat, check, and gs task=fixps -tmpdir=/tmp/$program.$$ -+tmpdir=$(mktemp -d /tmp/$program.XXXXXX) verbose=echo # The version/usage strings ---- a2ps-4.13/contrib/pdiff.in.tmpdir 2006-02-15 11:05:44.000000000 +0000 -+++ a2ps-4.13/contrib/pdiff.in 2006-02-15 11:05:56.000000000 +0000 +@@ -183,6 +182,7 @@ + exit 1;; + esac + ++tmpdir=$(mktemp -d /tmp/$program.XXXXXX) + if test -n "$debug"; then + # Set -x now if debugging + set -x +@@ -191,7 +191,6 @@ + trap "/bin/rm -rf $tmpdir" 0 1 2 3 13 15 + fi + +-mkdir $tmpdir + fixps_sed=$tmpdir/fixps.sed + + # If printing from stdin, save into a tmp file +--- a2ps-4.13/contrib/pdiff.in.tmpdir 1999-10-24 16:07:51.000000000 +0100 ++++ a2ps-4.13/contrib/pdiff.in 2006-08-08 14:52:22.000000000 +0100 @@ -34,7 +34,7 @@ diff_options='-u' file= diff --git a/a2ps.spec b/a2ps.spec index 0319cb7..bf4e29a 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -1,7 +1,7 @@ Summary: Converts text and other types of files to PostScript(TM). Name: a2ps Version: 4.13b -Release: 53 +Release: 54 License: GPL Group: Applications/Publishing Source: ftp://ftp.enst.fr/pub/unix/a2ps/%{name}-%{version}.tar.gz @@ -232,6 +232,9 @@ fi %dir %{_datadir}/a2ps %changelog +* Tue Aug 8 2006 Tim Waugh 4.13b-54 +- Prevent fixps tmpdir problem (bug #188156). + * Fri Jul 14 2006 Tim Waugh 4.13b-53 - Fixed Hebrew font names (bug #174304).