Date: Fri, 20 Jan 2017 12:45:03 +0000 (UTC) From: "Tobias C. Berner" <tcberner@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431952 - in head/devel/ruby-qtruby: . files Message-ID: <201701201245.v0KCj3R0027614@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tcberner Date: Fri Jan 20 12:45:03 2017 New Revision: 431952 URL: https://svnweb.freebsd.org/changeset/ports/431952 Log: 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) Added: head/devel/ruby-qtruby/files/patch-src_qtruby.cpp (contents, props changed) Modified: head/devel/ruby-qtruby/Makefile Modified: head/devel/ruby-qtruby/Makefile ============================================================================== --- head/devel/ruby-qtruby/Makefile Fri Jan 20 12:36:04 2017 (r431951) +++ head/devel/ruby-qtruby/Makefile Fri Jan 20 12:45:03 2017 (r431952) @@ -2,7 +2,7 @@ PORTNAME= qtruby PORTVERSION= ${KDE4_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel kde kde-kde4 ruby PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} Added: head/devel/ruby-qtruby/files/patch-src_qtruby.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/ruby-qtruby/files/patch-src_qtruby.cpp Fri Jan 20 12:45:03 2017 (r431952) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701201245.v0KCj3R0027614>