in reply to Re^8: Installing File::Repl on a Mac possible?
in thread Installing File::Repl on a Mac possible?

I assumed the module got installed on the smoke testers' machines.

Yes - it would be handy if someone could clarify this.
I think the problem in getting File::Repl to actually install on Linux was specific to the cpan utility, so another thing to consider is that perhaps the smokers aren't using that utility at all.

Cheers,
Rob
  • Comment on Re^9: Installing File::Repl on a Mac possible?

Replies are listed 'Best First'.
Re^10: Installing File::Repl on a Mac possible?
by marto (Cardinal) on Sep 10, 2018 at 20:40 UTC

    Interesting, so I set up cpan as per http://wiki.cpantesters.org/wiki/QuickStart, and did test File::Repl, (I actually ran this a couple of times to play around with it). Here's an extract of what happened, firstly, Win32::API is unsurprisingly unsupported under Linux :)

    cpan[1]> test File::Repl ...some stuff redacted... Configuring D/DR/DROBERTS/File-Repl-2.3.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Win32::API 0 not found. Generating a Unix-style Makefile Writing Makefile for File::Repl Writing MYMETA.yml and MYMETA.json (/home/marto/perl5/perlbrew/perls/perl-5.26.1/bin/perl Makefile.PL exi +ted with 0) CPAN::Reporter: Makefile.PL result is 'pass', No errors. DROBERTS/File-Repl-2.3.tar.gz /home/marto/perl5/perlbrew/perls/perl-5.26.1/bin/perl Makefile.PL -- + OK Running make for D/DR/DROBERTS/File-Repl-2.3.tar.gz ---- Unsatisfied dependencies detected during ---- ---- DROBERTS/File-Repl-2.3.tar.gz ---- Win32::API [requires] Running test for module 'Win32::API' Checksum for /home/marto/.cpan/sources/authors/id/B/BU/BULKDD/Win32/Wi +n32-API-0.84.tar.gz ok Configuring B/BU/BULKDD/Win32/Win32-API-0.84.tar.gz with Makefile.PL OS unsupported (/home/marto/perl5/perlbrew/perls/perl-5.26.1/bin/perl Makefile.PL exi +ted with 65280) CPAN::Reporter: Makefile.PL result is 'na', This platform is not suppo +rted. CPAN::Reporter: preparing a CPAN Testers report for Win32-API-0.84 Do you want to review or edit the test report? (yes/no) [no] no Do you want to send the report? (yes/no) [no] no

    Obviously I didn't want to pollute the test matrix for this module, moving on....

    Running make for D/DR/DROBERTS/File-Repl-2.3.tar.gz Warning: Prerequisite 'Win32::API => 0' for 'DROBERTS/File-Repl-2.3.ta +r.gz' failed when processing 'BULKDD/Win32/Win32-API-0.84.tar.gz' wit +h 'writemakefile => NO '/home/marto/perl5/perlbrew/perls/perl-5.26.1/ +bin/perl Makefile.PL' returned status 65280'. Continuing, but chances + to succeed are limited. ... lots of stuff redacted ... all tests completed OK (/usr/bin/make test exited with 0) CPAN::Reporter: Test result is 'pass', 'make test' no errors. CPAN::Reporter: preparing a CPAN Testers report for File-Repl-2.3 CPAN::Reporter: this appears to be a duplicate report for the test pha +se: PASS File-Repl-2.3 x86_64-linux 4.5.7-std-3 Test report will not be sent. DROBERTS/File-Repl-2.3.tar.gz Tests succeeded but one dependency not OK (Win32::API) DROBERTS/File-Repl-2.3.tar.gz [dependencies] -- NA Failed during this command: BULKDD/Win32/Win32-API-0.84.tar.gz : writemakefile NO '/hom +e/marto/perl5/perlbrew/perls/perl-5.26.1/bin/perl Makefile.PL' return +ed status 65280 DROBERTS/File-Repl-2.3.tar.gz : make_test NO one depen +dency not OK (Win32::API)

    Ignoring the fact that I'd been playing around with this, each run CPAN::Reporter marks File::Repl as a 'Pass', since it's test suite passed. The test suite won't drag in Win32::API (https://metacpan.org/source/DROBERTS/File-Repl-2.3/Repl.pm#L157). However, actually running an install for the module fails, as expected.

    So based purely on the bare minimum config as per the wiki linked above, it gets a 'pass'. Delving deeper into the cpantesters/smoking config is on my to do list.

    I've made minimal changes to the Makefile.PL to get it working. If you have time could you please test it on Windows and let me know if it works? I'll submit a patch.

      ++ for thinking of cygwin as well; I missed that in mine. Your Makefile.PL worked for me in Windows (non-cygwin)... but that's because Strawberry came with File::HomeDir pre-installed. You might want to add that to the dependencies, too.

        Updated, thanks for the test and the extra set of eyes :) Sorry, I hadn't seen your fix. Unrelated, rt://108370 is interesting. issue raised.

Re^10: Installing File::Repl on a Mac possible?
by marto (Cardinal) on Sep 10, 2018 at 14:12 UTC

    As far as I can tell, anything sent to cpan testers is generated by specially configuring cpan,cpanp or cpanm to do so. This happens when you then go and install a module using your tool of choice. People can also choose to smoke test modules, configuring cpan or cpanp to go ahead and just automatically download and test modules, reporting as it goes.

    Update: So the reports for this look weird, if I get the time later I'll take a look later if I don't forget.