Date: Sat, 21 Jan 2017 12:16:01 +0000 (UTC) From: "Tobias C. Berner" <tcberner@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r432025 - in branches/2017Q1/devel/ruby-qtruby: . files Message-ID: <201701211216.v0LCG112011203@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tcberner Date: Sat Jan 21 12:16:01 2017 New Revision: 432025 URL: https://svnweb.freebsd.org/changeset/ports/432025 Log: MFH: r431952 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) PR: 216218 Approved by: ports-secteam (junovitch), rakuco (mentor) Added: branches/2017Q1/devel/ruby-qtruby/files/patch-src_qtruby.cpp - copied unchanged from r431952, head/devel/ruby-qtruby/files/patch-src_qtruby.cpp Modified: branches/2017Q1/devel/ruby-qtruby/Makefile Directory Properties: branches/2017Q1/ (props changed) Modified: branches/2017Q1/devel/ruby-qtruby/Makefile ============================================================================== --- branches/2017Q1/devel/ruby-qtruby/Makefile Sat Jan 21 12:03:28 2017 (r432024) +++ branches/2017Q1/devel/ruby-qtruby/Makefile Sat Jan 21 12:16:01 2017 (r432025) @@ -2,7 +2,7 @@ PORTNAME= qtruby PORTVERSION= ${KDE4_VERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel kde kde-kde4 ruby PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} Copied: branches/2017Q1/devel/ruby-qtruby/files/patch-src_qtruby.cpp (from r431952, head/devel/ruby-qtruby/files/patch-src_qtruby.cpp) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2017Q1/devel/ruby-qtruby/files/patch-src_qtruby.cpp Sat Jan 21 12:16:01 2017 (r432025, copy of r431952, head/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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701211216.v0LCG112011203>