Package: tgif
Version: 1:4.1.44-4
Severity: normal
Tags: patch
Hello,
the program pstoepsi is broken in several ways:
- When using the option "-2x", checking for the source
file is done in an incorrect way. The attached patch
fixes this.
- The program assumes that it can use a program "pbmtoepsi"
has an option "-scale", which the version included with
Debian has not. Thus, scaling breaks.
- In the branch at line 98, there is a redundant setting of
STYLE, which the patch also fixes, but it doesn't fix
the case that later on, the overwritten value of STYLE
is tested against. If this is simply a piece of dead code,
or if this hides another problem, I didn't investigate.
Best,
--Toni++
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages tgif depends on:
ii debconf [debconf-2.0] 1.4.58 Debian configuration management sy
ii gettext 0.14.5-2 GNU Internationalization utilities
ii libc6 2.3.5-6 GNU C Library: Shared libraries an
ii libice6 6.8.2.dfsg.1-4 Inter-Client Exchange library
ii libsm6 6.8.2.dfsg.1-4 X Window System Session Management
ii libx11-6 6.8.2.dfsg.1-4 X Window System protocol client li
ii libxext6 6.8.2.dfsg.1-4 X Window System miscellaneous exte
ii libxmu6 6.8.2.dfsg.1-4 X Window System miscellaneous util
ii libxt6 6.8.2.dfsg.1-4 X Toolkit Intrinsics
ii xlibs 6.8.2.dfsg.1-4 X Window System client libraries m
tgif recommends no packages.
-- debconf information excluded
--- /usr/bin/pstoepsi 2005-10-10 19:58:01.000000000 +0200
+++ /tmp/pstoepsi 2005-11-25 12:31:27.000000000 +0100
@@ -77,7 +77,7 @@
esac
done
-BASE=`basename "$1" .ps`
+BASE=`basename "$1"`.ps
if [ $# -ne 2 -o ! -f "$1" -o "$1" = "$BASE" ] ; then
echo $USAGE 1>&2
@@ -96,7 +96,6 @@
fi
if [ "gs" = "$INTERP" ] ; then
- STYLE="none"
STYLE="ppm"
if [ "" != "$ALADDIN" ] ; then
if [ "3" = "$GSVERSION" -o "4" = "$GSVERSION" ] ; then