1 |
Ideally it should be as simple as that; just set the http_proxy |
2 |
environment variable. |
3 |
|
4 |
Two concerns though--first of all, at certain times a workaround of mine |
5 |
has been to put proxy info in etc/wgetrc (besides having http_proxy |
6 |
defined). Bug 315421 has the story. I have not checked if the etc/wgetrc |
7 |
workaround was needed only for a couple of days, or if it is still needed. |
8 |
|
9 |
Second, the `emerge --sync' step causes subversion to be used. It seems |
10 |
that subversion requires ~/.subversion/servers to be set up. Long ago I |
11 |
wrote a helper script that tries `emerge --sync' once (causing the |
12 |
~/.subversion directory to be set up), and on failure adds the proxy |
13 |
info into the servers file, and retries `emerge --sync'. Quite kludgy |
14 |
but it solves the problem. |
15 |
|
16 |
So, if it can't be helped that an HTTP proxy requires non-trivial steps |
17 |
to be taken then IMHO the webpage should provide advice. Otherwise there |
18 |
will be mail threads like this one, and bugs filed, and worst of all, |
19 |
potential enterprise users will ditch Gentoo Prefix because it does not |
20 |
Just Work. |
21 |
|
22 |
--Rabbe |
23 |
|
24 |
|
25 |
mattmatteh@×××××.com wrote: |
26 |
> i just followed the proxy note from the gentoo handbook. i believe you |
27 |
> have to use what works for wget, curl, or lynx. |
28 |
> |
29 |
> export http_proxy="http://proxy.server.com:port" |
30 |
> export ftp_proxy="http://proxy.server.com:port" |
31 |
> |
32 |
> something like that should work depending on your shell. |
33 |
> |
34 |
> matt |
35 |
> |
36 |
> On Thu, 20 May 2010, rabbe@×××××××.se wrote: |
37 |
> |
38 |
>> The "Gentoo Prefix Use Cases" paper |
39 |
>> (http://www.gentoo.org/proj/en/gentoo-alt/prefix/usecases.xml) has |
40 |
>> scenarios where Gentoo Prefix is used in enterprise environments. It is |
41 |
>> not unusual that machines in such environments have Internet access |
42 |
>> through some kind of HTTP proxy. |
43 |
>> |
44 |
>> I think it would be a good idea for the step-by-step instructions (e g |
45 |
>> http://www.gentoo.org/proj/en/gentoo-alt/prefix/bootstrap-solaris.xml) to |
46 |
>> include recommendations on how to specify an HTTP proxy for the bootstrap |
47 |
>> process. Perhaps it is not easy to cover all possible proxy |
48 |
>> configurations, but probably it would go a long way to just indicate how |
49 |
>> to do in a typical case. |
50 |
>> |
51 |
>> Some time ago I found that putting proxy details in etc/wgetrc |
52 |
>> appeared to |
53 |
>> solve the problem for me. Recently this doesn't work anymore |
54 |
>> (http://bugs.gentoo.org/show_bug.cgi?id=320555). |
55 |
>> |
56 |
>> Proxy info is also needed in ~/.subversion/servers; at least that is what |
57 |
>> I have. It would be nicer if the subversion config files could be folded |
58 |
>> into the prefix tree, I haven't looked into this. |
59 |
>> |
60 |
>> Maybe there is more to it that I can't think of now. Anyway, if someone |
61 |
>> adds instructions to the step-by-step page I volunteer to try them out. |
62 |
>> |
63 |
>> --Rabbe Fogelholm |
64 |
> |