Skip Menu |

This queue is for tickets about the Test-Trap CPAN distribution.

Report information
The Basics
Id: 123651
Status: open
Priority: 0/
Queue: Test-Trap

People
Owner: Nobody in particular
Requestors: marc-philip.werner [...] sap.com
Cc:
AdminCc:

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



Subject: Test-Trap-v.0.3.3 does not build on Windows
Date: Fri, 17 Nov 2017 10:16:37 +0000
To: "bug-Test-Trap [...] rt.cpan.org" <bug-Test-Trap [...] rt.cpan.org>
From: "Werner, Marc-Philip" <marc-philip.werner [...] sap.com>
At least not with Visual Studio 2010... Hi, Perl is 5.26.1. Here’s the error: cp lib/Test/Trap/Builder/SystemSafe.pm blib\lib\Test\Trap\Builder\SystemSafe.pm "C:\SAPDevelop\hmexternals\perl\gen\out\bin\perl" "-Iblib\arch" "-Iblib\lib" t/08-fork.PL t/08-fork.t Can't open perl script "t": Permission denied NMAKE : fatal error U1077: 'C:\SAPDevelop\hmexternals\perl\gen\out\bin\perl.EXE' : return code '0xd' Stop. Makefile.PL is the problem. # Note: this file was auto-generated by Module::Build::Compat version 0.4224 require 5.006002; use ExtUtils::MakeMaker; WriteMakefile ( 'VERSION_FROM' => 'lib/Test/Trap.pm', 'INSTALLDIRS' => 'site', 'EXE_FILES' => [], 'PREREQ_PM' => { 'version' => 0, 'File::Temp' => 0, 'Test::Tester' => '0.107', 'warnings' => 0, 'Exporter' => 0, 'lib' => 0, 'Test::Builder' => 0, 'base' => 0, 'Test::More' => 0, 'constant' => 0, 'Carp' => 0, 'strict' => 0, 'IO::Handle' => 0, 'Data::Dump' => 0 }, 'PL_FILES' => { 't\08-fork.PL' => 't\08-fork.t', <<<< changed ‚/’ to ‚\’ 't\11-systemsafe-basic.PL' => 't\11-systemsafe-basic.t' <<<< changed ‚/’ to ‚\’ }, 'NAME' => 'Test::Trap' ) ; Regards from Berlin! Marc-Philip
Subject: Re: [rt.cpan.org #123651] Test-Trap-v.0.3.3 does not build on Windows
Date: Tue, 28 Nov 2017 00:05:17 +0100
To: bug-Test-Trap [...] rt.cpan.org
From: The Sidhekin <sidhekin [...] gmail.com>
I keep meaning to look at this, and life keeps interfering. I'll get to it, but possibly not this week either. Now, a quick analysis: It would seem that Module::Build::Compat generates a "traditional" Makefile.PL without taking steps to make the PL_FILES/PL_files paths platform independent (can't blame it), and (at least your version of) ExtUtils::MakeMaker generates a Makefile without taking steps to convert the PL_FILES paths to the form expected by the current platform (dunno if I want to blame it), and at least your make utility (Visual Studio 2010's?) fails to handle unixy paths. Or so I would guess. I'm going to have to check that. Also, I'm not sure where to fix things. I could edit Makefile.PL manually, to use File::Spec->catfile() to generate the PL_FILES paths (EU:MM depends on File::Spec, so I have no qualms about adding that dependency). But if I could determine who should be responsible for handling these paths, I'd rather fix it there, and leave my Makefile.PL autogenerated. Oh, and an observation: Every. Single. CPAN Testers report for Test-Trap-v0.3.3 from MSWin32 uses Build.PL rather than Makefile.PL. I can't deny being disappointed. Eirik
From: marc-philip.werner [...] sap.com
On Mon Nov 27 18:05:36 2017, sidhekin@gmail.com wrote: Show quoted text
> Oh, and an observation: Every. Single. CPAN Testers report for > Test-Trap-v0.3.3 from MSWin32 uses Build.PL rather than Makefile.PL. I
I can confirm that the build succeeds with Build.PL. But considering the communities overall mood, Makefile.PL is favorable. Regards Marc-Philip