summarylogtreecommitdiffstats
path: root/0002-disable-v8snapshot.patch
diff options
context:
space:
mode:
authoraur@manjaro2016-08-10 11:54:26 +0200
committeraur@manjaro2016-08-19 10:09:38 +0200
commitc7a85a4b57e472ee534cfa044f1b3fb00d9836ca (patch)
treea1d7019cdb4336921722f69f72502479ad845afd /0002-disable-v8snapshot.patch
parent4c43c4ee7c844f050957899c0acea8ff61ccc22e (diff)
downloadaur-c7a85a4b57e472ee534cfa044f1b3fb00d9836ca.tar.gz
[5.1.1-5] make everything compile with gcc 6.1
Diffstat (limited to '0002-disable-v8snapshot.patch')
-rw-r--r--0002-disable-v8snapshot.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/0002-disable-v8snapshot.patch b/0002-disable-v8snapshot.patch
new file mode 100644
index 00000000000..bdf78448f0e
--- /dev/null
+++ b/0002-disable-v8snapshot.patch
@@ -0,0 +1,69 @@
+From f855c6b7ea72e84ba455026b4b80ebf3a2cbff32 Mon Sep 17 00:00:00 2001
+From: "aur@manjaro" <aur@manjaro>
+Date: Thu, 18 Aug 2016 12:05:36 +0200
+Subject: [PATCH] disable v8snapshot
+
+See http://lists.busybox.net/pipermail/buildroot/2013-May/072357.html
+
+# Hi Arnout & Thomas,
+#
+# Thanks for tips. It got me digging in the (hopefully) right direction.
+#
+# The issue is basically that host tool "mkv8snapshot" which is part of
+# qtjsbackend is segfaulting -
+#
+# mkv8snapshot[29356]: segfault at 0 ip 0833e3b9 sp bf8ec040 error 4 in
+# mkv8snapshot
+#
+# I still haven't been able to determine why this happens. But the solution
+# that works for me is to disable its usage during the Qt build as per the
+# info in this mail trail from Qt-project
+# http://comments.gmane.org/gmane.comp.lib.qt.devel/6101
+#
+# So I added a patch as per below... and no more issues!
+#
+# diff -urN qt-everywhere-commercial-src-5.0.2_orig//qtbase/configure
+# qt-everywhere-commercial-src-5.0.2//qtbase/configure---
+# qt-everywhere-commercial-src-5.0.2_orig//qtbase/configure 2013-05-09
+# 18:28:22.615623889 +0530
+# +++ qt-everywhere-commercial-src-5.0.2//qtbase/configure 2013-05-16
+# 18:56:21.124371988 +0530
+# @@ -471,7 +471,7 @@
+# CFG_SKIP_MODULES=""
+# CFG_RELEASE_QMAKE=no
+# CFG_AUDIO_BACKEND=auto
+# -CFG_V8SNAPSHOT=auto
+# +CFG_V8SNAPSHOT=no
+# CFG_QML_DEBUG=yes
+# CFG_JAVASCRIPTCORE_JIT=auto
+# CFG_PKGCONFIG=auto
+# I can't exactly figure out why this happens esp becuse it If build qt5
+# manually "by hand" using the same process (but just outside buildroot, but
+# with the same cross-toolchain) i dont see this error as the configure
+# script detects that this tool is not required (canUseV8Snapshot gets set to
+# no).
+#
+# Any reasons why this is happening?
+#
+# regards,
+# Carlos
+---
+ qtbase/configure | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/qtbase/configure b/qtbase/configure
+index 140c7b4..3f8735b 100755
+--- a/qtbase/configure
++++ b/qtbase/configure
+@@ -891,7 +891,7 @@ CFG_SKIP_MODULES=""
+ CFG_COMPILE_EXAMPLES=yes
+ CFG_RELEASE_QMAKE=no
+ CFG_AUDIO_BACKEND=auto
+-CFG_V8SNAPSHOT=auto
++CFG_V8SNAPSHOT=no
+ CFG_QML_DEBUG=yes
+ CFG_JAVASCRIPTCORE_JIT=auto
+ CFG_PKGCONFIG=auto
+--
+2.9.2
+