diff options
author | tcberner <tcberner@FreeBSD.org> | 2017-01-20 20:45:03 +0800 |
---|---|---|
committer | tcberner <tcberner@FreeBSD.org> | 2017-01-20 20:45:03 +0800 |
commit | 3228e09060d777f67d956040ab10237a8840224f (patch) | |
tree | 32bebcaeffda4c7de2eaa67d21ba9afa70bd63b8 /devel/ruby-qtruby | |
parent | e3e9a745773a4d92e1bbe296f35edf15c091d9b1 (diff) | |
download | freebsd-ports-gnome-3228e09060d777f67d956040ab10237a8840224f.tar.gz freebsd-ports-gnome-3228e09060d777f67d956040ab10237a8840224f.tar.zst freebsd-ports-gnome-3228e09060d777f67d956040ab10237a8840224f.zip |
Fix ruby-qtruby with newer clang
Clang 4.0 trips on the bogus pointer comparison.
As the produced code may change, bump PORTREVISION.
PR: 216218
Reported by: jbeich
Approved by: rakuco (mentor)
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 |