From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jan 15 06:00:20 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BBDC16A4CE for ; Thu, 15 Jan 2004 06:00:20 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6545343D5F for ; Thu, 15 Jan 2004 06:00:05 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i0FE05FR006463 for ; Thu, 15 Jan 2004 06:00:05 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0FE05Fo006462; Thu, 15 Jan 2004 06:00:05 -0800 (PST) (envelope-from gnats) Resent-Date: Thu, 15 Jan 2004 06:00:05 -0800 (PST) Resent-Message-Id: <200401151400.i0FE05Fo006462@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "O. Hartmann" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 184B916A4CE for ; Thu, 15 Jan 2004 05:58:25 -0800 (PST) Received: from mail.physik.uni-mainz.de (mail.Physik.Uni-Mainz.DE [134.93.180.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDED543D58 for ; Thu, 15 Jan 2004 05:58:20 -0800 (PST) (envelope-from ohartman@mail.physik.uni-mainz.de) Received: from mail.physik.uni-mainz.de (localhost [127.0.0.1]) i0FDw4aT013890 for ; Thu, 15 Jan 2004 13:58:09 GMT (envelope-from ohartman@mail.physik.uni-mainz.de) Received: (from ohartman@localhost)i0FDvsZ8013889; Thu, 15 Jan 2004 14:57:54 +0100 (CET) (envelope-from ohartman) Message-Id: <200401151357.i0FDvsZ8013889@mail.physik.uni-mainz.de> Date: Thu, 15 Jan 2004 14:57:54 +0100 (CET) From: "O. Hartmann" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/61381: /ports/magicfilter does not re-pipe and refilter non-PS data (such as PDF) in FBSD 5.2-R X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "O. Hartmann" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 14:00:20 -0000 >Number: 61381 >Category: ports >Synopsis: /ports/magicfilter does not re-pipe and refilter non-PS data (such as PDF) in FBSD 5.2-R >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 15 06:00:05 PST 2004 >Closed-Date: >Last-Modified: >Originator: O. Hartmann >Release: FreeBSD 5.2-RELEASE i386 >Organization: IPA Universitaet Mainz >Environment: System: FreeBSD mail.physik.uni-mainz.de 5.2-RELEASE FreeBSD 5.2-RELEASE #35: Sat Jan 10 13:23:14 GMT 2004 root@mail.physik.uni-mainz.de:/usr/obj/usr/src/sys/MAIL i386 Intel P4 based machine, 1GB ECC Rambus memory, FreeBSD 5.2-R, most recent cvsupdated >Description: Using magicfilter for delivering printer services on a bunch of PS-based and non-PS based printers results in trouble. Magicfilter 1.2 does recognize PS files and print them as expected, but magicfilter does not 'repipe' data, like PDF, for further processing. To asure that no interim rule gets a hit I shrinked down a "test-filter" on up to three or four lines, like this (for a HP LJ4600 colour printer): # lj4600-00-05-162-auto-s-filter 0 %! filter /usr/local/bin/psset -q --setpagedevice=LanguageLevel:3;Duplex:false;Tumble:false 0 \004%! filter /usr/local/bin/psset -q --setpagedevice=LanguageLevel:3;Duplex:false;Tumble:false # Acrobat PDF 0 %PDF fpipe /usr/local/pdf2ps --dLanguageLevel=3 # default default pipe /usr/local/bin/a2ps -q Especially the last lines (PDF and pure ASCII transformation) does not work. The resulting file I found in /var/spool/lpd/test designated as dfA..... printjob (which should be finally a PS file) remains as the original file I put into the magicfilter filter. I expected there a PS-file, but a ASCII file remains ASCII (although there is a conversion rule!), DVI remains a DVI file (in the original filter) and PDF also remains PDF. ghostscript is most recent version 7.07 of the port's ghostscript-gnu port. Othe tools as a2ps, pdf2ps (teTeX port) are up to date and compiled recently. >How-To-Repeat: Install magicfilter 1.2 and the other necessary stuff (as TeX, ghostscript, a2ps and so on). Install a custom filter file for a PS printer which should be capable to convert dvi or PDF files as shown above and as default line an a2ps-filter line for simple ASCII-to-PS conversion. try to print PDF files, ASCII files (or generally non-PS file) on a native PS printer setup with magicfilter. Watch what kind of temporary outputfile is generated in /var/spool/lpd/appropriate- printer (it should always be a PS file). >Fix: No fix known. Looks like a sw-bug in either magicfilter or more tricky in FreeBSD 5.1 to 5.2 >Release-Note: >Audit-Trail: >Unformatted: