Skip to content

Instantly share code, notes, and snippets.

@kimuraw
Created April 1, 2012 16:02
Show Gist options
  • Save kimuraw/2276629 to your computer and use it in GitHub Desktop.
Save kimuraw/2276629 to your computer and use it in GitHub Desktop.
workaround to fix #33814 trac.macports.org
Index: ruby19/Portfile
===================================================================
--- ruby19/Portfile (revision 91418)
+++ ruby19/Portfile (working copy)
@@ -72,6 +72,15 @@
configure.args-append "--with-arch=${build_arch}"
}
+platform darwin 8 {
+ configure.args-delete --enable-pthread
+ post-patch {
+ # #33814: build error "multiple definitions"
+ move ${worksrcpath}/ext/-test-/add_suffix \
+ ${worksrcpath}/ext/-test-/.add_suffix
+ }
+}
+
post-destroot {
foreach type {site vendor} {
set libdir ${destroot}${prefix}/lib/ruby1.9/${type}_ruby/1.9.1
@kimuraw
Copy link
Author

kimuraw commented Apr 1, 2012

this patch solves build error of #33814 (https://trac.macports.org/ticket/33814).
but the built ruby does not pass `make test' on test_thread.rb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment