Skip Menu |

This queue is for tickets about the Module-Install-XSUtil CPAN distribution.

Report information
The Basics
Id: 48321
Status: resolved
Priority: 0/
Queue: Module-Install-XSUtil

People
Owner: Nobody in particular
Requestors: taro.nishino [...] gmail.com
Cc:
AdminCc:

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



Subject: 01_example.t is insufficient under MSWIN.
Hi Goro, Unfortunately 01_example.t fails under MSWIN, as the following shows: # Failed test at t/01_example.t line 43. # 'blib/arch/auto/Foo/foo.h' # doesn't match '(?msix:Foo\\foo\.h)' # Failed test at t/01_example.t line 44. # 'blib/arch/auto/Foo/foo/bar.h' # doesn't match '(?msix:Foo\\bar\.h)' # Failed test at t/01_example.t line 45. # 'blib/arch/auto/Foo/foo/baz.h' # doesn't match '(?msix:Foo\\foo\\baz\.h)' Could you apply the following patch? --- 01_example.t.orig Thu Jul 30 21:20:00 2009 +++ 01_example.t Thu Jul 30 21:36:35 2009 @@ -27,7 +27,7 @@ my %h_files; find sub{ - $h_files{$_} = $File::Find::name if / \.h \z/xms; + $h_files{$_} = File::Spec->canonpath( $File::Find::name ) if / \.h \z/xms; }, qw(blib); is scalar(keys %h_files), 3, 'two head files are installed'; Best regards, Taro Nishino
Subject: Re: [rt.cpan.org #48321] Module-Install-XSUtil-0.06 fails
Date: Tue, 04 Aug 2009 14:26:39 +0900
To: bug-Module-Install-XSUtil [...] rt.cpan.org
From: Taro Nishino <taro.nishino [...] gmail.com>
Hi Goro, Unfortunately Module-Install-XSUtil-0.06 also fails as follows: t/01_example.t .. Unrecognized escape \M passed through in regex; marked by <-- HERE in m/\A (.+ XS\M <-- HERE RO\Compat) .+ \.h \z/ at C:\temp\Module-Install-X SUtil-0.06\lib/Module/Install/XSUtil.pm line 189. Unrecognized escape \M passed through in regex; marked by <-- HERE in m/\A (.+ X S\M <-- HERE RO\Compat) .+ (\w+) \. (?: lib | dll | a) \z/ at C:\temp\Module-Ins tall-XSUtil-0.06\lib/Module/Install/XSUtil.pm line 190. t/01_example.t .. 1/? In addition, Makefile of "example" directory is remarkable as follows(MakeMaker Parameters only): # MakeMaker Parameters: # ABSTRACT => q[A testing module for Module::Install::XSUtil] # AUTHOR => q[Goro Fuji (gfx) <gfuji(at)cpan.org>.] # C => [q[src/bar.c], q[src/Foo.c]] # CCFLAGS => q[-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DUSE_PPPORT -Wall -Wextra] # DEFINE => q[-DFOO_OK] # DIR => [] # DISTNAME => q[Foo] # DL_FUNCS => { $(NAME)=>[q[boot_$(NAME)]] } # FUNCLIST => [q[foo_is_ok], q[bar_is_ok]] # INC => q["-IC:\Perl\site\lib\auto\XS\MRO\Compat" "-I." "-Iinclude" "-I."] # LIBS => q[-LC:\Perl\site\lib\auto\XS\MRO\Compat -lt] # NAME => q[Foo] # NO_META => q[1] # OBJECT => q[$(O_FILES)] # PL_FILES => { } # PREREQ_PM => { XSLoader=>q[0.08], ExtUtils::ParseXS=>q[2.2], ExtUtils::MakeMaker=>q[6.42], Devel::PPPort=>q[3.19], XS::MRO::Compat=>q [0.12] } # VERSION => q[1.23] # XS => { src/Foo.xs=>q[src/Foo.c] } # clean => { FILES=>q[ppport.h] } # dist => { PREOP=>q[$(PERL) -I. "-MModule::Install::Admin" -e "dist_preop(q($(DISTVNAME)))"] } # realclean => { FILES=>q[MYMETA.yml] } As you know, it's only natural that the error should occur. In the above, you should be aware of "-Wall -Wextra" despite MS VC++. This is because you overuse function "defined". That is, in even MS, gccversion is defined as "". Don't get me wrong. With these in mind, including the issue of "DL_FUNCS", I wrote a patch. Could you apply the attached patch? Best regards, Taro Nishino
Download XSUtil.pm.diff.txt
application/octet-stream 1k

Message body not shown because it is not plain text.

Hi, Taro. Many thanks for your report. I applied your patch and uploaded it as 0.07. Regards, -- Goro Fuji (gfx) GFUJI at CPAN.org