Subject: pkg/9428: error installing 2/2/2000 pkgtools
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bstark@uswest.net>
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
>Last-Modified:
>Originator:     Brian Stark
>Organization:

Brian Stark
bstark@uswest.net
>Release:        NetBSD 1.4.1/i386
>Environment:
	
System: NetBSD callisto.niangua.net 1.4.1 NetBSD 1.4.1 (CALLISTO) #5: Sat Nov 6 00:20:51 CST 1999 bstark@callisto.niangua.net:/usr/src/sys/arch/i386/compile/CALLISTO i386


>Description:

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

Stop.

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/pkgsrc.work/i386/pkgtools/pkg_install/work/.PLIST: No such file or directory
callisto:{root}#
callisto:{root}# 386/pkgtools/pkg_install/work/.PLIST                         <
-rw-r--r--  1 root  users  479 Feb 15 22:09 /usr/local/pkgsrc.work/i386/pkgtools/pkg_install/work/.PLIST
callisto:{root}# 


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...


	
>How-To-Repeat:
	
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 
USA_RESIDENT=YES
USE_RSAREF2=YES
WRKOBJDIR=/usr/local/pkgsrc.work/${MACHINE}
DISTDIR=/usr/local/incoming
USE_DB2=YES
NS_ENCRYPTION=us
callisto:bstark$ 


>Fix:


	
>Audit-Trail:
>Unformatted: