Date: Thu, 22 Oct 2009 13:41:00 -0700 (PDT) From: Trever <anti_spamsys@yahoo.com> To: Glen Barber <glen.j.barber@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: bug in pkg_add ? doesn't fetch dependencies from set path Message-ID: <821063.97828.qm@web113202.mail.gq1.yahoo.com> In-Reply-To: <4ad871310910221257s5533da63l3ed062d9641b36@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I realized that this was probably the case only after I sent the email, but this keeps me from having to test so thanks. I do think the documentation leads one to think differently about what PACKAGESITE does; perhaps I'll try to submit a clarification. As I read it, it talks about "subverting the logic" of the fetches, which led me to think the expected hierarchy would be subverted- something like that. -T --- On Thu, 10/22/09, Glen Barber <glen.j.barber@gmail.com> wrote: From: Glen Barber <glen.j.barber@gmail.com> Subject: Re: bug in pkg_add ? doesn't fetch dependencies from set path To: "Trever" <anti_spamsys@yahoo.com> Cc: freebsd-hackers@freebsd.org Date: Thursday, October 22, 2009, 12:57 PM Hello, On Thu, Oct 22, 2009 at 2:41 PM, Trever <anti_spamsys@yahoo.com> wrote: > Does anyone else have this problem? > # env | grep PACKAGEPACKAGESITE=ftp://ftp.ourdomain.gov/FBSD/# pkg_add -r subversion-1.6.5Fetching ftp://ftp.ourdomain.gov/FBSD/subversion-1.6.5.tbz... 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 Unable to get ftp://ftp.ourdomain.gov/All/sqlite3-3.6.14.2.tbz: File unavailable (e.g., file not found, no access)Error: FTP Unable to get ftp://ftp.ourdomain.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 environment 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), though 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 whatever, I don't want "All", I just want "FBSD"). > I have tried various combinations of setting both or one of PACKAGESITE and/or PACKAGEROOT, just in case that would somehow help, but to no avail. Of 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. -- Glen Barber
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?821063.97828.qm>
