From owner-svn-ports-head@freebsd.org Sun May 8 12:05:53 2016 Return-Path: Delivered-To: svn-ports-head@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 95BBBB32593; Sun, 8 May 2016 12:05:53 +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 4D3561212; Sun, 8 May 2016 12:05:53 +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 u48C5qNG020914; Sun, 8 May 2016 12:05:52 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u48C5qqZ020912; Sun, 8 May 2016 12:05:52 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201605081205.u48C5qqZ020912@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sun, 8 May 2016 12:05:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r414807 - in head/deskutils/easystroke: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2016 12:05:53 -0000 Author: dim (src committer) Date: Sun May 8 12:05:52 2016 New Revision: 414807 URL: https://svnweb.freebsd.org/changeset/ports/414807 Log: 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: t@tobik.me (maintainer) PR: 209372 MFH: 2016Q2 Added: head/deskutils/easystroke/files/patch-handler.cc (contents, props changed) Modified: head/deskutils/easystroke/Makefile Modified: head/deskutils/easystroke/Makefile ============================================================================== --- head/deskutils/easystroke/Makefile Sun May 8 11:51:23 2016 (r414806) +++ head/deskutils/easystroke/Makefile Sun May 8 12:05:52 2016 (r414807) @@ -3,7 +3,7 @@ PORTNAME= easystroke PORTVERSION= 0.6.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} Added: head/deskutils/easystroke/files/patch-handler.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/easystroke/files/patch-handler.cc Sun May 8 12:05:52 2016 (r414807) @@ -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;