[arch-commits] Commit in webkitgtk/repos (8 files)

Jan de Groot jgc at archlinux.org
Wed Nov 30 14:23:19 UTC 2016


    Date: Wednesday, November 30, 2016 @ 14:23:18
  Author: jgc
Revision: 282382

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  webkitgtk/repos/testing-i686/PKGBUILD
    (from rev 282381, webkitgtk/trunk/PKGBUILD)
  webkitgtk/repos/testing-i686/webkitgtk-2.4.9-abs.patch
    (from rev 282381, webkitgtk/trunk/webkitgtk-2.4.9-abs.patch)
  webkitgtk/repos/testing-x86_64/PKGBUILD
    (from rev 282381, webkitgtk/trunk/PKGBUILD)
  webkitgtk/repos/testing-x86_64/webkitgtk-2.4.9-abs.patch
    (from rev 282381, webkitgtk/trunk/webkitgtk-2.4.9-abs.patch)
Deleted:
  webkitgtk/repos/testing-i686/PKGBUILD
  webkitgtk/repos/testing-i686/webkitgtk-2.4.9-abs.patch
  webkitgtk/repos/testing-x86_64/PKGBUILD
  webkitgtk/repos/testing-x86_64/webkitgtk-2.4.9-abs.patch

------------------------------------------+
 /PKGBUILD                                |  162 +++++++++++++++++++++++++++++
 /webkitgtk-2.4.9-abs.patch               |   52 +++++++++
 testing-i686/PKGBUILD                    |   78 -------------
 testing-i686/webkitgtk-2.4.9-abs.patch   |   26 ----
 testing-x86_64/PKGBUILD                  |   78 -------------
 testing-x86_64/webkitgtk-2.4.9-abs.patch |   26 ----
 6 files changed, 214 insertions(+), 208 deletions(-)

Deleted: testing-i686/PKGBUILD
===================================================================
--- testing-i686/PKGBUILD	2016-11-30 14:23:12 UTC (rev 282381)
+++ testing-i686/PKGBUILD	2016-11-30 14:23:18 UTC (rev 282382)
@@ -1,78 +0,0 @@
-# $Id$
-# Maintainer: Andreas Radke <andyrtr at archlinux.org>
-
-pkgbase=webkitgtk
-pkgname=(webkitgtk webkitgtk2)
-pkgver=2.4.11
-pkgrel=2
-pkgdesc="GTK+ Web content engine library"
-arch=(i686 x86_64)
-url="http://webkitgtk.org/"
-license=(custom)
-depends=(libxt libxslt sqlite libsoup enchant libgl geoclue2 gst-plugins-base-libs
-         libsecret libwebp harfbuzz-icu)
-makedepends=(gtk3 gtk2 gperf gobject-introspection python2 mesa ruby)
-optdepends=('gst-plugins-base: free media decoding'
-            'gst-plugins-good: media decoding'
-            'gst-libav: nonfree media decoding')
-options=(!emptydirs)
-source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
-        webkitgtk-2.4.9-abs.patch)
-sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7'
-            'ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70')
-
-prepare() {
-  mkdir build-gtk{,2} path
-  ln -s /usr/bin/python2 path/python
-
-  cd $pkgbase-$pkgver
-  patch -Np1 -i ../webkitgtk-2.4.9-abs.patch
-}
-
-_build() (
-  _ver="$1"; shift
-  cd build-${_ver}
-
-  PATH="$srcdir/path:$PATH"
-
-  ../$pkgbase-$pkgver/configure --prefix=/usr \
-    --libexecdir=/usr/lib/webkit${_ver} \
-    --enable-introspection \
-    --disable-webkit2 \
-    --disable-gtk-doc \
-    "$@"
-
-  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
-  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-
-  make all stamp-po
-)
-
-build() {
-  _build gtk
-  _build gtk2 --with-gtk=2.0
-}
-
-package_webkitgtk() {
-  depends+=(gtk3)
-  optdepends+=('gtk2: Netscape plugin support')
-  provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}")
-  conflicts=(webkitgtk3 libwebkit3)
-  replaces=(webkitgtk3 libwebkit3)
-
-  make -C build-gtk -j1 DESTDIR="$pkgdir" install
-  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
-    "$pkgdir/usr/share/licenses/webkitgtk/LICENSE"
-}
-
-package_webkitgtk2() {
-  pkgdesc+=" for GTK2"
-  depends+=(gtk2)
-  provides=("libwebkit=${pkgver}")
-  conflicts=(libwebkit)
-  replaces=(libwebkit)
-
-  make -C build-gtk2 -j1 DESTDIR="$pkgdir" install
-  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
-    "$pkgdir/usr/share/licenses/webkitgtk2/LICENSE"
-}

Copied: webkitgtk/repos/testing-i686/PKGBUILD (from rev 282381, webkitgtk/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-11-30 14:23:18 UTC (rev 282382)
@@ -0,0 +1,81 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+pkgbase=webkitgtk
+pkgname=(webkitgtk webkitgtk2)
+pkgver=2.4.11
+pkgrel=3
+pkgdesc="GTK+ Web content engine library"
+arch=(i686 x86_64)
+url="http://webkitgtk.org/"
+license=(custom)
+depends=(libxt libxslt sqlite libsoup enchant libgl geoclue2 gst-plugins-base-libs
+         libsecret libwebp harfbuzz-icu)
+makedepends=(gtk3 gtk2 gperf gobject-introspection python2 mesa ruby)
+optdepends=('gst-plugins-base: free media decoding'
+            'gst-plugins-good: media decoding'
+            'gst-libav: nonfree media decoding')
+options=(!emptydirs)
+source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
+        webkitgtk-2.4.9-abs.patch)
+sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7'
+            'ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70')
+
+prepare() {
+  mkdir build-gtk{,2} path
+  ln -s /usr/bin/python2 path/python
+
+  cd $pkgbase-$pkgver
+  patch -Np1 -i ../webkitgtk-2.4.9-abs.patch
+}
+
+_build() (
+  _ver="$1"; shift
+  cd build-${_ver}
+
+  PATH="$srcdir/path:$PATH"
+
+  CXXFLAGS+=" -fno-delete-null-pointer-checks"
+  CFLAGS+=" -fno-delete-null-pointer-checks"
+
+  ../$pkgbase-$pkgver/configure --prefix=/usr \
+    --libexecdir=/usr/lib/webkit${_ver} \
+    --enable-introspection \
+    --disable-webkit2 \
+    --disable-gtk-doc \
+    "$@"
+
+  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make all stamp-po
+)
+
+build() {
+  _build gtk
+  _build gtk2 --with-gtk=2.0
+}
+
+package_webkitgtk() {
+  depends+=(gtk3)
+  optdepends+=('gtk2: Netscape plugin support')
+  provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}")
+  conflicts=(webkitgtk3 libwebkit3)
+  replaces=(webkitgtk3 libwebkit3)
+
+  make -C build-gtk -j1 DESTDIR="$pkgdir" install
+  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
+    "$pkgdir/usr/share/licenses/webkitgtk/LICENSE"
+}
+
+package_webkitgtk2() {
+  pkgdesc+=" for GTK2"
+  depends+=(gtk2)
+  provides=("libwebkit=${pkgver}")
+  conflicts=(libwebkit)
+  replaces=(libwebkit)
+
+  make -C build-gtk2 -j1 DESTDIR="$pkgdir" install
+  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
+    "$pkgdir/usr/share/licenses/webkitgtk2/LICENSE"
+}

Deleted: testing-i686/webkitgtk-2.4.9-abs.patch
===================================================================
--- testing-i686/webkitgtk-2.4.9-abs.patch	2016-11-30 14:23:12 UTC (rev 282381)
+++ testing-i686/webkitgtk-2.4.9-abs.patch	2016-11-30 14:23:18 UTC (rev 282382)
@@ -1,26 +0,0 @@
-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;

Copied: webkitgtk/repos/testing-i686/webkitgtk-2.4.9-abs.patch (from rev 282381, webkitgtk/trunk/webkitgtk-2.4.9-abs.patch)
===================================================================
--- testing-i686/webkitgtk-2.4.9-abs.patch	                        (rev 0)
+++ testing-i686/webkitgtk-2.4.9-abs.patch	2016-11-30 14:23:18 UTC (rev 282382)
@@ -0,0 +1,26 @@
+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;

Deleted: testing-x86_64/PKGBUILD
===================================================================
--- testing-x86_64/PKGBUILD	2016-11-30 14:23:12 UTC (rev 282381)
+++ testing-x86_64/PKGBUILD	2016-11-30 14:23:18 UTC (rev 282382)
@@ -1,78 +0,0 @@
-# $Id$
-# Maintainer: Andreas Radke <andyrtr at archlinux.org>
-
-pkgbase=webkitgtk
-pkgname=(webkitgtk webkitgtk2)
-pkgver=2.4.11
-pkgrel=2
-pkgdesc="GTK+ Web content engine library"
-arch=(i686 x86_64)
-url="http://webkitgtk.org/"
-license=(custom)
-depends=(libxt libxslt sqlite libsoup enchant libgl geoclue2 gst-plugins-base-libs
-         libsecret libwebp harfbuzz-icu)
-makedepends=(gtk3 gtk2 gperf gobject-introspection python2 mesa ruby)
-optdepends=('gst-plugins-base: free media decoding'
-            'gst-plugins-good: media decoding'
-            'gst-libav: nonfree media decoding')
-options=(!emptydirs)
-source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
-        webkitgtk-2.4.9-abs.patch)
-sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7'
-            'ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70')
-
-prepare() {
-  mkdir build-gtk{,2} path
-  ln -s /usr/bin/python2 path/python
-
-  cd $pkgbase-$pkgver
-  patch -Np1 -i ../webkitgtk-2.4.9-abs.patch
-}
-
-_build() (
-  _ver="$1"; shift
-  cd build-${_ver}
-
-  PATH="$srcdir/path:$PATH"
-
-  ../$pkgbase-$pkgver/configure --prefix=/usr \
-    --libexecdir=/usr/lib/webkit${_ver} \
-    --enable-introspection \
-    --disable-webkit2 \
-    --disable-gtk-doc \
-    "$@"
-
-  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
-  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-
-  make all stamp-po
-)
-
-build() {
-  _build gtk
-  _build gtk2 --with-gtk=2.0
-}
-
-package_webkitgtk() {
-  depends+=(gtk3)
-  optdepends+=('gtk2: Netscape plugin support')
-  provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}")
-  conflicts=(webkitgtk3 libwebkit3)
-  replaces=(webkitgtk3 libwebkit3)
-
-  make -C build-gtk -j1 DESTDIR="$pkgdir" install
-  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
-    "$pkgdir/usr/share/licenses/webkitgtk/LICENSE"
-}
-
-package_webkitgtk2() {
-  pkgdesc+=" for GTK2"
-  depends+=(gtk2)
-  provides=("libwebkit=${pkgver}")
-  conflicts=(libwebkit)
-  replaces=(libwebkit)
-
-  make -C build-gtk2 -j1 DESTDIR="$pkgdir" install
-  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
-    "$pkgdir/usr/share/licenses/webkitgtk2/LICENSE"
-}

Copied: webkitgtk/repos/testing-x86_64/PKGBUILD (from rev 282381, webkitgtk/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-11-30 14:23:18 UTC (rev 282382)
@@ -0,0 +1,81 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+
+pkgbase=webkitgtk
+pkgname=(webkitgtk webkitgtk2)
+pkgver=2.4.11
+pkgrel=3
+pkgdesc="GTK+ Web content engine library"
+arch=(i686 x86_64)
+url="http://webkitgtk.org/"
+license=(custom)
+depends=(libxt libxslt sqlite libsoup enchant libgl geoclue2 gst-plugins-base-libs
+         libsecret libwebp harfbuzz-icu)
+makedepends=(gtk3 gtk2 gperf gobject-introspection python2 mesa ruby)
+optdepends=('gst-plugins-base: free media decoding'
+            'gst-plugins-good: media decoding'
+            'gst-libav: nonfree media decoding')
+options=(!emptydirs)
+source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
+        webkitgtk-2.4.9-abs.patch)
+sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7'
+            'ec294bbb5588a1802a68e3615c6718486b22f922645c5fef686d3d103014bf70')
+
+prepare() {
+  mkdir build-gtk{,2} path
+  ln -s /usr/bin/python2 path/python
+
+  cd $pkgbase-$pkgver
+  patch -Np1 -i ../webkitgtk-2.4.9-abs.patch
+}
+
+_build() (
+  _ver="$1"; shift
+  cd build-${_ver}
+
+  PATH="$srcdir/path:$PATH"
+
+  CXXFLAGS+=" -fno-delete-null-pointer-checks"
+  CFLAGS+=" -fno-delete-null-pointer-checks"
+
+  ../$pkgbase-$pkgver/configure --prefix=/usr \
+    --libexecdir=/usr/lib/webkit${_ver} \
+    --enable-introspection \
+    --disable-webkit2 \
+    --disable-gtk-doc \
+    "$@"
+
+  # https://bugzilla.gnome.org/show_bug.cgi?id=655517
+  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make all stamp-po
+)
+
+build() {
+  _build gtk
+  _build gtk2 --with-gtk=2.0
+}
+
+package_webkitgtk() {
+  depends+=(gtk3)
+  optdepends+=('gtk2: Netscape plugin support')
+  provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}")
+  conflicts=(webkitgtk3 libwebkit3)
+  replaces=(webkitgtk3 libwebkit3)
+
+  make -C build-gtk -j1 DESTDIR="$pkgdir" install
+  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
+    "$pkgdir/usr/share/licenses/webkitgtk/LICENSE"
+}
+
+package_webkitgtk2() {
+  pkgdesc+=" for GTK2"
+  depends+=(gtk2)
+  provides=("libwebkit=${pkgver}")
+  conflicts=(libwebkit)
+  replaces=(libwebkit)
+
+  make -C build-gtk2 -j1 DESTDIR="$pkgdir" install
+  install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
+    "$pkgdir/usr/share/licenses/webkitgtk2/LICENSE"
+}

Deleted: testing-x86_64/webkitgtk-2.4.9-abs.patch
===================================================================
--- testing-x86_64/webkitgtk-2.4.9-abs.patch	2016-11-30 14:23:12 UTC (rev 282381)
+++ testing-x86_64/webkitgtk-2.4.9-abs.patch	2016-11-30 14:23:18 UTC (rev 282382)
@@ -1,26 +0,0 @@
-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;

Copied: webkitgtk/repos/testing-x86_64/webkitgtk-2.4.9-abs.patch (from rev 282381, webkitgtk/trunk/webkitgtk-2.4.9-abs.patch)
===================================================================
--- testing-x86_64/webkitgtk-2.4.9-abs.patch	                        (rev 0)
+++ testing-x86_64/webkitgtk-2.4.9-abs.patch	2016-11-30 14:23:18 UTC (rev 282382)
@@ -0,0 +1,26 @@
+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;



More information about the arch-commits mailing list