Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353531 - portage-2.2.0_alpha19: emerge prefers shell environment variable for http_proxy instead of make.conf settings
Summary: portage-2.2.0_alpha19: emerge prefers shell environment variable for http_pro...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 912589
  Show dependency tree
 
Reported: 2011-02-02 14:25 UTC by mcbeagle
Modified: 2023-08-19 14:35 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mcbeagle 2011-02-02 14:25:24 UTC
I use a special proxy account for portage.
I noticed that emerge uses the shell's environment variable settings for http_proxy instead of using the settings specified in make.conf.
In other words:
If having http_proxy exported within the shell, the settings for http_proxy in make.conf are ignored.
I think this should behave vice versa.

Reproducible: Always

Steps to Reproduce:
1.Test emerge with an http_proxy setting in make.conf => works
2.Export http_proxy within your shell (different settings than in make.conf)
3.Emerge uses the settings from your shell environment instead of the settings in make.conf



Expected Results:  
Emerge should prefer the settings in make.conf.


This bug might be difficult to diagnose by a user as the settings within make.conf are valid but ignored.
Comment 1 Zac Medico gentoo-dev 2011-02-02 20:36:13 UTC
The long-standing emerge behavior is for the calling environment to be able to override make.conf settings. We can certainly add an option to ignore the calling environment completely, and call it --ignore-calling-env [ y | n ] so that you can put it in EMERGE_DEFAULT_OPTS and then temporarily disable it on the command line if you ever want to.
Comment 2 mcbeagle 2011-02-03 18:36:25 UTC
In general you're right - the problem I see, or why I got problems with this behaviour is that http_proxy might be exported by default within the shell.
So you (at least I) setup make.conf and run emerge and wonder why it doesn't work.
Perhaps one should use another variable than http_proxy for emerge's proxy configuration.
Just an idea ...
Comment 3 Zac Medico gentoo-dev 2011-02-03 19:08:29 UTC
If we use a different variable then it will break existing configurations.

It seems odd that your proxy configuration varies like this. I don't remember anyone else complaining about this in as many years as I've been fixing portage bugs.
Comment 4 mcbeagle 2011-02-04 15:53:54 UTC
You're of course right - and for me this doesn't need to be 'fixed' as I know now how to handle this.
I fully understand your position and it was just an idea as I needed some time to find the reason for emerge not working for me as expected.
However, before breaking existing setups keep it as it now works, perhaps some hint within the documentation might be helpful for others who might run into this problem (if such hints don't already ecist within the current docs).
At all this 'bug' might be closed if there's no more input regarding this issue.
Regards