So recently I started CPAN smoking using blead perl and had a few requests from other people on how to set up CPAN smoking using bleadperl.
Well I found it is relatively easy to do, since blead perl now includes CPANPLUS.
Here's how you do it:
First off install POE::Component::CPAN::YACSmoke in your system perl using either cpan or cpanp. It is advised that Proc::ProcessTable is installed when prompted. This will install the minismoker script which we will use later on.
Okay. Let's install blead perl.
I usually install my testing perl in the home directory of a non-privileged user account.
$ mkdir -p blead/bin
$ mkdir -p build/bleadperl
$ cd build/bleadperl
$ rsync -avz rsync://ftp.linux.activestate.com/perl-current/
This will pull blead perl source down to the current directory. Then run
Installation prefix to use? (~name ok) [/usr/local]
Then compile, run the testsuite and install
$ make && make test && make install
Assuming everything went okay we should have blead perl installed under
$ export APPDATA=/home/chris/blead/
Setting APPDATA forces CPANPLUS to locate its
Would you like me to configure as much as possible automatically? [yes] no
CPAN build and cache directory? [/home/chris/.cpan]
Policy on building prerequisites (follow, ask or ignore)? [ask] follow
Parameters for the 'make install' command?
Your choice:  UNINST=1
Parameters for the './Build install' command?
Your choice:  --uninst 1
Okay, cpan is configured. Let's install a few required modules:
cpan> install YAML
cpan> install LWP
cpan> install Test::Reporter
Okay, we are finished with cpan. Let's configure cpanp ( again only changes to the defaults are shown ):
CPAN Terminal> s reconfigure
Section to configure: : 1
Type of configuration file : 1
Section to configure: : 2
Where can I find your 'sudo' utility? (Enter a single space to disable) [Path to your 'sudo'] <space>
Section to configure: : 3
Section to configure: : 4
Which email address shall I use? : 3
Email address: email@example.com
Section to configure: : 5
Should I be verbose? [y/N]: y
Follow prerequisites? : 2
Report test results? [y/N]: y
Shall I check module signatures? [Y/n]: n
Section to configure: : 6
make flags? UNINST=1
Build.PL and Build flags? uninst=1
Section to configure: 9
CPAN Terminal> quit
If you need to configure cpanp to send test reports through a particular mail relay open up an editor and edit the file:
Alter the line $conf->set_conf( cpantest_mx => '' ); to specify the dns name or IP address of a suitable relay. Save the file.
Right, back into cpanp and we'll install CPAN::YACSmoke. The current development release of CPAN::YACSmoke won't use our hacked
CPAN Terminal> i http://gumbynet.org.uk/smoke/CPAN-YACSmoke-0.03_07.tar.gz
CPAN Terminal> quit
That's it. We're ready to smoke.
$ mkdir tmp && cd tmp
$ minismoker --debug --perl
And we are smoking!