[127438] trunk/dports/lang/ruby21/Portfile

kimuraw at macports.org kimuraw at macports.org
Tue Oct 28 06:30:47 PDT 2014


Revision: 127438
          https://trac.macports.org/changeset/127438
Author:   kimuraw at macports.org
Date:     2014-10-28 06:30:47 -0700 (Tue, 28 Oct 2014)
Log Message:
-----------
lang/ruby21: add a workaround to fix build hangs on 10.7-10.8

buildbot of r127405 failed from command timed out 1200 seconds.

- 10.8: https://build.macports.org/builders/buildports-lion-x86_64/builds/24476
- 10.7: https://build.macports.org/builders/buildports-mtln-x86_64/builds/18679

it looks 'config.h' generated from ./configure contains wrong value
of RUBY_SETJMP and RUBY_LONGJMP.

## expected
#define RUBY_SETJMP(env) _setjmp((env))
#define RUBY_LONGJMP(env,val) _longjmp((env),val)

## NG
#define RUBY_SETJMP(env) __builtin_setjmp((void **)(env))
#define RUBY_LONGJMP(env,val) __builtin_longjmp((void **)(env),val)

Revision Links:
--------------
    https://trac.macports.org/changeset/127405

Modified Paths:
--------------
    trunk/dports/lang/ruby21/Portfile

Modified: trunk/dports/lang/ruby21/Portfile
===================================================================
--- trunk/dports/lang/ruby21/Portfile	2014-10-28 12:43:53 UTC (rev 127437)
+++ trunk/dports/lang/ruby21/Portfile	2014-10-28 13:30:47 UTC (rev 127438)
@@ -64,6 +64,10 @@
     configure.args-append "--with-arch=${build_arch}"
 }
 
+# a workaround to fix build hangs from broken miniruby on OS X 10.7 or 10.8
+platform darwin 11 { configure.args-append --with-setjmp-type=_setjmp }
+platform darwin 12 { configure.args-append --with-setjmp-type=_setjmp }
+
 post-destroot {
     foreach type {site vendor} {
             set libdir ${destroot}${prefix}/lib/ruby2.1/${type}_ruby/2.1.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141028/43cc64d0/attachment.html>


More information about the macports-changes mailing list