From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 22 20:30:29 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76CDC1065670 for ; Thu, 22 Oct 2009 20:30:29 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 079788FC12 for ; Thu, 22 Oct 2009 20:30:28 +0000 (UTC) Received: by bwz5 with SMTP id 5so673216bwz.3 for ; Thu, 22 Oct 2009 13:30:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QpVnAVEaG4ImqIFPeVUnzln9SF9RCxERhStgk+7KTq8=; b=JcL0G8mmTaePcKM56UDUB6XwazbAB7/HeqHNTWHwALgUr7gYLKHWdDqd9QzDHSCfJv 8nZvXTv+B3xMB9/T3SHeR20ylEnZOBGPtalcF14IkivNUfoQco0/v+55ZhMn1uHyS3X9 VWSqxriWhl29Hozt0YVA8CWb8S7Kquh4byw6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=AqGeTRwJ5BfelOOrGly3gQ0HC8XL2bqVWrwxlqw4ycHMzEkzw8/B2tPxOEbPyYLIyl AxEYfDQNXPub3BGRnkXoRmeadXMf170V3OvTwXRtZ+DP+K8gFet51YGe7VWDX+RTVbyP clV/YX+1fD2TCkOr+g2Ipbu3glNKBiP2VIBbM= MIME-Version: 1.0 Received: by 10.223.2.196 with SMTP id 4mr1964237fak.3.1256241437886; Thu, 22 Oct 2009 12:57:17 -0700 (PDT) In-Reply-To: <204698.71349.qm@web113208.mail.gq1.yahoo.com> References: <204698.71349.qm@web113208.mail.gq1.yahoo.com> Date: Thu, 22 Oct 2009 15:57:17 -0400 Message-ID: <4ad871310910221257s5533da63l3ed062d9641b36@mail.gmail.com> From: Glen Barber To: Trever Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: bug in pkg_add ? doesn't fetch dependencies from set path X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2009 20:30:29 -0000 Hello, On Thu, Oct 22, 2009 at 2:41 PM, Trever wrote: > Does anyone else have this problem? > # env | grep PACKAGEPACKAGESITE=3Dftp://ftp.ourdomain.gov/FBSD/# pkg_add = -r subversion-1.6.5Fetching ftp://ftp.ourdomain.gov/FBSD/subversion-1.6.5.t= bz... Done.Error: FTP Unable to get ftp://ftp.ourdomain.gov/All/pkg-config-= 0.23_1.tbz: File unavailable (e.g., file not found, no access)Error: FTP Un= able to get ftp://ftp.ourdomain.gov/All/sqlite3-3.6.14.2.tbz: File unavaila= ble (e.g., file not found, no access)Error: FTP Unable to get ftp://ftp.our= domain.gov/All/gettext-0.17_1.tbz: File unavailable (e.g., file not found, = no access)Error: FTP Unable to get ftp://ftp.ourdomain.gov/All/neon28-0.28.= 4.tbz: File unavailable (e.g., file not found, no access) > > In plain English:pkg_add -r goes to the correct domain and path (per envi= ronment variable I set) to fetch the package I want to install, but when it= goes to get the dependencies for the package it just correctly fetched, it= subsequently fetches to the wrong path (goes to /All instead of /FBSD), th= ough it does fetch to the correct domain. > This is a pain because our ftp server has many uses, and having an "All" = directory in the root is ugliness (whether All is a link to FBSD or whateve= r, I don't want "All", I just want "FBSD"). > I have tried various combinations of setting both or one of PACKAGESITE a= nd/or PACKAGEROOT, just in case that would somehow help, but to no avail. = =A0Of course it would seem that PACKAGESITE alone is what I want (but that = and nothing else I have tried works). > Thank you much. > -T > pkg_add(1) expects the PACKAGESITE to follow the same hierarchy as a tinderbox. Without a tinderbox, you can 'mkdir /usr/ports/packages' on your local build server. When you 'make package' (or your preferred choice) the packages will be put in /usr/ports/packages with the correct hierarchy, symlinks to PACKAGESITE/All/ etc. HTH. --=20 Glen Barber