Mon Mar 29 09:59:34 2010: Request 56057 was acted upon.
Transaction: Ticket created by KMX
       Queue: Alien-wxWidgets
     Subject: Patch proposal - inc/My/Build/Base.pm
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: k...@cpan.org
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=56057 >


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

Reply via email to