From: Vincent Pit Date: Wed, 15 Dec 2010 23:58:47 +0000 (+0100) Subject: Simplify the bootstrap process X-Git-Tag: v0.11~7 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FCPANPLUS-Dist-Gentoo.git;a=commitdiff_plain;h=429baac5b02f5d63589a910076a2aa06b13c3788 Simplify the bootstrap process Perl 5.12 is now stable in Gentoo. --- diff --git a/lib/CPANPLUS/Dist/Gentoo.pm b/lib/CPANPLUS/Dist/Gentoo.pm index cc57cbd..3c6d883 100644 --- a/lib/CPANPLUS/Dist/Gentoo.pm +++ b/lib/CPANPLUS/Dist/Gentoo.pm @@ -63,61 +63,41 @@ You have two ways for installing this module : =item * Use the perl overlay located at L. -It contains an ebuild for L. +It contains an ebuild for L which will most likely be up-to-date given the reactivity of Gentoo's Perl herd. =item * Bootstrap an ebuild for L using itself. -Note that if your Gentoo system C is C<5.8.x>, L and its dependencies are not installed and not even available in the main portage tree. -So you need to bootstrap them as well. -First, fetch tarballs for L and L : +First, make sure your system C is C<5.10> or greater, so that the L toolchain is available. - $ cd /tmp - $ wget http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/CPANPLUS-0.9003.tar.gz - $ wget http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/CPANPLUS-Dist-Gentoo-0.10.tar.gz - -Log in as root and unpack them in e.g. your home directory : - - # cd - # tar xzf /tmp/CPANPLUS-0.9003.tar.gz - # tar xzf /tmp/CPANPLUS-Dist-Gentoo-0.10.tar.gz - -Set up environment variables so that the toolchain is temporarily available : - - # export OLDPATH=$PATH - # export PATH=/root/CPANPLUS-0.9003/bin:$PATH - # export PERL5LIB=/root/CPANPLUS-Dist-Gentoo-0.10/blib/lib:/root/CPANPLUS-0.9003/lib:/root/CPANPLUS-0.9003/inc/bundle + $ perl -v + This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-linux + ... -Make sure you don't have an old C<.cpanplus> configuration visible : +C C<5.12> is the current stable Perl version in Gentoo. +If you still have C C<5.8.x>, you can upgrade it by running the following commands as root : - # [ -d /root/.cpanplus ] && mv /root/.cpanplus{,.bak} + # emerge -tv ">=dev-lang/perl-5.10" + # perl-cleaner --all -Bootstrap L : +Then, fetch the L tarball : - # cd /root/CPANPLUS-Dist-Gentoo-0.10 - # samples/g-cpanp CPANPLUS - -Reset the environment : - - # export PATH=$OLDPATH - # unset PERL5LIB OLDPATH - -Emerge L with the ebuilds you've just generated : + $ cd /tmp + $ wget http://search.cpan.org/CPAN/authors/id/V/VP/VPIT/CPANPLUS-Dist-Gentoo-0.10.tar.gz - # emerge -tv CPANPLUS +Log in as root and unpack it in e.g. your home directory : -As of september 2009, C and C may fail to emerge due to collisions. -You can work around this by disabling the C C for them : + # cd + # tar xzf /tmp/CPANPLUS-Dist-Gentoo-0.10.tar.gz + # cd CPANPLUS-Dist-Gentoo-0.10 - # FEATURES="-protect-owned" emerge podlators - # FEATURES="-protect-owned" emerge ExtUtils-MakeMaker +Bootstrap L using the bundled shell script C : -You may need to run each of these commands two times for them to succeed. + # PERL5LIB=blib/lib samples/g-cpanp CPANPLUS::Dist::Gentoo -At this point, you can bootstrap L using the system L : +Finally, emerge the C ebuild you've just generated : - # PERL5LIB=/root/CPANPLUS-Dist-Gentoo-0.10/blib/lib samples/g-cpanp CPANPLUS::Dist::Gentoo # emerge -tv CPANPLUS-Dist-Gentoo =back