Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2010 13:54:19 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Cc:        Colin Percival <cperciva@freebsd.org>
Subject:   Re: portsnap - broken metadata
Message-ID:  <20100203135419.68b1c975@gumby.homeunix.com>
In-Reply-To: <20100203132259.0c00890f@gumby.homeunix.com>
References:  <532b03711001230152v5cf1958eg232805aec8d62b61@mail.gmail.com> <532b03711002030420q4754ba64q1d11596892e2173b@mail.gmail.com> <20100203132259.0c00890f@gumby.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 3 Feb 2010 13:22:59 +0000
RW <rwmaillists@googlemail.com> wrote:

> On Wed, 3 Feb 2010 12:20:53 +0000
> Angelin Lalev <lalev.angelin@gmail.com> wrote:
> 
> 
> > I have proxy server that requires username and password and I have
> > set the HTTP_PROXY and FTP_PROXY environment variables accordingly.
> > (HTTP_PROXY = FTP_PROXY =
> > USERNAME:PASSWORD@proxy.uni-svishtov.bg:8080)
> > 
> > portsnap --debug shows, among other rows the following error
> > message:
> > 
> > phttpget: host = USERNAME, port =
> > PASSWORD@proxy.uni-svishtov.bg:8080: servname not
> >  supported for ai_socktype
> > 
> > Seems to me like a bug somewhere in portsnap. Any help?
> 
> It looks to be a bug in phttpget, which is a download utility
> used by portsnap and freebsd-update. It supports pipelining, so
> it's very fast at fetching a large number of small files, but in all
> other respects it simpler and less mature than fetch.
> 
> As temporary workaround I would suggest you backup portsnap and change
> the line:
> 
> PHTTPGET=/usr/libexec/phttpget
> 
> to 
> 
> PHTTPGET=/usr/bin/fetch

I see that isn't going to work since phttpget needs it's arguments in
the form 

phttpget server file1 file2 ... fileN

you'd need to wrap fetch if you want to try that.

Anyway, I've CC'd Colin Percival which I forgot to do before, and I
suggest you open a PR.



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