[Bug 209406] deskutils/plasma-applet-playwolf: Fix build with libc++ 3.8.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 9 21:04:54 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209406

            Bug ID: 209406
           Summary: deskutils/plasma-applet-playwolf: Fix build with
                    libc++ 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jhale at FreeBSD.org
          Reporter: dim at FreeBSD.org
          Assignee: jhale at FreeBSD.org
             Flags: maintainer-feedback?(jhale at FreeBSD.org)

Created attachment 170158
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=170158&action=edit
Use Qt's own qFabs() in deskutils/plasma-applet-playwolf

During the exp-run in bug 208158, it was found that
deskutils/plasma-applet-playwolf gives errors with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/deskutils/plasma-applet-playwolf/work/playwolf/wolflabel.cpp:198:47:
error: call to 'abs' is ambiguous
                m_animation->setDuration((2 * abs(x) + SPACING) * 150);
                                              ^~~

This is because the floating point version of abs() should be used, but the
file does not include <math.h>, nor <cmath>.  Instead, make it use the
Qt-specific function, qFabs(), from QtCore/qmath.h.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_10h29m48s/logs/errors/plasma-applet-playwolf-0.8.1_6.log

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list