NetBSD Problem Report #48581

From  Sun Feb  9 02:35:59 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "", Issuer "Postmaster" (not verified))
	by (Postfix) with ESMTPS id 6DAB9A6159
	for <>; Sun,  9 Feb 2014 02:35:59 +0000 (UTC)
Message-Id: <>
Date: Sun,  9 Feb 2014 02:35:57 +0000 (UTC)
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
Newest stable release 6.1.3 - and a2ps/apsfilter compiled from sources for this release.
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_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.
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.



Responsible-Changed-From-To: misc-bug-people->pkg-manager
Responsible-Changed-When: Sun, 09 Feb 2014 09:19:07 +0000
pkgsrc problem


NetBSD Home
NetBSD PR Database Search

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