[Module-build-general] Fwd: Module::Build Win32 patches
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-02-16 18:11:10
|
From: "James Freeman" <jfr...@ta...>
Date: Sun Feb 16, 2003 11:59:39 AM US/Central
To: <ke...@ma...>
Subject: Module::Build Win32 patches
Reply-To: <jfr...@ta...>
Hi Ken
Module::Build is not very Win32 friendly. I have patched the sources of
all
the Modules to use more portable code. Mainly this is not using ./Build
as
the shell command but rather perl /path/to/Build as set by file spec.
Fixed
bareword error Cwd::cwd as well which was causing errors. Now a little
less
broken but failure to write a .packlist makes uninstallation difficult.
Another bug is that even though I incremented the $VERSION nmake install
fails to recognise this and do a reinstall. Here are the highlights of
where
it is currently. I have attached a tar.gz of the patched distribution
for
you to run diff over.
cheers
Dr James Freeman
C:\tmp\Module-Build-0.15>perl Makefile.PL
C:\Perl\bin\Perl.exe Build.PL
Checking whether your kit is complete...
Looks good
Creating new 'Build' script for 'Module-Build' version '0.16'
C:\tmp\Module-Build-0.15>type Makefile
# PREREQ_PM => { Test=>q[0], ExtUtils::Install=>q[0], Config=>q[0],
File::Ba
sename=>q[0], File::Spec=>q[0], Cwd=>q[0], Data::Dumper=>q[0],
File::Compare=>q[
0], File::Find=>q[0], File::Copy=>q[0], File::Path=>q[0],
ExtUtils::Install=>q[0
.3], ExtUtils::ParseXS=>q[0], Archive::Tar=>q[0.22], YAML=>q[0.35] }
all :
perl C:\tmp\Module-Build-0.15\Build
realclean :
perl C:\tmp\Module-Build-0.15\Build realclean
del C:\tmp\Module-Build-0.15\Makefile /q /f
test :
perl C:\tmp\Module-Build-0.15\Build test
.DEFAULT :
perl C:\tmp\Module-Build-0.15\Build $@
.PHONY : install manifest
C:\tmp\Module-Build-0.15>nmake
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
perl C:\tmp\Module-Build-0.15\Build
lib/Module/Build.pm -> blib\lib/Module/Build.pm
lib/Module/Build/Base.pm -> blib\lib/Module/Build/Base.pm
lib/Module/Build/Compat.pm -> blib\lib/Module/Build/Compat.pm
lib/Module/Build/Platform/Amiga.pm ->
blib\lib/Module/Build/Platform/Amiga.pm
lib/Module/Build/Platform/darwin.pm ->
blib\lib/Module/Build/Platform/darwin.pm
lib/Module/Build/Platform/Default.pm ->
blib\lib/Module/Build/Platform/Default.p
m
lib/Module/Build/Platform/EBCDIC.pm ->
blib\lib/Module/Build/Platform/EBCDIC.pm
lib/Module/Build/Platform/MacOS.pm ->
blib\lib/Module/Build/Platform/MacOS.pm
lib/Module/Build/Platform/MPEiX.pm ->
blib\lib/Module/Build/Platform/MPEiX.pm
lib/Module/Build/Platform/RiscOS.pm ->
blib\lib/Module/Build/Platform/RiscOS.pm
lib/Module/Build/Platform/Unix.pm ->
blib\lib/Module/Build/Platform/Unix.pm
lib/Module/Build/Platform/VMS.pm ->
blib\lib/Module/Build/Platform/VMS.pm
lib/Module/Build/Platform/VOS.pm ->
blib\lib/Module/Build/Platform/VOS.pm
lib/Module/Build/Platform/Windows.pm ->
blib\lib/Module/Build/Platform/Windows.p
m
C:\tmp\Module-Build-0.15>nmake test
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
perl C:\tmp\Module-Build-0.15\Build test
t/basic.........ok
t/runthrough....ok
t/xs............ok 3/7'cl' is not recognized as an internal or external
command,
operable program or batch file.
t/xs............NOK 4'cl' is not recognized as an internal or external
command,
operable program or batch file.
t/xs............NOK 5Can't unlink file lib/XSTest.c: Permission denied
at
blib\l
ib/Module/Build/Base.pm line 935
t/xs............FAILED tests 4-6
Failed 3/7 tests, 57.14% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
------------------------------------------------------------------------
----
---
t/xs.t 7 3 42.86% 4-6
Failed 1/3 test scripts, 66.67% okay. 3/30 subtests failed, 90.00% okay.
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code
'0xff'
Stop.
C:\tmp\Module-Build-0.15>nmake install
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
'install' is up-to-date
C:\tmp\Module-Build-0.15>perl Build install
Useless use of a variable in void context at
C:/Perl/lib/ExtUtils/Install.pm
lin
e 266.
Installing C:\Perl\site\lib\Module\Build.pm
Skipping C:\Perl\site\lib\Module\Build\Base.pm (unchanged)
Installing C:\Perl\site\lib\Module\Build\Compat.pm
Skipping C:\Perl\site\lib\Module\Build\Platform\Amiga.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\darwin.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\Default.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\EBCDIC.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\MacOS.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\MPEiX.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\RiscOS.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\Unix.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\VMS.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\VOS.pm (unchanged)
Skipping C:\Perl\site\lib\Module\Build\Platform\Windows.pm (unchanged)
C:\tmp\Module-Build-0.15>nmake realclean
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.
perl C:\tmp\Module-Build-0.15\Build realclean
Deleting blib
Deleting _build
Deleting Build
del C:\tmp\Module-Build-0.15\Makefile /q /f
C:\tmp\Module-Build-0.15>
|