diff options
Diffstat (limited to 'devel/ruby-qtruby')
-rw-r--r-- | devel/ruby-qtruby/Makefile | 2 | ||||
-rw-r--r-- | devel/ruby-qtruby/files/patch-src_qtruby.cpp | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/devel/ruby-qtruby/Makefile b/devel/ruby-qtruby/Makefile index 3c5fbc1c9205..a0c548450a68 100644 --- a/devel/ruby-qtruby/Makefile +++ b/devel/ruby-qtruby/Makefile @@ -2,7 +2,7 @@ PORTNAME= qtruby PORTVERSION= ${KDE4_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel kde kde-kde4 ruby PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} diff --git a/devel/ruby-qtruby/files/patch-src_qtruby.cpp b/devel/ruby-qtruby/files/patch-src_qtruby.cpp new file mode 100644 index 000000000000..7a8fbc24c112 --- /dev/null +++ b/devel/ruby-qtruby/files/patch-src_qtruby.cpp @@ -0,0 +1,13 @@ +Fix bogus pointer comparison. + +--- src/qtruby.cpp.orig 2017-01-18 20:21:44 UTC ++++ src/qtruby.cpp +@@ -2094,7 +2094,7 @@ isObject(VALUE /*self*/, VALUE obj) + { + void * ptr = 0; + ptr = value_to_ptr(obj); +- return (ptr > 0 ? Qtrue : Qfalse); ++ return (ptr ? Qtrue : Qfalse); + } + + static VALUE |