Subject: pkg/12362: 'make readme' fails; 'binpkg-list' assumes that the ${PACKAGES} directory exists
To: None <gnats-bugs@gnats.netbsd.org>
From: None <uebayasi@soum.co.jp>
List: netbsd-bugs
Date: 03/08/2001 20:22:18
>Number:         12362
>Category:       pkg
>Synopsis:       'make readme' fails; 'binpkg-list' assumes that the ${PACKAGES} directory exists
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 08 20:23:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Masao Uebayashi
>Release:        1.5-RELEASE
>Organization:
SOUM Corporation, Tokyo, Japan 
>Environment:
NetBSD dhcp-201-251.soum.co.jp 1.5R NetBSD (GENERIC_LAPTOP) #1: Tue Feb 6 20:46:31 CET 2001     tron@lyssa.zhadum.de:/src/NetBSD-current/src/sys/arch/i386/compile/GENERIC_LAPTOP i386
>Description:
If I do 'make readme' at the top of the pkgsrc (usually
'/usr/pkgsrc'), it fails saying

  cd: can't cd to /usr/pkgsrc/packages

This is caused by the target 'binpkg-list' defined in
'bsd.pkg.mk' assumes the directory ${PACKAGES} already exists.

  binpkg-list:
  	@\
  	cd ${PACKAGES};					\
  ...

>How-To-Repeat:
1. cleanly install a NetBSD base system.
2. get the pkgsrc distribution and extract it, e.g. at
   '/usr/pkgsrc'.
3. do
     cd /usr/pkgsrc; make readme
>Fix:
I have no idea when the '${PACKAGES}' directory should be
created.
>Release-Note:
>Audit-Trail:
>Unformatted: