commit: bfe97a5ba14edaafe8694f6a74aa026506eacc68 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Sat Aug 27 17:41:16 2016 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Sat Aug 27 20:20:23 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfe97a5b
net-libs/webkit-gtk: tweak for gcc-6, bug #592048 Adopt Fedora patch to build successfully against gcc-6.1.0. Bug: https://bugs.gentoo.org/show_bug.cgi?id=592048 Bug: https://bugs.webkit.org/show_bug.cgi?id=159124 Package-Manager: portage-2.3.0 .../webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch | 29 ++++++++++++++++++++++ net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild | 3 +++ net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild | 3 +++ net-libs/webkit-gtk/webkit-gtk-2.4.11.ebuild | 3 +++ 4 files changed, 38 insertions(+) diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch b/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch new file mode 100644 index 00000000..bd8507c --- /dev/null +++ b/net-libs/webkit-gtk/files/webkit-gtk-2.4.9-gcc-6.patch @@ -0,0 +1,29 @@ +Fedora patch fixes build failure for gcc-6 (abs/fabs ambifuity) +https://bugs.webkit.org/show_bug.cgi?id=159124#c1 +https://bugs.gentoo.org/show_bug.cgi?id=592048 +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700 +@@ -85,8 +85,8 @@ + guint32 eventTime = getEventTime(event); + + if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) +- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) +- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) ++ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) ++ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) + && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime)) + && (buttonEvent->button == m_previousClickButton))) + m_currentClickCount++; +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700 +@@ -659,7 +659,7 @@ + if (!std::isfinite(time)) + return String::fromUTF8(_("indefinite time")); + +- int seconds = static_cast<int>(abs(time)); ++ int seconds = static_cast<int>(fabs(time)); + int days = seconds / (60 * 60 * 24); + int hours = seconds / (60 * 60); + int minutes = (seconds / 60) % 60; diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild index cb799d5..1913585 100644 --- a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild +++ b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r1.ebuild @@ -173,6 +173,9 @@ src_prepare() { # https://bugs.webkit.org/show_bug.cgi?id=156510 eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch + # https://bugs.webkit.org/show_bug.cgi?id=159124#c1 + eapply "${FILESDIR}"/${PN}-2.4.9-gcc-6.patch + AT_M4DIR=Source/autotools eautoreconf gnome2_src_prepare diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild index 10f845a..a92c6b1 100644 --- a/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild +++ b/net-libs/webkit-gtk/webkit-gtk-2.4.11-r200.ebuild @@ -158,6 +158,9 @@ src_prepare() { # https://bugs.webkit.org/show_bug.cgi?id=156510 eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch + # https://bugs.webkit.org/show_bug.cgi?id=159124#c1 + eapply "${FILESDIR}"/${PN}-2.4.9-gcc-6.patch + AT_M4DIR=Source/autotools eautoreconf gnome2_src_prepare diff --git a/net-libs/webkit-gtk/webkit-gtk-2.4.11.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.4.11.ebuild index 2ffe8b2..481850b 100644 --- a/net-libs/webkit-gtk/webkit-gtk-2.4.11.ebuild +++ b/net-libs/webkit-gtk/webkit-gtk-2.4.11.ebuild @@ -171,6 +171,9 @@ src_prepare() { # https://bugs.webkit.org/show_bug.cgi?id=156510 eapply "${FILESDIR}"/${PN}-2.4.11-video-web-audio.patch + # https://bugs.webkit.org/show_bug.cgi?id=159124#c1 + eapply "${FILESDIR}"/${PN}-2.4.9-gcc-6.patch + AT_M4DIR=Source/autotools eautoreconf gnome2_src_prepare
