Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Mar 2009 15:37:05 -0400
From:      L Campbell <llc2w@virginia.edu>
To:        freebsd-questions@freebsd.org
Subject:   [pkg_add] PACKAGESITE weirdness - URL not correct for dependencies?
Message-ID:  <792298050903261237o4d57a47dpb99861279ee9b4f6@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
I'm running a bunch of jails and running the same set of ports between
them. To save myself some CPU time, I've got one jail building
packages for everything I need, then serving those packages out over
HTTP to the rest of the jails.

The package serving jail is at 10.0.0.4, and is serving packages out
from it's HTTP root, such that requesting the following URLs properly
fetch the desired packages:

http://10.0.0.4/lighttpd-1.4.22.tbz
http://10.0.0.4/pcre-7.8.tbz

I set PACKAGESITE to 'http://10.0.0.4/'; when I attempt to install
Lighttpd with pkg_add -rv, I get the following output (snipped to
relevant portions):

$ pkg_add -rv lighttpd-1.4.22
(..snip..)

scheme:   [http]
user:     []
password: []
host:     [10.0.0.4]
port:     [0]
document: [/lighttpd-1.4.22.tbz]
(..fetches and installs lighttpd-1.4.22 properly..)

Package 'lighttpd-1.4.22' depends on 'pcre-7.8' with 'devel/pcre' origin.
scheme:   [http]
user:     []
password: []
host:     [All]
port:     [0]
document: [/pcre-7.8.tbz]
---> All:80
looking up All
Error: FTP Unable to get http://All/pcre-7.8.tbz: No address record

Somewhere along the process, something breaks and 'host' doesn't get
set properly. I'm currently poking through the pkg_install code to
figure out wtf is going on, but I figured I'd prod the lists to see if
anyone else hit a similar problem (or knows what I'm doing wrong)
since I'm not familiar with it.

$ uname -a
FreeBSD blah 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25
UTC 2009     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
i386

Thanks :3



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?792298050903261237o4d57a47dpb99861279ee9b4f6>