pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/38037: print/magicfilter - ghostscript invoked without explicit tempdir
>Number: 38037
>Category: pkg
>Synopsis: print/magicfilter - ghostscript invoked without explicit
>tempdir
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 15 14:45:00 +0000 2008
>Originator: Paul Goyette
>Release: NetBSD 4.99.53
>Organization:
----------------------------------------------------------------------
| Paul Goyette | PGP DSS Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette%juniper.net@localhost |
----------------------------------------------------------------------
>Environment:
System: NetBSD quicky.whooppee.com 4.99.53 NetBSD 4.99.53 (QUICKY (ASUS M2N32
WS) 2008-02-07 00:51:46 UTC) #7: Wed Feb 6 17:04:39 PST 2008
paul%quicky.whooppee.com@localhost:/usr/obj/objdir/amd64/sys/arch/amd64/compile/QUICKY
amd64
Architecture: x86_64
Machine: amd64
>Description:
magicfilter installs filters that invoke ghostscript for processing
postscript files. When magicfilter is used as a filter for lpd and
a postscript file is printed, ghostscript fails to open its temp
file and spits out an error "**** Unable to open the initial device,
quitting."
>How-To-Repeat:
Install print/magicfilter using all defaults, create a printer
that specifies :if=/usr/pkg/libexec/magicfilter/#blah#: and then
print a postscript file. (#blah# is whatever filter you want to
use for your printer!)
>Fix:
The following patch updates the configure script to set the TEMP
environment variable to /tmp when executing ghostscript:
--- configure.orig 2008-02-15 06:30:51.000000000 -0800
+++ configure 2008-02-15 06:25:16.000000000 -0800
@@ -930,7 +930,7 @@
EOF
cat >> confdefs.h <<EOF
-#define PATH_GHOSTSCRIPT $GHOSTSCRIPT
+#define PATH_GHOSTSCRIPT TEMP=/tmp $GHOSTSCRIPT
EOF
fi
Also need to provide checksum in pkgsrc/print/magicfilter/distinfo:
SHA1 (patches/patch-ad) = f8a338ba1760962e23f0576cbffd9bd68aae0c7a
Home |
Main Index |
Thread Index |
Old Index