Bug 177396 - print/foomatic-filters: foomatic-rip needs both inputfile and stdin
Summary: print/foomatic-filters: foomatic-rip needs both inputfile and stdin
Status: Closed Not Enough Information
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 13:30 UTC by nkoch
Modified: 2014-08-07 15:23 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nkoch 2013-03-26 13:30:00 UTC
I try to use foomatic-rip for spooler less printing.

1. "foomatic-rip --ppd ppdfile -v inputfile"
Foomatic hangs waiting for stdin and continues with Ctrl-D.

2. "foomatic-rip --ppd ppdfile -v <inputfile"
Foomatic-rip seems to fail in calling a2ps as input filter.

Log:
 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 Parsing PPD file ...
 Added option Resolution
 Added option PageSize
 Added option Model
 Added option PrintoutMode
 Added option InputSlot
 Added option ImageableArea
 Added option PaperDimension
 Added option Duplex
 Added option Quality
 Added option Font
 
 Parameter Summary
 -----------------
 
 Spooler: direct
 Printer: 
 Shell: /bin/sh
 PPD file: /usr/local/etc/foomatic/direct/lj1100.ppd
 ATTR file: 
 Printer model: HP LaserJet 1100 Foomatic/hpijs (recommended)
 Options: 
 Job title: nk@entw-pr2.demig.intra
 File(s) to be printed:
 <STDIN>
 
 Printing system options:
 Options from the PPD file:
 
 ================================================
 
 File: <STDIN>
 
 ================================================
 
 Filetype unknown, trying to convert ...
 
 Starting converter for non-PostScript files
 Starting process "kid1" (generation 1)
 Filetype unknown, trying to convert ...
 
 Starting converter for non-PostScript files
 Starting process "kid2" (generation 2)
 Starting process "kid1" (generation 1)
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 kid2: writing alreadyread
 Filetype unknown, trying to convert ...
 Starting process "kid2" (generation 2)
 
 Starting converter for non-PostScript files
 Starting process "kid1" (generation 1)
 kid2: Then read the rest from standard input
 kid2: Close out and stdin
 Starting process "fileconverter" (generation 2)
 kid2 finished
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 Filetype unknown, trying to convert ...
 
 Starting converter for non-PostScript files
 Starting process "kid1" (generation 1)
 Starting process "kid2" (generation 2)
 Filetype unknown, trying to convert ...
 kid2: writing alreadyread
 kid2: Then read the rest from standard input
 Starting process "kid2" (generation 2)
 kid2: Close out and stdin
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 kid2 finished
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 kid2: writing alreadyread
 kid2: Then read the rest from standard input
 kid2: Close out and stdin
 
 Starting converter for non-PostScript files
 kid2: writing alreadyread
 kid2 finished
 kid2: Then read the rest from standard input
 Starting process "kid1" (generation 1)
 Process is dying with "Didn't think there would be that many child processes... Exiting.
 ", exit stat 9
 Cleaning up...
 Killing kid1
 Process is dying with "Caught termination signal: Job canceled
 ", exit stat 0
 Cleaning up...
 Killing kid2
 Starting process "kid2" (generation 2)
 file converter command: a2ps -1 --medium=Letterdj --center-title=nk@entw-pr2.demig.intra -o -
 Starting process "fileconverter" (generation 2)
 kid2: writing alreadyread
 kid2: Then read the rest from standard input
 kid2: Close out and stdin
 kid2 finished
 kid2: Close out and stdin
 kid2 finished
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 fileconverter exited with status 0
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 kid2 exited with status 0
 kid1 finished
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 fileconverter exited with status 0
 kid2 exited with status 0
 kid1 finished
 fileconverter exited with status 0
 kid2 exited with status 0
 kid1 finished
 [stdin (unformatiert): 1 Seite auf einem Blatt]
 [Insgesamt: 1 Seite auf einem Blatt] auf die Standardausgabe geschickt
 [2 lines wrapped]
 [stdin (unformatiert): 0 Seiten auf 0 Blättern]
 [Insgesamt: 0 Seiten auf 0 Blättern] auf die Standardausgabe geschickt
 fileconverter exited with status 0
 kid2 exited with status 0
 kid1 finished
 Killing fileconverter
 Killing kid1
 Killing kid1
 Killing kid1
 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 3. "foomatic-rip --ppd ppdfile -v inputfile </dev/null"
 Works.
 
 4. "foomatic-rip --ppd ppdfile -v /dev/null <inputfile"
 Works too.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-03-27 00:59:19 UTC
State Changed
From-To: open->feedback

to which port does this PR apply?
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2013-03-27 14:38:25 UTC
State Changed
From-To: feedback->open

supply the proper protname.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2013-03-28 19:56:04 UTC
Responsible Changed
From-To: freebsd-ports-bugs->acm

Over to maintainer.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2014-03-29 04:47:33 UTC
Responsible Changed
From-To: acm->freebsd-ports-bugs

Maintainer was reset.
Comment 5 John Marino freebsd_committer freebsd_triage 2014-06-19 10:22:08 UTC
This port is still unmaintained.  The only way to progress with this PR is for the submitter to provide a patch I think.
Comment 6 John Marino freebsd_committer freebsd_triage 2014-08-07 15:23:33 UTC
closed due to lack of patch.