diff options
author | taca <taca@pkgsrc.org> | 2002-01-26 03:50:34 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2002-01-26 03:50:34 +0000 |
commit | 7266304db88c61a9fa3d4e61ef3de968df30e71d (patch) | |
tree | 73de9dcae6da15fd34a3999aeda1f6b65c540e5f | |
parent | 052b213245087e3b0bb9fa81ff6a47634284a846 (diff) | |
download | pkgsrc-7266304db88c61a9fa3d4e61ef3de968df30e71d.tar.gz |
Fix build problem (with new toolchain?). Focus pkg/15195.
-rw-r--r-- | x11/ruby-fox/distinfo | 3 | ||||
-rw-r--r-- | x11/ruby-fox/patches/patch-ab | 23 |
2 files changed, 25 insertions, 1 deletions
diff --git a/x11/ruby-fox/distinfo b/x11/ruby-fox/distinfo index 5392df2ea97..0a699cf98d5 100644 --- a/x11/ruby-fox/distinfo +++ b/x11/ruby-fox/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2001/08/05 17:24:31 sakamoto Exp $ +$NetBSD: distinfo,v 1.2 2002/01/26 03:50:34 taca Exp $ SHA1 (ruby/FXRuby-0.99.174.tar.gz) = 1c890cc6798d7080f648d9aec7c0880b0c2ece36 Size (ruby/FXRuby-0.99.174.tar.gz) = 685531 bytes SHA1 (patch-aa) = ed54cc9ad60da7684ff1e595e0df06c3f7bee555 +SHA1 (patch-ab) = 637474bf8d428988340e06c5570dbaf104e520ed diff --git a/x11/ruby-fox/patches/patch-ab b/x11/ruby-fox/patches/patch-ab new file mode 100644 index 00000000000..7f154314e5b --- /dev/null +++ b/x11/ruby-fox/patches/patch-ab @@ -0,0 +1,23 @@ +$NetBSD: patch-ab,v 1.1 2002/01/26 03:50:35 taca Exp $ + +--- FXRuby.cpp.orig Fri Jul 27 05:09:22 2001 ++++ FXRuby.cpp +@@ -74,6 +74,9 @@ + #include <io.h> // for get_osf_handle() + #endif + ++#define RB_BPROC(func) ((VALUE (*)(...))func) ++#define RB_RPROC(func) ((VALUE (*)(...))func) ++ + // Maps C++ objects to Ruby instances + static std::map<const void*,VALUE> FXRuby_ObjMap; + +@@ -766,7 +769,7 @@ + hArgs.nargs=3; + VALUE retval; + if(FXRbCatchExceptions){ +- retval=rb_rescue2(handle_body,(VALUE)&hArgs,handle_rescue,Qnil, ++ retval=rb_rescue2(RB_BPROC(handle_body),(VALUE)&hArgs,RB_RPROC(handle_rescue),Qnil, + rb_eStandardError,rb_eNameError,0); + } + else{ |