2011-03-14 17-53:

1) See later:
==
sha1.c: In function 'sha_transform':
sha1.c:146: warning: right shift count >= width of type
boot.c: In function 'main':
boot.c:123: warning: passing argument 3 of 'spawnvpe' from incompatible pointer type
==

2) See later:

cpanp i Getopt::ArgvFile
cpanp i Module::ScanDeps

---------

HowTo: Strawberry Perl v5.12.3 x64 and PAR::Packer

After run:
===
cpanp i PAR-Packer
===

===
. . .
t/resolvepathes.t .. ok
t/use1.t ........... ok
t/use2.t ........... ok
All tests successful.
Files=10, Tests=43, 1 wallclock secs ( 0.06 usr + 0.08 sys = 0.14 CPU)
Result: PASS
Running [C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\bin\cpanp-run-perl C:\strawberry\cpanplus\5.12.3\build\Module-ScanDeps-1.02\Makefile.PL]...
Checking if your kit is complete...
Looks good
Writing Makefile for Module::ScanDeps
Running [C:\STRAWB~2\c\bin\dmake.EXE test UNINST=1]...
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t
t/0-pod.t ....................................... skipped: Test::Pod 1.00 required for testing POD
t/1-static_functional_interface_real.t .......... ok
t/10-case-insensitive-keys.t .................... ok
t/11-finds-shared-lib.t ......................... ok
t/12-ScanFileRE.t ............................... ok
t/13-static_prefork_test.t ...................... skipped: This test requires prefork.pm which is not installed. Skipping.
t/14-scan_chunk.t ............................... ok
0
Couldn't retrieve data from file deps_cache.dat. Building new cache.
t/14-static_functional_cached.t ................. ok
t/16-scan_line.t ................................ ok
t/17-private_methods.t .......................... ok
t/2-static_functional_interface_fake.t .......... ok
t/3-static_oo_interface_real.t .................. ok
t/4-static_functional_interface_options_fake.t .. ok
t/5-pluggable_fake.t ............................ ok
t/6-file-glob.t ................................. ok
t/7-check-dynaloader.t .......................... ok
t/8-check_duplicated_entries.t .................. ok
t/9-check_path_to_inc_name.t .................... ok
All tests successful.
Files=18, Tests=113540, 465 wallclock secs (13.75 usr + 0.59 sys = 14.34 CPU)
Result: PASS
[ERROR] MAKE failed: cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm
cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm
cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm
cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm
cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm
cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm
cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm
cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm
cp lib/pp.pm blib\lib\pp.pm
cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm
C:\strawberry\perl\bin\perl.exe sha1.c.PL
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfie
lds -DPERL_MSVCRT_READFIX -I"C:\strawberry\perl\lib\CORE" -DLOAD_MY_LIBGCC -DPARL_EXE=\"parl.exe\" -s -O2 main.c
C:\strawberry\perl\bin\perl.exe file2c.pl -s ..\script\par.pl -l my_par_pl.c load_my_par_pl
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfie
lds -DPERL_MSVCRT_READFIX -I"C:\strawberry\perl\lib\CORE" -DLOAD_MY_LIBGCC -DPARL_EXE=\"parl.exe\" -s -O2 my_par_pl.c
g++ main.o my_par_pl.o win32.coff -s -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" C:\strawberry\perl\lib\CORE\libperl512.a C:\strawberry\c\x86_
64-w64-mingw32\lib\libmoldname.a C:\strawberry\c\x86_64-w64-mingw32\lib\libkernel32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libuser32.a C:\strawberry\c\x86_64-
w64-mingw32\lib\libgdi32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libwinspool.a C:\strawberry\c\x86_64-w64-mingw32\lib\libcomdlg32.a C:\strawberry\c\x86_64-w64-
mingw32\lib\libadvapi32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libshell32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libole32.a C:\strawberry\c\x86_64-w64-mingw
32\lib\liboleaut32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libnetapi32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libuuid.a C:\strawberry\c\x86_64-w64-mingw32\li
b\libws2_32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libmpr.a C:\strawberry\c\x86_64-w64-mingw32\lib\libwinmm.a C:\strawberry\c\x86_64-w64-mingw32\lib\libversio
n.a C:\strawberry\c\x86_64-w64-mingw32\lib\libodbc32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libodbccp32.a C:\strawberry\c\x86_64-w64-mingw32\lib\libcomctl32.a
-o par.exe
win32.coff: file not recognized: File format not recognized
collect2: ld returned 1 exit status
dmake: Error code 129, while making 'par.exe'
dmake.EXE: Error code 255, while making 'subdirs'

