Subject: pkg/18473: pkg_add fails to locate dependencies
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 09/29/2002 21:20:16
>Number:         18473
>Category:       pkg
>Synopsis:       pkg_add fails to locate dependencies
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 29 18:17:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dan McMahill
>Release:        NetBSD 1.6
>Organization:
NetBSD
>Environment:
	
	
System: NetBSD pogen 1.6 NetBSD 1.6 (GENERIC) #0: Mon Sep 9 08:27:06 UTC 2002 autobuild@tgm.daemon.org:/autobuild/sparc/OBJ/autobuild/src/sys/arch/sparc/compile/GENERIC sparc
Architecture: sparc
Machine: sparc
>Description:

This is on a stock 1.6 system.

When pkg_add'ing a complete path name to a package, the PKG_PATH seems to not get set correctly
which prevents automatic installation of depends.  For example:


dan@bob 714 # pkg_add -v /fs/pogen/disk1/packages/netbsd-1.6-sparc/All/scilab-2.6nb3.tgz
parsing: .
path: /tmp/.
increasing RLIMIT_NOFILE to max. 1772 open files
Requested space: 22820388 bytes, free space: 121128960 bytes in /var/tmp/instmp.02642a
Depends pre-scan: `pvm-3.4.3' required.
Depends pre-scan: `xless-[0-9]*' required.
Package `scilab-2.6nb3' depends on `pvm-3.4.3'.
Loading it from pvm-3.4.3.
PKG_PATH = /tmp/.
parsing: /tmp/.
path: /tmp/.
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH /tmp/.
pkg_add: no pkg found for 'pvm-3.4.3', sorry.
pkg_add: 1 package addition(s) failed
pkg_add: autoload of dependency `pvm-3.4.3' failed!
Loading it from pvm-3.4.3.
PKG_PATH = /tmp/.
parsing: /tmp/.
path: /tmp/.
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH /tmp/.
pkg_add: no pkg found for 'pvm-3.4.3', sorry.
pkg_add: 1 package addition(s) failed
pkg_add: autoload of dependency `pvm-3.4.3' failed!
Package `scilab-2.6nb3' depends on `xless-[0-9]*'.
Loading it from xless-1.7.
PKG_PATH = /tmp/.
parsing: /tmp/.
path: /tmp/.
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH /tmp/.
pkg_add: no pkg found for 'xless-1.7', sorry.
pkg_add: 1 package addition(s) failed
pkg_add: autoload of dependency `xless-1.7' failed!
Loading it from xless-[0-9]*.
PKG_PATH = /tmp/.
parsing: /tmp/.
path: /tmp/.
increasing RLIMIT_NOFILE to max. 1772 open files
trying PKG_PATH /tmp/.
pkg_add: no pkg found for 'xless-[0-9]*', sorry.
pkg_add: 1 package addition(s) failed
pkg_add: autoload of dependency `xless-[0-9]*' failed!
pkg_add: 1 package addition(s) failed


	
>How-To-Repeat:

try and pkg_add a binary pkg which needs to pull in some dependencies.

	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: