Hi KMX-

Thanks for the reply.  I'll be sure to test the
latest SPP and send any CPAN::Testers problems
there.  Sometimes it is difficult to tell where
to start with these multi-X issues where X is
modules, distributions, projects,...

--Chris

On 11/21/2011 4:08 AM, kmx wrote:
On 20.11.2011 19:58, chm wrote:
It would be very convenient if Strawberry Perl
(portable and regular editions) included modules
needed for CPAN Testers submissions.

Whenever I set up a new strawberry perl portable
(SPP) sandbox for testing, I always have to
redo the install and update to support the new
metabase and CPAN::Reporter. One issue with
running CPAN::Reporter for test reports with SPP
is that the default directory seems to be set to
C:\.cpanreporter rather than a folder in the SPP
root directory.

Cheers,
Chris


Hi Chris,

there are basically 2 kind of issues

1/ troubles with Strawberry Portable Perl (SPP)
2/ bugs in CPAN::Reporter

As for 1/ there were a lot of changes during the last week(s) in SPP;
please take the latest beta from
http://strawberryperl.com/package/kmx/p5.14.2.1-RC/ for your testing (I
know that you prefer to have 5.12.x but we are currently focused only on
fixing 5.14 builds).

In the latest SPP the issue with C:\.cpanreporter should not happen any
more as in SPP the "pseudo" home directory is located in
"<portable_perl_root>\data" directory (providing that the module in
question uses File::HomeDir - which is the case of CPAN::Reporter).

The following works for me with the latest beta of SPP:

Let us have portable strawberry perl in z:\portable4testing

z:\portable4testing> cpan -fi Task::CPAN::Reporter

z:\portable4testing> mkdir z:\portable4testing\data\.cpanreporter\

z:\portable4testing> metabase-profile -o
z:\portable4testing\data\.cpanreporter\metabase_id.json

z:\portable4testing> cpan
cpan> o conf init test_report
cpan> o conf commit
cpan> q


Now the troubles marked 2/ (CPAN::Reporter related)

*/ there are some failing tests - on the latest SPP 5.14.2.1-beta
t/03_config_file.t + t/70_darwin_move_config.t - which is the reason why
you need "-fi" for installation

*/ in theory it should be enough to run "cpan> o conf init test_report"
just after Task::CPAN::Reporter installation (it calls
"metabase-profile" command automatically) however on my Windows box it
stucks at this point:

Would you like to run 'metabase-profile' now to create
'Z:\portable4testing\data\.cpanreporter\metabase_id.json'? [y]
Running [Z:\PORTAB~1\perl\bin\metabase-profile.BAT --output
Z:\portable4testing\data\.cpanreporter\metabase_id.json --email
k...@cpan.org --secret 123456789]...
Enter full name:

... where I am not able to enter the requested full name. Which is IMHO
an issue in CPAN::Reporter not SPP.

This is the reason for creating
z:\portable4testing\data\.cpanreporter\metabase_id.json manually before
running "cpan> o conf init test_report".

*/ the good news is that CPAN::Reporter does use File::HomeDir (not
$ENV{HOME} or $ENV{USERPROFILE}) which makes it portable-perl-friendly

To sum up: if you take the latest Strawberry Portable Perl beta it
should "somehow" work + I might be a good idea to report remaining
CPAN::Reporter issues to proper place.

--
kmx


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1411 / Virus Database: 2092/4028 - Release Date: 11/20/11



Reply via email to