Skip Menu |

This queue is for tickets about the Alien-wxWidgets CPAN distribution.

Report information
The Basics
Id: 56057
Status: resolved
Priority: 0/
Queue: Alien-wxWidgets

People
Owner: Nobody in particular
Requestors: kmx [...] cpan.org
Cc:
AdminCc:

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



Subject: Patch proposal - inc/My/Build/Base.pm
Hi,

I have experienced the following error on my Win32 Strawberry 5.12.0-RC0 box when building Alien-wxWidgets-0.50_02:

String found where operator expected at inc/My/Build/Base.pm line 478, near "croak "system: @_: $?""
        (Do you need to predeclare croak?)
syntax error at inc/My/Build/Base.pm line 478, near "croak "system: @_: $?""
Compilation failed in require at Build.PL line 138.

The following patch to inc/My/Build/Base.pm fixes the problem:

--- Base.pm.orig        Mon Mar 29 15:55:50 2010
+++ Base.pm     Mon Mar 29 15:56:09 2010
@@ -475,7 +475,7 @@
     my $ret;

     $ret = @_ > 1 ? system @_ : system $_[0];
-    $ret and croak "system: @_: $?";
+    $ret and croak("system: @_: $?");
 }

 1;


--
kmx
Already patched by Mark Dootson in rev 2841. Thanks! Mattia