Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Mar 1999 15:30:02 -0800 (PST)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/10377: `make' in ports does not honor {f,ht}tp_proxy settings
Message-ID:  <199903032330.PAA98002@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/10377; it has been noted by GNATS.

From: "Scot W. Hetzel" <hetzels@westbend.net>
To: <shalunov@lynxhub.lz.att.com>
Cc: <FreeBSD-gnats-submit@FreeBSD.ORG>
Subject: Re: ports/10377: `make' in ports does not honor {f,ht}tp_proxy settings
Date: Wed, 3 Mar 1999 17:29:39 -0600

 From: <shalunov@lynxhub.lz.att.com>
 > >Description:
 >
 > I have set ftp_proxy and http_proxy in the environment (using
 > IP numbers).  If I manually fetch some URL, such as
 > ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/lynx2.8.1rel.1.tar.gz,
 > everything works fine, file gets fetched and all.  However, if
 > I try to run `make' in /usr/ports/www/lynx without the distfile
 > in /usr/ports/distfiles, I get output similar to this (using
 > a different port, because Lynx is now building):
 >
 
 I have used fetch behind a firewall, and if the {F,HT}TP_PROXY variables are
 defined, fetch will retrieve the file through the proxy server.
 
 The problem is that ftp & fetch both use different environment variables for
 the proxy servers.
 
 According to the man page for ftp, it says to uses ftp_proxy, http_proxy
 environment variables to access servers through a proxy server.
 
 While the man page for fetch, says to use FTP_PROXY, HTTP_PROXY environment
 variables to access servers through a proxy server.
 
 Since, fetch expects its environment variables to be in all CAPS, it doesn't
 see any proxy servers being defined, when you use the ftp proxy environment
 variables ({f,ht}tp_proxy).
 
 >>Fix:
 >
 >What was the reason to use `fetch' rather than `ftp' as
 >FETCH_CMD in /usr/ports/Mk/bsd.port.mk?  Surely I can set
 >FETCH_CMD to ftp in the environment or simply change that
 >file, but how many users do you expect to be able to figure
 >it out?  Or, at least don't set FETCH_CMD to `fetch' if
 >ftp_proxy or http_proxy is defined in the environment!
 >(The solution that should make everyone happy.)
 >
 
 This is the wrong fix, the correct fix is to use only one case (CAPS,
 lower-case) as the environment variable for *_{PROXY,proxy} settings.  And
 making sure that all programs that can use proxy servers use the same
 environment variable.
 
 This PR should be changed to CURRENT, so that the experts can decide if they
 want to use all CAPS or lower-case for the proxy environment variables.
 
 Scot
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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