Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152074 - app-portage/g-cpan-0.14.0 could make use of the http_proxy environment variable when creating the default configuration
Summary: app-portage/g-cpan-0.14.0 could make use of the http_proxy environment variab...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 02:35 UTC by Petteri Räty (RETIRED)
Modified: 2007-02-11 16:54 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 Petteri Räty (RETIRED) gentoo-dev 2006-10-20 02:35:01 UTC
By default the created config does not have the proxy set:
betelgeuse@rj ~ $ g-cpan -i W3C::LogValidator
 * g-cpan: ERROR - INSUFFICIENT PERMISSIONS TO RUN EMERGE
betelgeuse@rj ~ $ sudo g-cpan -i W3C::LogValidator
 * No CPAN Config found, auto-generating a basic one:
mkdir /home/betelgeuse/.cpan
mkdir /home/betelgeuse/.cpan/CPAN
CPAN: Storable loaded ok
LWP not available
LWP not available

Trying with "/usr/bin/wget -O -" to get
    "http://search.cpan.org/CPAN"/authors/01mailrc.txt.gz
--12:40:35--  http://search.cpan.org/CPAN/authors/01mailrc.txt.gz
           => `-'
Resolving search.cpan.org... 84.45.68.23
Connecting to search.cpan.org|84.45.68.23|:80...
System call "/usr/bin/wget -O - ""http://search.cpan.org/CPAN"/authors/01mailrc.txt.gz"  > /var/tmp/g-cpan/.cpan/sources/authors/01mailrc.txt"
returned status 0 (wstat 2)
Warning: expected file [/var/tmp/g-cpan/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist

Trying with "/usr/bin/wget -O -" to get
    "http://www.cpan.org/pub/CPAN"/authors/01mailrc.txt.gz
--12:40:43--  http://www.cpan.org/pub/CPAN/authors/01mailrc.txt.gz
           => `-'
Resolving www.cpan.org... 66.39.76.93
Connecting to www.cpan.org|66.39.76.93|:80...
System call "/usr/bin/wget -O - ""http://www.cpan.org/pub/CPAN"/authors/01mailrc.txt.gz"  > /var/tmp/g-cpan/.cpan/sources/authors/01mailrc.txt"
returned status 0 (wstat 2)
Warning: expected file [/var/tmp/g-cpan/.cpan/sources/authors/01mailrc.txt.gz] doesn't exist
Please check, if the URLs I found in your configuration file
("http://search.cpan.org/CPAN", "http://www.cpan.org/pub/CPAN") are valid.
The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/'


betelgeuse@rj ~ $ env | grep http_proxy
http_proxy=http://proxy.mil.fi:8080
betelgeuse@rj ~ $
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-12-05 05:28:26 UTC
is the http_proxy env variable abilable when you sudo? (honest question) Line 432 of lib/Gentoo/CPAN.pm attempts to set this for you when it creates the cpan config file:

432     my $http_proxy = defined( $ENV{http_proxy} ) ? $ENV{http_proxy} : '';

followed later by:
467   'http_proxy' => q[$http_proxy],

does anything show up in the config file or is it blank?
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2007-02-11 16:50:22 UTC
over two months, closing. 
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2007-02-11 16:54:18 UTC
(In reply to comment #2)
> over two months, closing. 
> 

Yeah I guess sudo ate it.