NetBSD Problem Report #48581

From www@NetBSD.org  Sun Feb  9 02:35:59 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6DAB9A6159
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  9 Feb 2014 02:35:59 +0000 (UTC)
Message-Id: <20140209023557.E9F7CA64B4@mollari.NetBSD.org>
Date: Sun,  9 Feb 2014 02:35:57 +0000 (UTC)
From: zbigniew2011@gmail.com
Reply-To: zbigniew2011@gmail.com
To: gnats-bugs@NetBSD.org
Subject: a2ps (or maybe apsfilter?) misunderstands directory settings
X-Send-Pr-Version: www-1.0

>Number:         48581
>Category:       pkg
>Synopsis:       a2ps (or maybe apsfilter?) misunderstands directory settings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 09 02:40:00 +0000 2014
>Last-Modified:  Sun Feb 09 09:19:07 +0000 2014
>Originator:     Zbigniew
>Release:        6.1.3
>Organization:
>Environment:
Newest stable release 6.1.3 - and a2ps/apsfilter compiled from sources for this release.
>Description:
An attempt to print any text file using a2ps + apsfilter doesn't result in any printout; instead there is an error message in /var/spool/lpd/aps1/log:

"/usr/pkg/etc/apsfilter/basedir/bin/apsfilter: cannot open /var/spool/lpd/aps1/acct/lock: no such file"

After closer examination it turned out, that a2ps (or maybe apsfilter, but this is less likely) somehow messes the files/directories settings, and therefore it's unable to use proper files/directories.

My printcap:

# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
aps1|lj5gray;r=600x600;q=photo;c=full;p=a4;m=auto:\
    :lp=/dev/ulpt0:\
    :if=/usr/pkg/etc/apsfilter/basedir/bin/apsfilter:\
    :sd=/var/spool/lpd/aps1:\
    :lf=/var/spool/lpd/aps1/log:\
    :af=/var/spool/lpd/aps1/acct:\
    :mx#0:\
    :sh:
# APS1_END - don't delete this

As you see from error message, a2ps insists on treating "acct" like a sub-directory, while in fact it is a file.
>How-To-Repeat:
1. Configure and start lpd.
2. Install a2ps and apsfilter.
3. Configure printer using its SETUP script.
4. Try to print any ASCII text file, for example with:
 "a2ps -2 -P <queue name> <text file name>".
5. Examine the log.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: misc-bug-people->pkg-manager
Responsible-Changed-By: martin@NetBSD.org
Responsible-Changed-When: Sun, 09 Feb 2014 09:19:07 +0000
Responsible-Changed-Why:
pkgsrc problem


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.