From nobody@www.freebsd.org  Mon Jun 24 11:07:08 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 1690737B49D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2002 11:05:08 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5OI52hG001184
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Jun 2002 11:05:02 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5OI52ia001183;
	Mon, 24 Jun 2002 11:05:02 -0700 (PDT)
Message-Id: <200206241805.g5OI52ia001183@www.freebsd.org>
Date: Mon, 24 Jun 2002 11:05:02 -0700 (PDT)
From: Jonathan Laventhol <jonathan-dot-laventhol@imagination.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Making ports fails behind ftp proxy without setenv
X-Send-Pr-Version: www-1.0

>Number:         39796
>Category:       docs
>Synopsis:       Making ports fails behind ftp proxy without setenv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 24 11:10:01 PDT 2002
>Closed-Date:    Sat Jun 29 13:37:51 PDT 2002
>Last-Modified:  Sat Jun 29 13:37:51 PDT 2002
>Originator:     Jonathan Laventhol
>Release:        4.5-RELEASE
>Organization:
Imagination Ltd
>Environment:
>Description:
The ports process (often) gets distfiles by ftp using fetch(1),
which, if you have an ftp proxy, requires you to set the environment
variable FTP_PROXY.  The documentation needs to say so.

>How-To-Repeat:
On a system with no direct connection to the internet but with
an ftp proxy, use /stand/sysinstall to install the ports collection.
Then cd /usr/ports/astro/jday ; make
Problem manifests as 'Attempting to fetch from ...', (15 seconds timeout)
then 'fetch: jday-1.2.tar.gz: No route to host'
>Fix:
Add a paragraph to the manual at
http://www.freebsd.org/handbook/ports-using.html#PORTS-INET

"The ports mechanism uses fetch(1) which can use web and FTP proxies
if you set appropriate environment variables, as documented in fetch(3).
For example using root's default csh(1), you do
  setenv FTP_PROXY ftp://myproxy.mycompany.co.uk"

NB: If you're not using csh environment variables are set differently.
If you don't have fetch(1) then the Makefile uses ftp(1) which uses
different environment variables.  This is probably a subject for
the page http://www.freebsd.org/handbook/ports-trouble.html
>Release-Note:
>Audit-Trail:

From: Niall Brady <bradyn@maths.tcd.ie>
To: freebsd-gnats-submit@FreeBSD.org
Cc: jonathan-dot-laventhol@imagination.com
Subject: Re: docs/39796: Making ports fails behind ftp proxy without setenv 
Date: Tue, 25 Jun 2002 15:23:16 +0100

 On Mon, 24 Jun 2002 11:05:02 PDT, Jonathan Laventhol said:
 >
 >Add a paragraph to the manual at
 >http://www.freebsd.org/handbook/ports-using.html#PORTS-INET
 >
 >"The ports mechanism uses fetch(1) which can use web and FTP proxies
 >if you set appropriate environment variables, as documented in fetch(3).
 >For example using root's default csh(1), you do
 >  setenv FTP_PROXY ftp://myproxy.mycompany.co.uk"
 >
 >NB: If you're not using csh environment variables are set differently.
 >If you don't have fetch(1) then the Makefile uses ftp(1) which uses
 >different environment variables.  This is probably a subject for
 >the page http://www.freebsd.org/handbook/ports-trouble.html
 
 You may want to add a para about adding these settings to /etc/make.conf
 as well in that case (FETCH_ENV, documented in /etc/defaults/make.conf).
 This makes it permanent for the system in a sensible way...
 
 If someone thinks it's appropriate to add to the handbook, I'll
 sgml-ize it later... although it may be more appropriate full-stop
 to just add it to the ports-trouble section?
 
 -- 
 	Niall
State-Changed-From-To: open->closed 
State-Changed-By: nik 
State-Changed-When: Sat Jun 29 13:36:57 PDT 2002 
State-Changed-Why:  
I've added a couple of paragraphs explaining the relationship between 
ports/pkg_add and fetch(1)/fetch(3), so the reader knows where to look 
for more info. 

Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39796 
>Unformatted:
