| Summary: | app-portage/g-cpan-0.14.0 could make use of the http_proxy environment variable when creating the default configuration | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Petteri Räty (RETIRED) <betelgeuse> |
| Component: | [OLD] Development | Assignee: | Gentoo Perl team <perl> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
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?
over two months, closing. (In reply to comment #2) > over two months, closing. > Yeah I guess sudo ate it. |
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 ~ $