Subject: pkg/9428: error installing 2/2/2000 pkgtools
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/15/2000 20:27:56
>Number:         9428
>Category:       pkg
>Synopsis:       error during installation of 2/2/2000 pkgtools
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 15 20:27:00 2000
>Originator:     Brian Stark

Brian Stark
>Release:        NetBSD 1.4.1/i386
System: NetBSD 1.4.1 NetBSD 1.4.1 (CALLISTO) #5: Sat Nov 6 00:20:51 CST 1999 i386


While attempting to compile a package after updating the package source
I received the following message:

===>  Validating dependencies for esound-0.2.17
Your package tools need to be updated to 2000/02/02 versions.
The installed package tools were last updated on .
Please make and install the pkgsrc/pkgtools/pkg_install package.
*** Error code 1


I then did a "make" in the pkgtools directory, and then a "make install".
During the installation process I saw the following error message from
the egrep program:

if [ ! -f ${PKG_DBDIR:-/var/db/pkg}/pkgdb.byfile.db ]; then  if [ ! -d ${PKG_DBDIR:-/var/db/pkg} ]; then  /bin/mkdir -p ${PKG_DBDIR:-/var/db/pkg};  fi;  pkg_admin rebuild ;  fi
egrep: /usr/local/ No such file or directory
callisto:{root}# 386/pkgtools/pkg_install/work/.PLIST                         <
-rw-r--r--  1 root  users  479 Feb 15 22:09 /usr/local/

The file that egrep is looking for is on my system, so I don't understand
why the install process is complaining about it not being there. I suspect
that this file is being created after egrep looks for it...

See above, but the following information from my /etc/mk.conf file might
be useful also:

callisto:bstark$ cat /etc/mk.conf
COPTS+=-march=pentium -pipe -g
ACCEPTABLE_LICENSES=no-commercial-use no-profit shareware