[ERROR] Unable to create a new distribution object for 'PAR::Packer' -- cannot continue

*** Install log written to:
C:\strawberry\cpanplus\install-logs\PAR-Packer-1.009-1307946827.log

Error installing 'PAR::Packer'
Problem installing one or more modules
===

See:

https://rt.cpan.org/Public/Bug/Display.html?id=57273

For fix this issue:
==
win32.coff: file not recognized: File format not recognized
==

cpanp i Getopt::ArgvFile
cpanp i Module::ScanDeps

cpanp z PAR-Packer

Go to:
C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009

md C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr.Orig
move C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr\win32.coff C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr.Orig\win32.coff
move C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr\win32.obj C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr.Orig\win32.obj
move C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr\win32.res C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr.Orig\win32.res

See:

http://news.tcx.org.uk/msg/4D93C148.1060301@znix.com

===
. . .
The zip

http://www.wxperl.co.uk/ppamd64_resource.zip

Contains objects that can be unzipped into the current PAR::Packer
source in the directory myldr. You want the contained win32.coff /
win32.obj to replace the originals.

Should then compile OK on Strawberry.
. . .
===

Download:

http://www.wxperl.co.uk/ppamd64_resource.zip

Unpack from "ppamd64_resource.zip"
==
win32.coff
win32.obj
win32.res
win32.manifest
win32.rc
win32.ico
==
to
C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr

Run
cpanp i .

Screenshot:
===
Installing PAR::Packer (1.009) A
Running [C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\bin\cpanp-run-perl C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\Makefile.PL]...
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at C:/strawberry/perl/lib/ExtUtils/MakeMaker.pm line 202
Writing Makefile for par.exe
Writing Makefile for PAR::Packer
Running [C:\STRAWB~2\c\bin\dmake.EXE test UNINST=1]...
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/00-pod.t t/10-parl-generation.t t/20-pp.t t/3
0-current_exec.t t/40-packer_cd_option.t t/90-rt59710.t
t/00-pod.t ............... skipped: Set environment variable PERL_TEST_POD=1 to test POD
t/10-parl-generation.t ... ok
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.e
xe tool for more detail.
C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\blib\script/pp: Cannot open hello.exe for reading: No such file or directory at C:\strawberry\cpanplus\5.12
.3\build\PAR-Packer-1.009\blib\lib/PAR/Packer.pm line 1172.

# Failed test 'pp_gui_tests
# amsg572: sub pp_gui_tests cannot system pp --gui --icon hi.ico -o hello.exe hello.pl:No such file or directory:
# '
# at automated_pp_test.pl line 8445.
# Looks like you failed 1 test of 34.
t/20-pp.t ................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/34 subtests
# Please wait
t/30-current_exec.t ...... ok
t/40-packer_cd_option.t .. ok
t/90-rt59710.t ........... ok

Test Summary Report
-------------------
t/20-pp.t (Wstat: 256 Tests: 34 Failed: 1)
Failed test: 32
Non-zero exit status: 1
Files=6, Tests=74, 2506 wallclock secs ( 0.09 usr + 0.05 sys = 0.14 CPU)
Result: FAIL
Failed 1/6 test programs. 1/74 subtests failed.
dmake.EXE: Error code 255, while making 'test_dynamic'

The tests for 'PAR::Packer' failed. Would you like me to proceed anyway or should we abort?

Proceed anyway? [y/N]: y
*** Install log written to:
C:\strawberry\cpanplus\install-logs\PAR-Packer-1.009-1307954507.log

Module 'PAR::Packer' installed successfully
No errors installing all modules
===

P.S.

2011-03-14 17-53:

Sorry, this occured independent my patch ( i.e. before ( PAR-Packer-1.009-1307954507.log 13.06.2011 11:41) and after patch):
==
C:\strawberry\perl\bin\perl.exe file2c.pl -l -c 30000 C:\strawberry\perl\bin\libgcc_s_sjlj-1.dll my_libgcc.c load_my_libgcc
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfie
lds -DPERL_MSVCRT_READFIX -I"C:\strawberry\perl\lib\CORE" -DLOAD_MY_LIBGCC -DPARL_EXE=\"parl.exe\" -s -O2 boot.c
In file included from mktmpdir.h:85,
from mktmpdir.c:1,
from boot.c:3:
sha1.c: In function 'sha_transform':
sha1.c:146: warning: right shift count >= width of type
boot.c: In function 'main':
boot.c:123: warning: passing argument 3 of 'spawnvpe' from incompatible pointer type
==

P.P.S.

> Since this patch is meant for x64 only, please make it match against the environment variable PROCESSOR_ARCHITECTURE=x64 as well as the package name.

Not only: I'm simply "Turn off use win32.coff"

== PAR-Packer.yml ==
---
comment: |

PAR::Packer needs a patch to install in gcc4 Strawberry Perl x64 ( but patch Ok and for x86)

match:
distribution: |
^(?x:
.^ # never matches, only purpose is to let things align nicely
|RSCHUPP/PAR-Packer-1.009.tar.gz # Needs a patch to install.
)|
patches:
- "PAR-Packer-1.009.patch"

==

== PAR-Packer-1.009.patch ==

# Turn off use win32.coff
#
# To apply this patch:
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'applypatch' program with this patch file as input.
#
# If you do not have 'applypatch', it is part of the 'makepatch' package
# that you can fetch from the Comprehensive Perl Archive Network:
# http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
# In the above URL, 'x' should be 2 or higher.
#
# To apply this patch without the use of 'applypatch':
# STEP 1: Chdir to the source directory.
# STEP 2: Run the 'patch' program with this file as input.
#
#### End of Preamble ####

