Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 185048

Summary: emerge-webrsysnc does not honour http_proxy set in make.conf
Product: Portage Development Reporter: Lutz Lehmann <bugzilla>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: minor CC: anton.bugs
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949, 187293    
Attachments: make emerge-webrsync honor http_proxy and ftp_proxy from make.conf

Description Lutz Lehmann 2007-07-12 09:33:05 UTC
$Id: emerge-webrsync 5154 2006-12-02 08:07:37Z zmedico $

http_proxy and ftp_proxy are set in make.conf only. emerge works properly, but emerge-webrsync tries direct connections, since it only reads some hard-coded values from make.conf.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
tuxbox ~ # emerge-webrsync -v
Fetching most recent snapshot
Attempting to fetch file dated: 20070711
--15:25:23--  http://distfiles.gentoo.org/snapshots/portage-20070711.tar.bz2.md5sum
           => `/var/tmp/emerge-webrsync/portage-20070711.tar.bz2.md5sum'
Resolving distfiles.gentoo.org... failed: Unknown host.


Expected Results:  
tuxbox ~ # emerge-webrsync -v
Fetching most recent snapshot
Attempting to fetch file dated: 20070711
--15:26:06--  http://distfiles.gentoo.org/snapshots/portage-20070711.tar.bz2.md5sum
           => `/var/tmp/emerge-webrsync/portage-20070711.tar.bz2.md5sum'
Connecting to 10.10.10.6:6588... connected.
Proxy request sent, awaiting response... 200 OK
Length: 59 [application/x-tar]

100%[===================================================================================>] 59            --.--K/s

15:26:07 (3.00 MB/s) - `/var/tmp/emerge-webrsync/portage-20070711.tar.bz2.md5sum' saved [59/59]

--15:26:07--  http://distfiles.gentoo.org/snapshots/portage-20070711.tar.bz2
           => `/var/tmp/emerge-webrsync/portage-20070711.tar.bz2'
Connecting to 10.10.10.6:6588... connected.
Proxy request sent, awaiting response... 200 OK
Length: 38,054,659 (36M) [application/x-tar]
Comment 1 Zac Medico gentoo-dev 2007-07-21 04:46:13 UTC
I think it's better for you to set these variables in /etc/env.d/ so that they are respected globally.  There's an example here:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5#doc_chap_pre3

We can update make.conf.5 and /etc/make.conf.example to recommend this.
Comment 2 Lutz Lehmann 2007-07-22 22:01:05 UTC
(In reply to comment #1)
> I think it's better for you to set these variables in /etc/env.d/ so that they
> are respected globally.  There's an example here:
[snip]

In my case, there's a reason for not doing so. Consider people having different proxies for differend kind of traffic... All portage-related stuff goes one way, anything else goes the other... Why else should portage respect proxies set in make.conf?
Comment 3 Zac Medico gentoo-dev 2007-07-28 00:10:40 UTC
Created attachment 126201 [details, diff]
make emerge-webrsync honor http_proxy and ftp_proxy from make.conf

This is fixed in svn r7416.
Comment 4 Zac Medico gentoo-dev 2007-07-28 06:20:14 UTC
This has been released in 2.1.3.
Comment 5 Zac Medico gentoo-dev 2011-05-09 09:15:57 UTC
*** Bug 104547 has been marked as a duplicate of this bug. ***