Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2009 15:57:17 -0400
From:      Glen Barber <glen.j.barber@gmail.com>
To:        Trever <anti_spamsys@yahoo.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: bug in pkg_add ? doesn't fetch dependencies from set path
Message-ID:  <4ad871310910221257s5533da63l3ed062d9641b36@mail.gmail.com>
In-Reply-To: <204698.71349.qm@web113208.mail.gq1.yahoo.com>
References:  <204698.71349.qm@web113208.mail.gq1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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=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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ad871310910221257s5533da63l3ed062d9641b36>