Subject: Re: pkg_add problems
To: None <netbsd-help@netbsd.org>
From: Ian Goldby <Ian.Goldby@mail.com>
List: netbsd-help
Date: 03/31/2001 22:57:40
>I'm getting intermittent problems with pkg_add - in that sometimes it
>works, and sometimes it doesn't. Here's a typical output of a time it
>didn't work:
>
># pkg_add
>ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/mac68k/mail/fetchmail-5.6.0.tgzset
>env PKG_PATH='ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5/mac68k/mail'
>pkg_add: nothing appropriate found
>
...etc...

I discovered this morning that pkg_add was failing to find one of the
dependencies, namely gettext-lib>=0.10.35nb1. I discovered this by
using the -v (verbose) option. However, there seems to be no good
reason for pkg_add not to find it. The necessary package was there and
I was able to install it explicitly with pkg_add (pkg_add -v
ftp://..etc../All/gettext-lib-0.10.35nb1) without problems. After doing
this, my original pkg_add request for fetchmail worked. Clearly pkg_add
was able to see that the correct version of gettext-lib was already
installed whereas it wasn't able to find it in the ftp directory.

Probably there's a small bug in the pkg_add script. Next time I get an
error like this, I'll see if I can see what's going wrong (although my
shell scripting skills are pretty-much beginner level).

Ian