Revision: 80060 http://trac.macports.org/changeset/80060 Author: jeremyhu@macports.org Date: 2011-07-03 09:59:39 -0700 (Sun, 03 Jul 2011) Log Message: ----------- ruby: clang build fix dev ack via email Modified Paths: -------------- trunk/dports/lang/ruby/Portfile Added Paths: ----------- trunk/dports/lang/ruby/files/patch-c99.diff Modified: trunk/dports/lang/ruby/Portfile =================================================================== --- trunk/dports/lang/ruby/Portfile 2011-07-03 16:59:16 UTC (rev 80059) +++ trunk/dports/lang/ruby/Portfile 2011-07-03 16:59:39 UTC (rev 80060) @@ -41,10 +41,12 @@ # #15528: on some Mac, TCPServer.open("localhost", 0) raises SocketError # like "getaddrinfo: nodename nor servname provided, or not # known (SocketError)" +# c99: gperf generates code that doesn't work with clang (https://trac.macports.org/ticket/29974) patchfiles patch-vendordir.diff \ patch-bug3604.diff \ patch-bug19050.diff \ - patch-bug15528.diff + patch-bug15528.diff \ + patch-c99.diff # ignore getcontext() and setcontext() # on 10.5, these functions have some problems (SEGV on ppc, slower than 1.8.6) Added: trunk/dports/lang/ruby/files/patch-c99.diff =================================================================== --- trunk/dports/lang/ruby/files/patch-c99.diff (rev 0) +++ trunk/dports/lang/ruby/files/patch-c99.diff 2011-07-03 16:59:39 UTC (rev 80060) @@ -0,0 +1,27 @@ +--- lex.c.orig 2011-07-03 09:55:09.000000000 -0700 ++++ lex.c 2011-07-03 09:55:52.000000000 -0700 +@@ -10,7 +10,11 @@ struct kwtable {const char *name; int id + /* maximum key range = 50, duplicates = 0 */ + + #ifdef __GNUC__ ++#ifdef __GNUC_STDC_INLINE__ ++static inline ++#else + __inline ++#endif + #else + #ifdef __cplusplus + inline +@@ -66,8 +70,12 @@ hash (str, len) + } + + #ifdef __GNUC__ ++#ifdef __GNUC_STDC_INLINE__ ++static inline ++#else + __inline + #endif ++#endif + struct kwtable * + rb_reserved_word (str, len) + register const char *str;
participants (1)
-
jeremyhu@macports.org