#### Patch data follows ####
diff -c "C:\strawberry\cpanplus -VVM0_--_PAR-Packer-1.009\myldr\Makefile.PL" "C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr\Makefile.PL"
Index: ./myldr/Makefile.PL
*** ./myldr/Makefile.PL Tue Mar 22 19:53:31 2011
--- ./myldr/Makefile.PL Tue Jun 14 16:49:32 2011
***************
*** 104,110 ****
$ccdebug = $debug ? '-g ' : '';
$lddebug = ($debug or $^O eq 'darwin') ? '' : '-s ';
$warn = $debug ? '-Wall -Wno-comments ' : '';
! $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';
$long_literal = '-l';
$mt_cmd = '-$(NOOP)';
} else {
--- 104,111 ----
$ccdebug = $debug ? '-g ' : '';
$lddebug = ($debug or $^O eq 'darwin') ? '' : '-s ';
$warn = $debug ? '-Wall -Wno-comments ' : '';
! $res = ''; # VVM
! # $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';
$long_literal = '-l';
$mt_cmd = '-$(NOOP)';
} else {
#### End of Patch data ####

#### ApplyPatch data follows ####
# Data version : 1.0
# Date generated : Tue Jun 14 16:59:06 2011
# Generated by : makepatch 2.04
# Recurse directories : Yes
# Excluded files : (\A|/).*\~\Z
# (\A|/).*\.a\Z
# (\A|/).*\.bak\Z
# (\A|/).*\.BAK\Z
# (\A|/).*\.elc\Z
# (\A|/).*\.exe\Z
# (\A|/).*\.gz\Z
# (\A|/).*\.ln\Z
# (\A|/).*\.o\Z
# (\A|/).*\.obj\Z
# (\A|/).*\.olb\Z
# (\A|/).*\.old\Z
# (\A|/).*\.orig\Z
# (\A|/).*\.rej\Z
# (\A|/).*\.so\Z
# (\A|/).*\.Z\Z
# (\A|/)\.del\-.*\Z
# (\A|/)\.make\.state\Z
# (\A|/)\.nse_depinfo\Z
# (\A|/)core\Z
# (\A|/)tags\Z
# (\A|/)TAGS\Z
# p "myldr/Makefile.PL" 10179 1308059372 0100666
#### End of ApplyPatch data ####

#### End of Patch kit [created: Tue Jun 14 16:59:06 2011] ####
#### Patch checksum: 56 2184 611 ####
#### Checksum: 74 2829 54096 ####
==

At this moment I'm run test:
==
C:\>cd C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009

C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009>dmake test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/00-po
d.t t/10-parl-generation.t t/20-pp.t t/30-current_exec.t t/40-packer_cd_option.t t/90-rt59710.t
t/00-pod.t ............... skipped: Set environment variable PERL_TEST_POD=1 to test POD
t/10-parl-generation.t ... ok
t/20-pp.t ................ ok
t/30-current_exec.t ...... # Please wait
t/30-current_exec.t ...... ok
t/40-packer_cd_option.t .. ok
t/90-rt59710.t ........... ok
All tests successful.
Files=6, Tests=74, 2560 wallclock secs ( 0.05 usr + 0.09 sys = 0.14 CPU)
Result: PASS

C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009>dmake.EXE test UNINST=1
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/00-po
d.t t/10-parl-generation.t t/20-pp.t t/30-current_exec.t t/40-packer_cd_option.t t/90-rt59710.t
t/00-pod.t ............... skipped: Set environment variable PERL_TEST_POD=1 to test POD
t/10-parl-generation.t ... ok
t/20-pp.t ................ ok
t/30-current_exec.t ...... # Please wait
t/30-current_exec.t ...... ok
t/40-packer_cd_option.t .. ok
t/90-rt59710.t ........... ok
All tests successful.
Files=6, Tests=74, 2547 wallclock secs ( 0.13 usr + 0.02 sys = 0.14 CPU)
Result: PASS

C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009>

==

2011-06-15 11-01:

Look like ok

2 комментария to “HowTo: Strawberry Perl v5.12.3 x64 and PAR::Packer”

  • Curtis Jewell:

    This one is good.

    Now if you can make this a distropref and patch combination, I’ll be able to use this when building 5.12.4 and 5.14.0 within the next few days.

    Install the applypatch package using ‘cpan JV/makepatch-2.04.tar.gz’, read http://search.cpan.org/~jv/makepatch-2.04/script/makepatch for how to create the patch type I like to use for this purpose, and then read http://search.cpan.org/~andk/CPAN-1.9600/lib/CPAN.pm#Configuration_for_individual_distributions_%28Distroprefs%29 in order to create the .yml file I’ll need in order to hook it in.

    Also see http://hg.curtisjewell.name/Perl-Dist-WiX/file/ef2ef60ce746/share/distroprefs for a few I’ve had to do.

    Since this patch is meant for x64 only, please make it match against the environment variable PROCESSOR_ARCHITECTURE=x64 as well as the package name.

    Thanks!

    • vvm:

      0)
      Sorry, this occure independent my patch ( i.e. before ( PAR-Packer-1.009-1307954507.log 13.06.2011 11:41) and after patch):
      ==
      C:\strawberry\perl\bin\perl.exe file2c.pl -l -c 30000 C:\strawberry\perl\bin\libgcc_s_sjlj-1.dll my_libgcc.c load_my_libgcc
      gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DWIN64 -DCONSERVATIVE -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfie
      lds -DPERL_MSVCRT_READFIX -I"C:\strawberry\perl\lib\CORE" -DLOAD_MY_LIBGCC -DPARL_EXE=\"parl.exe\" -s -O2 boot.c
      In file included from mktmpdir.h:85,
      from mktmpdir.c:1,
      from boot.c:3:
      sha1.c: In function 'sha_transform':
      sha1.c:146: warning: right shift count >= width of type
      boot.c: In function 'main':
      boot.c:123: warning: passing argument 3 of 'spawnvpe' from incompatible pointer type
      ==

      1)

      > Since this patch is meant for x64 only, please make it match against the environment variable PROCESSOR_ARCHITECTURE=x64 as well as the package name.

      Not only: I'm simply "Turn off use win32.coff"

      == PAR-Packer.yml ==
      ---
      comment: |

      PAR::Packer needs a patch to install in gcc4 Strawberry Perl x64 ( but patch Ok and for x86)

      match:
      distribution: |
      ^(?x:
      .^ # never matches, only purpose is to let things align nicely
      |RSCHUPP/PAR-Packer-1.009.tar.gz # Needs a patch to install.
      )|
      patches:
      - "PAR-Packer-1.009.patch"

      ==

      == PAR-Packer-1.009.patch ==

      # Turn off use win32.coff
      #
      # To apply this patch:
      # STEP 1: Chdir to the source directory.
      # STEP 2: Run the 'applypatch' program with this patch file as input.
      #
      # If you do not have 'applypatch', it is part of the 'makepatch' package
      # that you can fetch from the Comprehensive Perl Archive Network:
      # http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
      # In the above URL, 'x' should be 2 or higher.
      #
      # To apply this patch without the use of 'applypatch':
      # STEP 1: Chdir to the source directory.
      # STEP 2: Run the 'patch' program with this file as input.
      #
      #### End of Preamble ####

      #### Patch data follows ####
      diff -c "C:\strawberry\cpanplus -VVM0_--_PAR-Packer-1.009\myldr\Makefile.PL" "C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr\Makefile.PL"
      Index: ./myldr/Makefile.PL
      *** ./myldr/Makefile.PL Tue Mar 22 19:53:31 2011
      --- ./myldr/Makefile.PL Tue Jun 14 16:49:32 2011
      ***************
      *** 104,110 ****
      $ccdebug = $debug ? '-g ' : '';
      $lddebug = ($debug or $^O eq 'darwin') ? '' : '-s ';
      $warn = $debug ? '-Wall -Wno-comments ' : '';
      ! $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';
      $long_literal = '-l';
      $mt_cmd = '-$(NOOP)';
      } else {
      --- 104,111 ----
      $ccdebug = $debug ? '-g ' : '';
      $lddebug = ($debug or $^O eq 'darwin') ? '' : '-s ';
      $warn = $debug ? '-Wall -Wno-comments ' : '';
      ! $res = ''; # VVM
      ! # $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';
      $long_literal = '-l';
      $mt_cmd = '-$(NOOP)';
      } else {
      #### End of Patch data ####

      #### ApplyPatch data follows ####
      # Data version : 1.0
      # Date generated : Tue Jun 14 16:59:06 2011
      # Generated by : makepatch 2.04
      # Recurse directories : Yes
      # Excluded files : (\A|/).*\~\Z
      # (\A|/).*\.a\Z
      # (\A|/).*\.bak\Z
      # (\A|/).*\.BAK\Z
      # (\A|/).*\.elc\Z
      # (\A|/).*\.exe\Z
      # (\A|/).*\.gz\Z
      # (\A|/).*\.ln\Z
      # (\A|/).*\.o\Z
      # (\A|/).*\.obj\Z
      # (\A|/).*\.olb\Z
      # (\A|/).*\.old\Z
      # (\A|/).*\.orig\Z
      # (\A|/).*\.rej\Z
      # (\A|/).*\.so\Z
      # (\A|/).*\.Z\Z
      # (\A|/)\.del\-.*\Z
      # (\A|/)\.make\.state\Z
      # (\A|/)\.nse_depinfo\Z
      # (\A|/)core\Z
      # (\A|/)tags\Z
      # (\A|/)TAGS\Z
      # p "myldr/Makefile.PL" 10179 1308059372 0100666
      #### End of ApplyPatch data ####

      #### End of Patch kit [created: Tue Jun 14 16:59:06 2011] ####
      #### Patch checksum: 56 2184 611 ####
      #### Checksum: 74 2829 54096 ####
      ==

      > Since this patch is meant for x64 only, please make it match against the environment variable PROCESSOR_ARCHITECTURE=x64 as well as the package name.

      Not only: I'm simply "Turn off use win32.coff"

      == PAR-Packer.yml ==
      ---
      comment: |

      PAR::Packer needs a patch to install in gcc4 Strawberry Perl x64 ( but patch Ok and for x86)

      match:
      distribution: |
      ^(?x:
      .^ # never matches, only purpose is to let things align nicely
      |RSCHUPP/PAR-Packer-1.009.tar.gz # Needs a patch to install.
      )|
      patches:
      - "PAR-Packer-1.009.patch"

      ==

      == PAR-Packer-1.009.patch ==

      # Turn off use win32.coff
      #
      # To apply this patch:
      # STEP 1: Chdir to the source directory.
      # STEP 2: Run the 'applypatch' program with this patch file as input.
      #
      # If you do not have 'applypatch', it is part of the 'makepatch' package
      # that you can fetch from the Comprehensive Perl Archive Network:
      # http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz
      # In the above URL, 'x' should be 2 or higher.
      #
      # To apply this patch without the use of 'applypatch':
      # STEP 1: Chdir to the source directory.
      # STEP 2: Run the 'patch' program with this file as input.
      #
      #### End of Preamble ####

      #### Patch data follows ####
      diff -c "C:\strawberry\cpanplus -VVM0_--_PAR-Packer-1.009\myldr\Makefile.PL" "C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009\myldr\Makefile.PL"
      Index: ./myldr/Makefile.PL
      *** ./myldr/Makefile.PL Tue Mar 22 19:53:31 2011
      --- ./myldr/Makefile.PL Tue Jun 14 16:49:32 2011
      ***************
      *** 104,110 ****
      $ccdebug = $debug ? '-g ' : '';
      $lddebug = ($debug or $^O eq 'darwin') ? '' : '-s ';
      $warn = $debug ? '-Wall -Wno-comments ' : '';
      ! $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';
      $long_literal = '-l';
      $mt_cmd = '-$(NOOP)';
      } else {
      --- 104,111 ----
      $ccdebug = $debug ? '-g ' : '';
      $lddebug = ($debug or $^O eq 'darwin') ? '' : '-s ';
      $warn = $debug ? '-Wall -Wno-comments ' : '';
      ! $res = ''; # VVM
      ! # $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';
      $long_literal = '-l';
      $mt_cmd = '-$(NOOP)';
      } else {
      #### End of Patch data ####

      #### ApplyPatch data follows ####
      # Data version : 1.0
      # Date generated : Tue Jun 14 16:59:06 2011
      # Generated by : makepatch 2.04
      # Recurse directories : Yes
      # Excluded files : (\A|/).*\~\Z
      # (\A|/).*\.a\Z
      # (\A|/).*\.bak\Z
      # (\A|/).*\.BAK\Z
      # (\A|/).*\.elc\Z
      # (\A|/).*\.exe\Z
      # (\A|/).*\.gz\Z
      # (\A|/).*\.ln\Z
      # (\A|/).*\.o\Z
      # (\A|/).*\.obj\Z
      # (\A|/).*\.olb\Z
      # (\A|/).*\.old\Z
      # (\A|/).*\.orig\Z
      # (\A|/).*\.rej\Z
      # (\A|/).*\.so\Z
      # (\A|/).*\.Z\Z
      # (\A|/)\.del\-.*\Z
      # (\A|/)\.make\.state\Z
      # (\A|/)\.nse_depinfo\Z
      # (\A|/)core\Z
      # (\A|/)tags\Z
      # (\A|/)TAGS\Z
      # p "myldr/Makefile.PL" 10179 1308059372 0100666
      #### End of ApplyPatch data ####

      #### End of Patch kit [created: Tue Jun 14 16:59:06 2011] ####
      #### Patch checksum: 56 2184 611 ####
      #### Checksum: 74 2829 54096 ####
      ==

      At this moment I'm run test:
      ==
      C:\>cd C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009

      C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009>dmake test
      C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/00-po
      d.t t/10-parl-generation.t t/20-pp.t t/30-current_exec.t t/40-packer_cd_option.t t/90-rt59710.t
      t/00-pod.t ............... skipped: Set environment variable PERL_TEST_POD=1 to test POD
      t/10-parl-generation.t ... ok
      t/20-pp.t ................ ok
      t/30-current_exec.t ...... # Please wait
      t/30-current_exec.t ...... ok
      t/40-packer_cd_option.t .. ok
      t/90-rt59710.t ........... ok
      All tests successful.
      Files=6, Tests=74, 2560 wallclock secs ( 0.05 usr + 0.09 sys = 0.14 CPU)
      Result: PASS

      C:\strawberry\cpanplus\5.12.3\build\PAR-Packer-1.009>dmake.EXE test UNINST=1
      C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/00-po
      d.t t/10-parl-generation.t t/20-pp.t t/30-current_exec.t t/40-packer_cd_option.t t/90-rt59710.t
      t/00-pod.t ............... skipped: Set environment variable PERL_TEST_POD=1 to test POD
      t/10-parl-generation.t ... ok
      t/20-pp.t ................ 8/34

      ==

Leave a Reply

*
Для того, чтобы убедиться что Вы человек, а не спам-бот, введите пожалуйста ответ.
Анти-спам выражение.

Copyright © 2013 Виктор Мясников ( Victor Miasnikov). Search Engine Optimization by Star Nine. Distributed by Wordpress Themes
Хостинг hoster.by   Сервис белорусских блогов: BLOGS.TUT.BY