Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2016 22:59:53 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 209686] www/webkit2-gtk3: Fix build with libc++ 3.8.0
Message-ID:  <bug-209686-6497-qWc7rFtYQU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-209686-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-209686-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Dimitry Andric <dim@FreeBSD.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to gnome@FreeBSD.o=
rg:
Bug 209686: www/webkit2-gtk3: Fix build with libc++ 3.8.0
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209686



--- Description ---
Created attachment 170534
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D170534&action=
=3Dedit
Fix type for pow() call in www/webkit2-gtk3

During the exp-run in bug 208158, it was found that www/webkit2-gtk3 gives
errors with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/www/webkit2-gtk3/work/webkitgtk-2.8.5/Source/WebCore/ren=
deri
ng/shapes/BoxShape.cpp:46:40:
error: call to 'pow' is ambiguous
	return radius + (margin * (1 + pow(ratio - 1, 3)));
				       ^~~

This is because ratio is of type LayoutUnit, which is a class that has both
conversions to float and double.  Therefore, it is ambiguous if pow(float) =
or
pow(double) should be called.  Fix it by explicitly casting to float, since=
 it
seems that most of the LayoutUnit handling is done with it.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-05-01_=
10h2
9m48s/logs/errors/webkit2-gtk3-2.8.5_2.log



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-209686-6497-qWc7rFtYQU>