Bug #805

/etc/wgetrc proxy settings from template block any use of proxy if no proxy during install

Added by Scott Bertilson about 4 years ago. Updated about 4 years ago.

Status:New Start:09/16/2015
Priority:High Due date:
Assignee:- % Done:

0%

Category:- Spent time: -
Target version:-
Votes: 0

Description

The template:
/var/lib/layman/calculate/profiles/templates/3.3/3_ac_install_live/1-merge/net-misc/wget/wgetrc

has:
  1. Calculate format=dovecot

passive_ftp = on
waitretry = 10
http_proxy = #os_install_proxy#
ftp_proxy = #os_install_proxy#
#?os_install_proxy!=#
use_proxy = on
#os_install_proxy#

which, if the original install didn't use a proxy, results in /etc/wgetrc having:
http_proxy =
ftp_proxy =

which overrides any setting of these variables in the environment.

Perhaps the template should be:
  1. Calculate format=dovecot

passive_ftp = on
waitretry = 10
#?os_install_proxy!=#
use_proxy = on
http_proxy = #os_install_proxy#
ftp_proxy = #os_install_proxy#
#os_install_proxy#

This caused me a great deal of pain in trying to track down why wget invoked by emerge with a proxy set in the environment paid no attention to that proxy setting. I needed a proxy to work around a temporary network connectivity issue.

History

Updated by Scott Bertilson about 4 years ago

This seemed pretty straightforward to me. Is there some good reason why the override behavior needs to be forced?

Also available in: Atom PDF

Thank you!