Subject: Re: pkg_info Bug on Sparc?
To: Beaker <beaker@myrealbox.com>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: netbsd-users
Date: 06/07/2002 01:11:31
On Thu, 6 Jun 2002 @ 1:11pm (-0700), Beaker wrote:
B> I recently added the following to my ~/.cshrc file to simplify using
B> 'pkg_add':
B>
B> # setenv PKG_PATH="ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/sparc/All/"
B>
B> This works well with 'pkg_add', however, 'pkg_info' seems to want to use it
B> for its default pkg DB path too. I tried adding 'setenv
B> PKG_DIRDB="/var/pkg/db/" to ~/.cshrc , as well as adding "/var/db/pkg;" to
B> the PKG_PATH line (before the "ftp...) previously mentioned but 'pkg_info'
B> still looks at the ftp site.
B>
B> Is this a bug?
B>
...if you set that environmental variable, then run pkg_info(1) w/o any
flags (package names), you'll get:
pkg_info: disabling PKG_PATH when operating on all packages.
...i'm on sparc and i'm using bash (you seem to be using a csh* style
shell w/ setenv).
If I:
export PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/sparc/All
...and do:
$ pkg_info xsnow-1.41.tgz
...it works fine:
Comment:
Create a snowy and Santa-y desktop
[...]
But if I:
export PKG_PATH=ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/sparc/All/
***(NOTE TRAILING SLASH)***
...and do:
$ pkg_info xsnow-1.41.tgz
...it fails w/ this:
% pkg_info xsnow-1.41.tgz
ftp: connect to address 3ffe:8050:201:1860:2a0:c9ff:feed:b7ea: No route to
host
ftp: The `CWD ' command (without a directory), which is required by
RFC 1738 to support the empty directory in the URL pathname (`//'),
conflicts with the server's conformance to RFC 959.
Try the same URL without the `//' in the URL pathname.
pkg_info: can't find package `xsnow-1.41.tgz' installed or in a file!
...hope this helps...
-lava