diff options
| author | Jack Nagel | 2012-10-16 16:05:51 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-10-16 16:06:53 -0500 |
| commit | 1b726f7e4275d752b8e2b7c70b3c24212d52ef9b (patch) | |
| tree | ad4b91a4ebfc042cb2a27ece9fa060c62365436d /Library/Formula | |
| parent | f2ade0707ad2ce2cfbacb2070fc2419892c6844f (diff) | |
| download | homebrew-1b726f7e4275d752b8e2b7c70b3c24212d52ef9b.tar.bz2 | |
ruby: upstream patch for shared library reference to _environ
Hey, we can compile vim against Ruby 1.9 now!
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ruby.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index 21849817b..c889f4daa 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -25,6 +25,9 @@ class Ruby < Formula build 2326 end + # https://github.com/ruby/ruby/commit/2741a598ff9e561c71eb39a57bb19c0a3205eaef + def patches; DATA end + def install system "autoconf" if build.head? @@ -60,3 +63,22 @@ class Ruby < Formula EOS end end + +__END__ +diff --git a/missing/setproctitle.c b/missing/setproctitle.c +index 169ba8b..4dc6d03 100644 +--- a/missing/setproctitle.c ++++ b/missing/setproctitle.c +@@ -48,6 +48,12 @@ + #endif + #include <string.h> + ++#if defined(__APPLE__) ++#include <crt_externs.h> ++#undef environ ++#define environ (*_NSGetEnviron()) ++#endif ++ + #define SPT_NONE 0 /* don't use it at all */ + #define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */ + #define SPT_REUSEARGV 2 /* cover argv with title information */ |
