Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 40663
Status: rejected
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: schwigon [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.9205
Fixed in: (no value)



Subject: Install paths differ from default perl 5.10 @INC
Hi! Somehow CPAN.pm installs itself and other modules into other directories than a default @INC contains. Therefore after updating CPAN.pm it is not found. I did: # install a Perl 5.10 PREFIX=/opt/foo tar xzf perl-5.10.0.tar.gz cd perl-5.10.0 make distclean sh Configure -des -Dprefix=$PREFIX -Duserelocatableinc make -j17 make test time make install /opt/foo/bin/perl -V [...] @INC: /opt/artemis.Linux.x86_64/lib/perl5/5.10.0/x86_64-linux /opt/artemis.Linux.x86_64/lib/perl5/5.10.0 /opt/artemis.Linux.x86_64/lib/perl5/site_perl/5.10.0/x86_64-linux /opt/artemis.Linux.x86_64/lib/perl5/site_perl/5.10.0 . export PERL_AUTOINSTALL="--defaultdeps" # configure CPAN.pm by overwriting its Config # # I will attach my default_CPAN_Config.pm to the bug, but it # basically only configures a MINICPAN repo, PREFIX and UNINST. # cpancfg=`find $PREFIX/lib/ -name Config.pm | grep 'CPAN\/Config.pm'` cp $builddir/default_CPAN_Config.pm $cpancfg $PREFIX/bin/cpan CPAN BUMMER! Now the new CPAN.pm is outside @INC: find /opt/foo/lib/ -name CPAN.pm ==> /opt/foo/lib/perl5/CPAN.pm That also happens with other modules. It just "bummers" more with CPAN.pm itself. :-) Thanks. Kind regards, Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/> Deutscher Perl-Workshop <http://www.perl-workshop.de/>
Here is my default_CPAN_Config.pm -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/> Deutscher Perl-Workshop <http://www.perl-workshop.de/>
# This is CPAN.pm's systemwide configuration file. This file provides # defaults for users, and the values can be changed in a per-user # configuration file. The user-config file is being looked for as # ~/.cpan/CPAN/MyConfig.pm. $CPAN::Config = { 'applypatch' => q[], 'auto_commit' => q[1], 'build_cache' => q[100], 'build_cache' => q[100], 'build_dir' => q[/tmp/fooperlbuild-Linux.x86_64/.cpan/build], 'build_dir_reuse' => q[1], 'build_requires_install_policy' => q[ask/yes], 'bzip2' => q[/usr/bin/bzip2], 'cache_metadata' => q[1], 'check_sigs' => q[0], 'colorize_output' => q[0], 'commandnumber_in_prompt' => q[1], 'cpan_home' => q[/tmp/fooperlbuild-Linux.x86_64/.cpan], 'curl' => q[/usr/bin/curl], 'ftp' => q[/usr/bin/ftp], 'ftp_passive' => q[1], 'ftp_proxy' => q[], 'getcwd' => q[cwd], 'gpg' => q[/usr/bin/gpg], 'gzip' => q[/bin/gzip], 'histfile' => q[/home/sschwigo/.cpan/histfile], 'histsize' => q[100], 'http_proxy' => q[], 'inactivity_timeout' => q[0], 'index_expire' => q[1], 'index_expire' => q[1], 'inhibit_startup_message' => q[0], 'keep_source_where' => q[/tmp/fooperlbuild-Linux.x86_64/.cpan/sources], 'load_module_verbosity' => q[v], 'lynx' => q[], 'make' => q[/usr/bin/make], 'make_arg' => q[], 'make_install_arg' => q[UNINST=1], 'make_install_make_command' => q[/usr/bin/make], 'makepl_arg' => q[PREFIX=/opt/foo.Linux.x86_64], 'mbuild_arg' => q[], 'mbuild_install_arg' => q[--uninst 1], 'mbuild_install_build_command' => q[./Build], 'mbuildpl_arg' => q[--install_base /opt/foo.Linux.x86_64], 'ncftp' => q[], 'ncftpget' => q[], 'no_proxy' => q[], 'pager' => q[less -ir], 'patch' => q[/usr/bin/patch], 'prefer_installer' => q[MB], 'prefs_dir' => q[/home/sschwigo/.cpan/prefs], 'prerequisites_policy' => q[follow], 'scan_cache' => q[atstart], 'shell' => q[/bin/bash], 'show_unparsable_versions' => q[0], 'show_upload_date' => q[0], 'show_zero_versions' => q[0], 'tar' => q[/bin/tar], 'tar_verbosity' => q[v], 'term_is_latin' => q[1], 'term_ornaments' => q[1], 'test_report' => q[0], 'unzip' => q[/usr/bin/unzip], 'urllist' => [q[file:///tmp/fooperlbuild-Linux.x86_64/foo-perl/MINICPAN/]], 'use_sqlite' => q[0], 'wget' => q[/usr/bin/wget], 'yaml_load_code' => q[0], 'yaml_module' => q[YAML], }; 1; __END__
I could imagine the removal of this line: 'makepl_arg' => q[PREFIX=/opt/foo.Linux.x86_64], would do the trick. It's more an instinctive reaction, I have not tried PREFIX and relocateableinc together. Even worse: I have not used PREFIX for 12 years or so. But I see this line as a useless attempt to force things going that would probably othewise just do the right thing. I may be wrong. Please note that CPAN shell itself does no install, not even of itself. MakeMaker does.
On Tue Nov 04 15:03:07 2008, ANDK wrote: Show quoted text
> I could imagine the removal of this line: > > 'makepl_arg' => q[PREFIX=/opt/foo.Linux.x86_64], > > would do the trick.
Yep, it works. Show quoted text
> Please note that CPAN shell itself does no install, > not even of itself. MakeMaker does.
Indeed. You are right. Sorry for spamming you bugcounter. At least I got the correct solution in lightning speed. :-) Thanks. I close the bug. Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/> Deutscher Perl-Workshop <http://www.perl-workshop.de/>