From owner-svn-ports-branches@freebsd.org Mon May 9 19:02:09 2016 Return-Path: Delivered-To: svn-ports-branches@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 740C8B347F2; Mon, 9 May 2016 19:02:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2C50B1FC0; Mon, 9 May 2016 19:02:09 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u49J286U087410; Mon, 9 May 2016 19:02:08 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u49J28oQ087408; Mon, 9 May 2016 19:02:08 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201605091902.u49J28oQ087408@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Mon, 9 May 2016 19:02:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r414882 - in branches/2016Q2/deskutils/easystroke: . files X-SVN-Group: ports-branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-branches@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for all the branches of the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2016 19:02:09 -0000 Author: dim (src committer) Date: Mon May 9 19:02:08 2016 New Revision: 414882 URL: https://svnweb.freebsd.org/changeset/ports/414882 Log: MFH: r414807 During the exp-run in bug 208158, it was found that deskutils/easystroke gives errors with libc++ 3.8.0: handler.cc:536:21: error: static declaration of 'abs' follows non-static declaration static inline float abs(float x) { return x > 0 ? x : -x; } ^ /usr/include/c++/v1/math.h:646:1: note: previous definition is here abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);} ^ This is because easystroke tries to roll its own version of abs(), which is already defined in math.h. Fix this by removing the custom abs(). Approved by: portmgr (feld) PR: 209372 Added: branches/2016Q2/deskutils/easystroke/files/patch-handler.cc - copied unchanged from r414807, head/deskutils/easystroke/files/patch-handler.cc Modified: branches/2016Q2/deskutils/easystroke/Makefile Directory Properties: branches/2016Q2/ (props changed) Modified: branches/2016Q2/deskutils/easystroke/Makefile ============================================================================== --- branches/2016Q2/deskutils/easystroke/Makefile Mon May 9 18:44:48 2016 (r414881) +++ branches/2016Q2/deskutils/easystroke/Makefile Mon May 9 19:02:08 2016 (r414882) @@ -3,7 +3,7 @@ PORTNAME= easystroke PORTVERSION= 0.6.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} Copied: branches/2016Q2/deskutils/easystroke/files/patch-handler.cc (from r414807, head/deskutils/easystroke/files/patch-handler.cc) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2016Q2/deskutils/easystroke/files/patch-handler.cc Mon May 9 19:02:08 2016 (r414882, copy of r414807, head/deskutils/easystroke/files/patch-handler.cc) @@ -0,0 +1,11 @@ +--- handler.cc.orig 2013-03-27 15:52:38 UTC ++++ handler.cc +@@ -533,8 +533,6 @@ public: + virtual Grabber::State grab_mode() { return parent->grab_mode(); } + }; + +-static inline float abs(float x) { return x > 0 ? x : -x; } +- + class AbstractScrollHandler : public Handler { + bool have_x, have_y; + float last_x, last_y;