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

Bug 111075

Summary: emerge and make.conf do not recognize standard capatalized HTTP_PROXY and FTP_PROXY, but lowercase instead.
Product: Portage Development Reporter: PbHead <pbhead>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description PbHead 2005-10-31 18:07:34 UTC
With the three environment variables "HTTP_PROXY, FTP_PROXY, and RSYNC_PROXY" set in /etc/profile, 
or by exporting to the environment, 'emerge --sync' will succeed where 'emerge <packagename>' will 
fail. Adding these three environment variables to make.conf does not change this failure, but a 
lowercase 'http_proxy' and 'ftp_proxy' to the make.conf will allow 'emerge <packagename>' to work.

This bug filing assumes that emerge has the desire to:
1. Work with the standard environment variables HTTP_PROXY and FTP_PROXY as they have become a 
standard for many console based applications that connect through the internet.
2. Continue with the standard that environment variables as well as variables set in make.conf are 
capatalized.

Reproducible: Always
Steps to Reproduce:
1.Assign a working HTTP_PROXY od FTP_PROXY in /etc/profile, make.conf, or by use of 'export 
HTTP_PROXY="proxyname:port"
2. try to emerge a package through the assigned proxy.

Actual Results:  
emerge will have a connection error.

Expected Results:  
emerge should succeed.

Note that if a "PROXY" environment variable is set, emerge (with wget) will fail, but running "wget 
<package filename>" will succeed.
Comment 1 Zac Medico gentoo-dev 2005-10-31 23:56:53 UTC
You can probably work around this if you put the PROXY variable into a new file
in /etc/env.d and then run env-update.  That will put the variable into
/etc/profile.env so that portage actually uses it.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-11-01 03:24:12 UTC
Portage doesn't use those variables at all. They are wget environment 
variables.