[142922] trunk/dports/lang/ruby22

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 12 07:48:19 PST 2015


Revision: 142922
          https://trac.macports.org/changeset/142922
Author:   jeremyhu at macports.org
Date:     2015-11-27 20:59:45 -0800 (Fri, 27 Nov 2015)
Log Message:
-----------
ruby22: Fix build for x86_64 Leopard

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

Added Paths:
-----------
    trunk/dports/lang/ruby22/files/leopard.patch

Modified: trunk/dports/lang/ruby22/Portfile
===================================================================
--- trunk/dports/lang/ruby22/Portfile	2015-11-28 01:11:35 UTC (rev 142921)
+++ trunk/dports/lang/ruby22/Portfile	2015-11-28 04:59:45 UTC (rev 142922)
@@ -45,6 +45,9 @@
 select.group        ruby
 select.file         ${filespath}/ruby22
 
+patchfiles \
+    leopard.patch
+
 configure.args      --enable-shared \
                     --disable-install-doc \
                     --mandir="${prefix}/share/man" \
@@ -55,6 +58,12 @@
                     --program-suffix=2.2 \
                     --with-rubylibprefix="${prefix}/lib/ruby2.2"
 
+platform darwin {
+    if {${os.major} < 10} {
+        configure.args-append --disable-dtrace
+    }
+}
+
 # Ignore minor version for archdir, like i686-darwin9.
 # Port "ruby" and "ruby19" does the same.
 configure.env-append UNAME_RELEASE=${os.major}

Added: trunk/dports/lang/ruby22/files/leopard.patch
===================================================================
--- trunk/dports/lang/ruby22/files/leopard.patch	                        (rev 0)
+++ trunk/dports/lang/ruby22/files/leopard.patch	2015-11-28 04:59:45 UTC (rev 142922)
@@ -0,0 +1,11 @@
+--- vm_dump.c.orig	2015-11-27 20:36:34.000000000 -0800
++++ vm_dump.c	2015-11-27 20:37:52.000000000 -0800
+@@ -436,7 +436,7 @@ rb_vmdebug_thread_dump_state(VALUE self)
+ # ifdef HAVE_LIBUNWIND
+ #  undef backtrace
+ #  define backtrace unw_backtrace
+-# elif defined(__APPLE__) && defined(__x86_64__)
++# elif defined(__APPLE__) && defined(__x86_64__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060
+ #  define UNW_LOCAL_ONLY
+ #  include <libunwind.h>
+ #  undef backtrace
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/897eb46f/attachment-0001.html>


More information about the macports-changes mailing list