Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185048 - emerge-webrsysnc does not honour http_proxy set in make.conf
Summary: emerge-webrsysnc does not honour http_proxy set in make.conf
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 104547 (view as bug list)
Depends on:
Blocks: 181949 187293
  Show dependency tree
 
Reported: 2007-07-12 09:33 UTC by Lutz Lehmann
Modified: 2011-05-09 09:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
make emerge-webrsync honor http_proxy and ftp_proxy from make.conf (proxy.patch,760 bytes, patch)
2007-07-28 00:10 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***