svn commit: r414807 - in head/deskutils/easystroke: . files
Dimitry Andric
dim at FreeBSD.org
Sun May 8 12:05:53 UTC 2016
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 at 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;
More information about the svn-ports-head
mailing list