Bug#128669: psptools fixes for psplpr blocking and usage problem
Package: psptools
Version: 1.2.2-6
Severity: normal
This diff corrects the upstream psplpr source. The --lpr option is still needed
even when -Pprinter is used contrary to the man page. The --lpr is also
needed when using psplpr as a filter with the -o or --output option. They should
be mutually exclusive. Setting the default $used_lpr_prog = $lpr_prog at the
beginning of psplpr is one solution or just continue to use the --lpr option even if
used as a filter. This diff makes psplpr work without exporting a PRINTER environment
variable before starting the driver.
Ref: this fixes #26831 item 3
Diff dated 10 Jan 02 to psptools.pl.in dated 3 July 1996:
818c818
< } elsif ($args[0] eq "-${lopt_prefix}lpr") {
---
> } elsif ($args[0] eq "--${lopt_prefix}lpr") {
820c820
< } elsif ($args[0] eq "-${lopt_prefix}lp") {
---
> } elsif ($args[0] eq "--${lopt_prefix}lp") {
Here is a small enhancement to fix outstanding report #27273
Diff dated 10 Jan 02 to psptools.pl.in dated 3 July 1996:
821a822,825
> } elsif ($args[0] eq "-${opt_prefix}P") {
> $printer = $args[1];
> usage(1) if (($printer = $args[1]) eq '');
> $used_prog_lpr = $prog_lpr;
Maybe some maintainer can plug these into the debian diff to
the source package instead of waiting for the source to change?
theme@linuxfreemail.com
10 January 2002
Reply to: