Skip to content

Instantly share code, notes, and snippets.

@kimuraw
kimuraw / ruby19-Portfile.diff
Created April 1, 2012 16:02
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
@kimuraw
kimuraw / gist:1378574
Created November 19, 2011 07:02
patch: fix "invalid option -N (-h will show valid options)" to run rubycocoa apps on Xcode-4
diff -ur old/main.m new/main.m
--- old/main.m 2011-11-19 15:49:58.000000000 +0900
+++ new/main.m 2011-11-19 15:49:16.000000000 +0900
@@ -11,5 +11,6 @@
int main(int argc, const char *argv[])
{
- return RBApplicationMain("rb_main.rb", argc, argv);
+ RBApplicationInit("rb_main.rb", argc, argv, nil);
+ return NSApplicationMain(argc, argv);
@kimuraw
kimuraw / CasualConc_2011-11-16-234403_mukoujima.crash
Created November 18, 2011 23:39
crash at scrolling on RubyCocoa app "CasualConc"
Process: CasualConc [44932]
Path: /Users/*/Library/Developer/Xcode/DerivedData/CasualConc-fvbnrnxrxwnmbvajmshnuclpqrgr/Build/Products/Debug/CasualConc.app/Contents/MacOS/CasualConc
Identifier: CasualConcApp
Version: 1.8.6 (20111019)
Code Type: X86 (Native)
Parent Process: zsh [84720]
Date/Time: 2011-11-16 23:44:02.004 +0900
OS Version: Mac OS X 10.7.2 (11C74)
Report Version: 9