[124076] trunk/dports/perl/p5-time-y2038

ryandesign at macports.org ryandesign at macports.org
Mon Aug 18 01:37:19 PDT 2014


Revision: 124076
          https://trac.macports.org/changeset/124076
Author:   ryandesign at macports.org
Date:     2014-08-18 01:37:19 -0700 (Mon, 18 Aug 2014)
Log Message:
-----------
p5-time-y2038: fix build on systems where check_max hangs (Snow Leopard) (#30718)

Modified Paths:
--------------
    trunk/dports/perl/p5-time-y2038/Portfile

Added Paths:
-----------
    trunk/dports/perl/p5-time-y2038/files/
    trunk/dports/perl/p5-time-y2038/files/patch-inc-Local-Module-Build.pm.diff

Modified: trunk/dports/perl/p5-time-y2038/Portfile
===================================================================
--- trunk/dports/perl/p5-time-y2038/Portfile	2014-08-18 06:56:57 UTC (rev 124075)
+++ trunk/dports/perl/p5-time-y2038/Portfile	2014-08-18 08:37:19 UTC (rev 124076)
@@ -27,11 +27,7 @@
                           port:p${perl5.major}-test-exception \
                           port:p${perl5.major}-test-warn
 
+patchfiles                patch-inc-Local-Module-Build.pm.diff
+
 perl5.use_module_build
 }
-
-platform darwin 10 {
-    pre-configure {
-        error "$name fails to build on this platform."
-    }
-}

Added: trunk/dports/perl/p5-time-y2038/files/patch-inc-Local-Module-Build.pm.diff
===================================================================
--- trunk/dports/perl/p5-time-y2038/files/patch-inc-Local-Module-Build.pm.diff	                        (rev 0)
+++ trunk/dports/perl/p5-time-y2038/files/patch-inc-Local-Module-Build.pm.diff	2014-08-18 08:37:19 UTC (rev 124076)
@@ -0,0 +1,18 @@
+--- inc/Local/Module/Build.pm.orig	2010-04-03 22:26:57.000000000 -0500
++++ inc/Local/Module/Build.pm	2014-08-18 03:29:15.000000000 -0500
+@@ -199,10 +199,14 @@
+     require JSON;
+ 
+     my $limits;
++    my $pid;
+     my $json = run_in_alarm( 2, sub {
+-        return `./$exe`;
++        $pid = open(CHECK_MAX, "-|", "./$exe");
++        local $/;
++        return <CHECK_MAX>;
+     }, sub {
+         warn "  time limit check timed out, using defaults";
++        kill "INT", $pid;
+         return;
+     });
+     warn "  Done.\n";
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140818/96f634ab/attachment.html>


More information about the macports-changes mailing list