Subject: pkg/12480: make readme on /usr/pkgsrc needs ${PACKAGES}
To: None <gnats-bugs@gnats.netbsd.org>
From: None <arto@selonen.org>
List: netbsd-bugs
Date: 03/26/2001 22:42:59
>Number:         12480
>Category:       pkg
>Synopsis:       'make readme' on /usr/pkgsrc needs ${PACKAGES} to exist
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 26 11:44:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Arto Selonen
>Release:        current from Mar 24, 2001
>Organization:
selonen.org
>Environment:
System: NetBSD fw.selonen.org 1.5T (LONESTAR) #7: Sat Mar 24 18:56:24 EET 2001 aselonen@fw.selonen.org:/fs/cvs/src/sys/arch/i386/compile/LONESTAR i386
Architecture: i386
Machine: i386
>Description:
I have ${PACKAGES} defined in /etc/mk.conf as:
PACKAGES=/fs/cvs/packages/${OPSYS}/${OS_VERSION}/${MACHINE_ARCH}
and after upgrading the system to 1.5T 'make readme' failed in
/usr/pkgsrc complaining about the non-existance of the ${PACKAGES}
directory. 
>How-To-Repeat:
Unfortunately I haven't (yet) had the chance to test the repeatability
since the succesful 'make readme' is still running...

1) Define PACKAGES in /etc/mk.conf:
   PACKAGES=/somepath/${OPSYS}/${OS_VERSION}/${MACHINE_ARCH}
1b)Other stuff that I have in /etc/mk.conf that may or may not be related:
   (relevancy has not been tested)
   BSDOBJDIR=/usr/obj/src
   MKOBJDIRS=yes
2) Make sure the the target directory doesn't exist (w/ current):
   cd /somepath/NetBSD
   rm -rf 1.5T
3) Try to create the readme files for pkgsrc:
   cd /usr/pkgsrc
   make readme
>Fix:
I chose to build and install a new package with 'make package' under
the /usr/pkgsrc hierarchy. This installed the new package into the
system, and created the correct directory structure for the binary package.
After that ${PACKAGES} existed, and the 'make readme' started without
problems (still running).
>Release-Note:
>Audit-Trail:
>Unformatted: