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

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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




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