Skip Menu |
 

This queue is for tickets about the PAR-Packer CPAN distribution.

Report information
The Basics
Id: 35875
Status: resolved
Priority: 0/
Queue: PAR-Packer

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

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

Attachments


Subject: Failed test on Strawberry Perl 5.10.0.1 on Windows XP
Download (untitled) / with headers
text/plain 2.4k
When I tried to install PAR::Packer on my machine running Strawberry Perl 5.10.0.1 on Windows XP Service Pack 2 I got a failed test. The test report is the following: t/00-pod..................skipped: Set environment variable PERL_TEST_POD=1 to test POD t/10-parl-generation......ok t/20-pp...................ok t/30-current_exec.........# Please wait t/30-current_exec.........2/4 # Failed test 'Found the same file via PATH and full path' # at t/30-current_exec.t line 52. # got: '' # expected: '0 = C:\strawberry\cpan\build\PAR-Packer-0.979-NGhOHT\t\test-10.exec # PAR_PROGNAME = C:\strawberry\cpan\build\PAR-Packer-0.979-NGhOHT\t\test-10.exec # PAR_TEMP = C:/strawberry/cpan/build/PAR-Packer-0.979-NGhOHT/t-tmp\par-blandino\cache-997dd4c5d1d3e300d6776324d5dc9ad79 ce8fc92 # exec = t/30-current_exec.........3/4 # ' # Looks like you failed 1 test of 4. t/30-current_exec......... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests (less 1 skipped subtest: 2 okay) Test Summary Report ------------------- t/30-current_exec.t (Wstat: 256 Tests: 4 Failed: 1) Failed test: 3 Non-zero exit status: 1 Files=4, Tests=69, 302 wallclock secs ( 0.08 usr + 0.03 sys = 0.11 CPU) Result: FAIL Failed 1/4 test programs. 1/69 subtests failed. dmake.EXE: Error code 129, while making 'test_dynamic' SMUELLER/PAR-Packer-0.979.tar.gz C:\strawberry\c\bin\dmake.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SMUELLER/PAR-Packer-0.979.tar.gz Failed during this command: SMUELLER/PAR-Packer-0.979.tar.gz : make_test NO Forcing the installation apparently solves the problem, because the pp command is available. But if you use pp to build a Windows executable and you move it to a machine without any Perl installed, when you try to run it, you get an error message stating that perl510.dll is missing. this is true also if you issue a command as simple as pp -e "print 'Hello World';" -o hello.exe Below is the content of my PATH environment variable C:\oracle\product\11.1.0\client_1;C:\oracle\ora92\bin;C:\Programmi\Oracle\jre\1.3.1\bin; C:\Programmi\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem; c:\Programmi\MicrosoftSQLServer\90\Tools\binn\;C:\WINDOWS\system32\WindowsPowerShell\v1.0; C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\strawberry\c\bin;C:\strawberry\perl\bin
Download (untitled) / with headers
text/plain 210b
This is "just" a broken test. You're correct in assuming pp is okay. The PAR::Packer 0.980 release (which I uploaded to PAUSE earlier today) fixes this issue. Thanks for the bug report! Best regards, Steffen
Download (untitled) / with headers
text/plain 398b
I upgraded to 0.980 but the test still fails popping out a message box saying that It wasn't possible to find perl510.dll On Wed May 14 08:02:38 2008, SMUELLER wrote: Show quoted text
> This is "just" a broken test. You're correct in assuming pp is okay. > > The PAR::Packer 0.980 release (which I uploaded to PAUSE earlier today) > fixes this issue. > > Thanks for the bug report! > > Best regards, > Steffen
From: snaury [...] gmail.com
Download (untitled) / with headers
text/plain 612b
On Wed May 14 08:46:28 2008, http://claimid.com/sblandin wrote: Show quoted text
> I upgraded to 0.980 but the test still fails popping out a message box > saying that It wasn't possible to find perl510.dll
Because this is not just a test error. The problem is that PAR::Packer build script needs to find perl510.dll, while in fact it finds libperl510.a. This file gets bundled instead of perl510.dll, which is totally wrong, and the resulting executable won't work without perl in PATH (that's exactly what test is supposed to check). The patch I'm attaching fixes it for me, but I haven't checked if it breaks ActivePerl yet.
=== modified file 'myldr/Makefile.PL' --- myldr/Makefile.PL 2008-05-17 21:04:18 +0000 +++ myldr/Makefile.PL 2008-05-17 21:04:58 +0000 @@ -139,6 +139,7 @@ $file = "libperl.$so" if $file eq 'libper'; # workaround Red Hat bug $file =~ s/\.(?!\d)[^.]*$/.$Config{so}/; + $file =~ s/^lib// if $^O eq "MSWin32"; $libperl = find_file($file); if (not -e $libperl) {
Download (untitled) / with headers
text/plain 129b
Thanks for reporting and fixing the bug. Patch applied. Will be in PAR::Packer 0.981 when that's released. Best regards, Steffen


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.