[pkg_add] PACKAGESITE weirdness - URL not correct for dependencies?

L Campbell llc2w at virginia.edu
Sat Mar 28 21:05:07 PDT 2009

On Sat, Mar 28, 2009 at 7:37 AM, Mel Flynn
<mel.flynn+fbsd.questions at mailing.thruhere.net> wrote:
> On Thursday 26 March 2009 21:46:07 L Campbell wrote:
>> Okay, so apparently there's some serious weirdness in the logic in
>> src/usr.sbin/pkg_install/lib/url.c, in fileGetURL. This function takes
>> two parameters, base and spec, and has the following behavior --
> <snip behavior and patch>
> Yes, it is a bit counter-intuitive. However it's documented in the pkg_add(1)
> manpage that PACKAGESITE should resolve to the full URL where packages can be
> found (even the trailing slash).

The additional stipulation that any dependent packages must be in an
"../All/" directory relative to the path of the initial package is an
undocumented feature.

It's a bit counter-intuitive, but once it works, it works.

More information about the freebsd-questions mailing list