Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=gcc6.git;a=commitdiff;h=18fa37ba6012d7b1c214c6eea19d85854ae6c65c

commit 18fa37ba6012d7b1c214c6eea19d85854ae6c65c
Author: crazy <[email protected]>
Date:   Sun Sep 25 23:40:51 2016 +0200

webkit-gtk2-2.4.9-2-x86_64
* rebuild with tc
* added gcc6 patch and C/CXX workaround flags

diff --git a/source/xlib-extra/webkit-gtk2/FrugalBuild 
b/source/xlib-extra/webkit-gtk2/FrugalBuild
index 6c8526a..2513253 100644
--- a/source/xlib-extra/webkit-gtk2/FrugalBuild
+++ b/source/xlib-extra/webkit-gtk2/FrugalBuild
@@ -4,16 +4,16 @@
pkgname=webkit-gtk2
_F_archive_name=webkitgtk
pkgver=2.4.9
-pkgrel=1
+pkgrel=2
pkgdesc="GTK+ Web content engine library for GTK+ 2.0"
url="http://www.webkit.org";
-depends=('enchant>=1.6.0-4' 'gst1-plugins-base>=1.6.3' 'gtk+2-libs>=2.24.29-2' 
'libsecret>=0.18.4' 'libsoup>=2.52.2-2' 'libxslt>=1.1.28-3' 'libwebp>=0.5.0' 
'libxt>=0.5.0-1')
-makedepends=('ruby' 'gperf' 'x11-protos' 'gtk+2>=2.24.29-2' 
'gobject-introspection')
+depends=('enchant>=1.6.0-4' 'gst1-plugins-base>=1.9.2-2' 
'gtk+2-libs>=2.24.31-2' 'libsecret>=0.18.4' 'libsoup>=2.56.0' 
'libxslt>=1.1.28-3' 'libwebp>=0.5.0' 'libxt>=0.5.0-1')
+makedepends=('ruby' 'gperf' 'x11-protos' 'gtk+2>=2.24.31-2' 
'gobject-introspection>=1.50.0')
groups=('xlib-extra')
archs=('i686' 'x86_64')
replaces=('webkit')
conflicts=('webkit')
-source=(http://webkitgtk.org/releases/$_F_archive_name-${pkgver}.tar.xz)
+source=(http://webkitgtk.org/releases/$_F_archive_name-${pkgver}.tar.xz 
webkitgtk-2.4.9-abs.patch)
up2date="lynx -dump -source http://webkitgtk.org/releases |grep 'webkitgtk-2.4' 
| sort -n -r | sed 's/.*>.*-\(.*\).tar.xz.*/\1/' | head -n1"
options=('scriptlet')
_F_gnome_glib="y"
@@ -24,7 +24,12 @@ Fconfopts+=" --disable-webkit2 \
--disable-gtk-doc-html \
--with-gtk=2.0"

-sha1sums=('fbe02db8a4f01a70e7cdf0d16f8a18463e18b104')
+sha1sums=('fbe02db8a4f01a70e7cdf0d16f8a18463e18b104' \
+          '81b98775c1a7a5944a6f1f9fe18f4c9260202bd3')
+
+## gcc6 workaround
+CXXFLAGS+=" -fno-delete-null-pointer-checks"
+CFLAGS+=" -fno-delete-null-pointer-checks"

build() {
Fcd
diff --git a/source/xlib-extra/webkit-gtk2/webkitgtk-2.4.9-abs.patch 
b/source/xlib-extra/webkit-gtk2/webkitgtk-2.4.9-abs.patch
new file mode 100644
index 0000000..9a1c5f9
--- /dev/null
+++ b/source/xlib-extra/webkit-gtk2/webkitgtk-2.4.9-abs.patch
@@ -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;
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to