From owner-freebsd-questions@FreeBSD.ORG Sun Mar 29 04:05:06 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C5AA1065674 for ; Sun, 29 Mar 2009 04:05:06 +0000 (UTC) (envelope-from llc2w@virginia.edu) Received: from fork10.mail.virginia.edu (fork10.mail.Virginia.EDU [128.143.2.180]) by mx1.freebsd.org (Postfix) with ESMTP id 560F68FC1F for ; Sun, 29 Mar 2009 04:05:06 +0000 (UTC) (envelope-from llc2w@virginia.edu) Received: from localhost (localhost [127.0.0.1]) by fork10.mail.virginia.edu (Postfix) with ESMTP id A2A471F5152 for ; Sun, 29 Mar 2009 00:05:05 -0400 (EDT) Received: from fork10.mail.virginia.edu ([127.0.0.1]) by localhost (fork10.mail.virginia.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27403-03 for ; Sun, 29 Mar 2009 00:05:05 -0400 (EDT) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by fork10.mail.virginia.edu (Postfix) with ESMTP id 61ACE1F4FDF for ; Sun, 29 Mar 2009 00:05:05 -0400 (EDT) Received: by wf-out-1314.google.com with SMTP id 26so2206566wfd.0 for ; Sat, 28 Mar 2009 21:05:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.134.17 with SMTP id h17mr892310wfd.228.1238299504907; Sat, 28 Mar 2009 21:05:04 -0700 (PDT) In-Reply-To: <200903281237.19203.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <792298050903261237o4d57a47dpb99861279ee9b4f6@mail.gmail.com> <792298050903261238y47cd2c01j6f645ad27d59dd84@mail.gmail.com> <792298050903261346m67896d1eo75694509494ff5f8@mail.gmail.com> <200903281237.19203.mel.flynn+fbsd.questions@mailing.thruhere.net> Date: Sun, 29 Mar 2009 00:05:04 -0400 Message-ID: <792298050903282105y4ecf7b12y1464d9a6981c035b@mail.gmail.com> From: L Campbell To: Mel Flynn Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-UVA-Virus-Scanned: by amavisd-new at fork10.mail.virginia.edu Cc: freebsd-questions@freebsd.org Subject: Re: [pkg_add] PACKAGESITE weirdness - URL not correct for dependencies? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2009 04:05:07 -0000 On Sat, Mar 28, 2009 at 7:37 AM, Mel Flynn 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 -- > > > > 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.