Skip Menu |

This queue is for tickets about the Pod-Perldoc CPAN distribution.

Report information
The Basics
Id: 116551
Status: patched
Priority: 0/
Queue: Pod-Perldoc

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

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



Subject: Not installed under strawberry perl
Hi, here is the partial log: cp lib/Pod/Perldoc/ToMan.pm blib\lib\Pod\Perldoc\ToMan.pm "D:\devel\perl32\perl\bin\perl.exe" -MExtUtils::Command -e cp -- perldoc blib\script\perldoc pl2bat.bat blib\script\perldoc "D:\devel\perl32\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/*/*.t t/00_load.t ............... ok t/01_about_verbose.t ...... ok t/02_module_pod_output.t .. 1/7 # Failed test 'got expected output in STDOUT' # at t/02_module_pod_output.t line 40. # undef # doesn't match '(?^:Look up Perl documentation)' # Failed test 'got expected output in STDERR' # at t/02_module_pod_output.t line 73. # ''C:/Users/zdm/AppData/Local/Temp/.cpanm/work/1469722312.8552/Pod-Perldoc-3.26/perldoc' is not recognized as an internal or external command, # operable program or batch file. # ' # doesn't match '(?^:No documentation)' # Looks like you failed 2 tests of 7. t/02_module_pod_output.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/7 subtests t/man/_get_columns.t ...... ok t/pod.t ................... skipped: Pod tests not required for installation. Test Summary Report ------------------- t/02_module_pod_output.t (Wstat: 512 Tests: 7 Failed: 2) Failed tests: 3, 7 Non-zero exit status: 2 Files=5, Tests=56, 2 wallclock secs ( 0.08 usr + 0.05 sys = 0.12 CPU) Result: FAIL Failed 1/5 test programs. 2/56 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' FAIL ! Installing M/MA/MALLEN/Pod-Perldoc-3.26.tar.gz failed. See C:\Users\zdm\AppData\Local\Temp\.cpanm\work\1469722312.8552\build.log for details. Retry with --force to force install it.
On Thu Jul 28 12:24:23 2016, ZDM wrote: Show quoted text
> t/02_module_pod_output.t .. 1/7 > # Failed test 'got expected output in STDOUT' > # at t/02_module_pod_output.t line 40. > # undef > # doesn't match '(?^:Look up Perl documentation)' > > # Failed test 'got expected output in STDERR' > # at t/02_module_pod_output.t line 73. > # > ''C:/Users/zdm/AppData/Local/Temp/.cpanm/work/1469722312.8552/Pod- > Perldoc-3.26/perldoc' is not recognized as an internal or external > command, > # operable program or batch file.
Hi - Thanks for the report. I will look into the failure. In the meantime you can install by disabling tests on cpanm by supplying the '-n' flag on the command line.
Subject: [rt.cpan.org #116551] Why latest version does not work on the Windows platform
Date: Fri, 29 Jul 2016 11:11:02 -0700
To: bug-Pod-Perldoc [...] rt.cpan.org
From: Mark Solinski <coach.marks6i [...] gmail.com>
I too experienced the problem on the Windows platform with a Strawberry Perl distribution. On the Windows platform, the lines like: $pid = open3(\*CHLD_IN,\*CHLD_OUT1,\*CHLD_ERR1,$perldoc." ".$good_podfile); fails to execute the command: $perldoc." ".$good_podfile because Windows will not recognize $perldoc as a script. On my system, if I wrote the lines like this: $pid = open3(\*CHLD_IN,\*CHLD_OUT1,\*CHLD_ERR1,"perl ".$perldoc." ".$good_podfile); work because perl.exe is an executable (which Windows does recognize) and its first argument is a script. I also copied, from my Windows Perl distribution, the Windows version of the perldoc script (perldoc.bat), which Windows does recognize as a script because of the (.bat) extension, into the test directory and without modification of the test, it runs successfully as well. Mark Solinski
On Fri Jul 29 14:11:14 2016, coach.marks6i@gmail.com wrote: Show quoted text
> On my system, if I wrote the lines like this: > $pid = open3(\*CHLD_IN,\*CHLD_OUT1,\*CHLD_ERR1,"perl ".$perldoc." > ".$good_podfile); > work because perl.exe is an executable (which Windows does recognize) and > its > first argument is a script.
Hey thanks for this suggestion I think this is what I'll do. I forgot I had committed this "experimental" test and then didn't remove it when I released the update.
On Fri Jul 29 14:11:14 2016, coach.marks6i@gmail.com wrote: Show quoted text
> On the Windows platform, the lines like: > $pid = open3(\*CHLD_IN,\*CHLD_OUT1,\*CHLD_ERR1,$perldoc." ".$good_podfile); > > fails to execute the command: $perldoc." ".$good_podfile > because Windows will not recognize $perldoc as a script. > > On my system, if I wrote the lines like this: > $pid = open3(\*CHLD_IN,\*CHLD_OUT1,\*CHLD_ERR1,"perl ".$perldoc." > ".$good_podfile); > work because perl.exe is an executable (which Windows does recognize) and > its > first argument is a script.
Released 3.26_01 to CPAN which should fix this problem using your suggestion Mark. If CPANTS validates it works, I will spin up a "for real" release. Thanks.