Subject: pkg/31967: pkgclean requires explicitly set PKGSRCDIR otherwise it fails
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <timo.schoeler@riscworks.net>
List: pkgsrc-bugs
Date: 11/01/2005 11:52:01
>Number:         31967
>Category:       pkg
>Synopsis:       pkgclean requires explicitly set PKGSRCDIR otherwise it fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 01 11:52:01 +0000 2005
>Originator:     Timo Schoeler
>Release:        3.99.10
>Organization:
RISCworks
>Environment:
NetBSD obiytsa.ts39-bln.riscworks.net 3.99.10 NetBSD 3.99.10 (GENERIC.MP) #0: Fri Oct 21 20:34:26 CEST 2005  tis@blackjack-a.riscworks.net:/usr/obj/sys/arch/macppc/compile/GENERIC.MP macppc
>Description:
build pkgclean from pkgsrc and try to run it:

obiytsa: {1} pkgclean 
pkgclean: scandir: @PKGSRCDIR@: No such file or directory
obiytsa: {2} printenv PKGSRCDIR
obiytsa: {3} setenv PKGSRCDIR /usr/pkgsrc
obiytsa: {4} pkgclean
Deleting /usr/pkgsrc/devel/gmake/work
(...)


>How-To-Repeat:
build, try, watch fail.
>Fix: