Bug 191149 - make fetch ignores/resets set variables {ftp,http,https}_proxy
Summary: make fetch ignores/resets set variables {ftp,http,https}_proxy
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Port Management Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-18 09:44 UTC by Thomas Schweikle
Modified: 2014-08-04 11:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schweikle 2014-06-18 09:44:46 UTC
go to /usr/ports/lang/clang34, then

make fetch

fetch will attempt to connect to the download server given, but *does not* use defined proxy-variables or unsets them. In tune make fetch fails to download the necessary packages to build the software in question.

How-To-Repeat:
setenv ftp_proxy http://<your_proxy_server:your_proxy_port>
setenv http_proxy $ftp_proxy
setenv https_proxy $ftp_proxy

make fetch
Comment 1 John Marino freebsd_committer freebsd_triage 2014-07-26 07:19:27 UTC
assigning to portmgr for lack of a better option although it is not clear to me that fetch is supposed to respect these environment variables or not.
Comment 2 Antoine Brodin freebsd_committer freebsd_triage 2014-07-26 08:18:32 UTC
Requesting feedback,  this seems to work here:


antoine@foo:/usr/ports/lang/clang34 % setenv http_proxy http://127.0.0.1:8080
antoine@foo:/usr/ports/lang/clang34 % make fetch
===>   clang34-3.4_2 depends on file: /usr/local/sbin/pkg - found
=> clang-3.4.src.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch http://llvm.org/releases/3.4/clang-3.4.src.tar.gz


In another terminal I see the http request coming:

% nc -l 8080
GET http://llvm.org/releases/3.4/clang-3.4.src.tar.gz HTTP/1.1
Host: llvm.org
Accept: */*
User-Agent: fetch libfetch/2.0
Connection: close
Comment 3 Baptiste Daroussin freebsd_committer freebsd_triage 2014-08-04 11:50:00 UTC
I'm using that daily and it works, redports builder are also using proxies