pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/webkit-gtk webkit-gtk: Add patches to fix the buil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7ec155dbe52d
branches:  trunk
changeset: 315016:7ec155dbe52d
user:      leot <leot%pkgsrc.org@localhost>
date:      Tue Nov 13 20:11:38 2018 +0000

description:
webkit-gtk: Add patches to fix the build on aarch64

Import/adapt patches from FreeBSD to fix the build on aarch64.

Thanks to <jakllsch>!

XXX: (There is a compiler warning about m_compareRegister bitfield
XXX:  that's probably needs XXX: further investigation the `: 6' should
XXX:  be probably `: 7')

diffstat:

 www/webkit-gtk/distinfo                                                       |   4 +-
 www/webkit-gtk/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h |  18 ++++++++++
 www/webkit-gtk/patches/patch-Source_JavaScriptCore_offlineasm_arm64.rb        |  17 +++++++++
 3 files changed, 38 insertions(+), 1 deletions(-)

diffs (64 lines):

diff -r 8b0150e2316e -r 7ec155dbe52d www/webkit-gtk/distinfo
--- a/www/webkit-gtk/distinfo   Tue Nov 13 19:33:34 2018 +0000
+++ b/www/webkit-gtk/distinfo   Tue Nov 13 20:11:38 2018 +0000
@@ -1,14 +1,16 @@
-$NetBSD: distinfo,v 1.109 2018/10/29 11:54:11 leot Exp $
+$NetBSD: distinfo,v 1.110 2018/11/13 20:11:38 leot Exp $
 
 SHA1 (webkitgtk-2.22.3.tar.xz) = c16129f4098b35597457255e63e60126ff3e6daa
 RMD160 (webkitgtk-2.22.3.tar.xz) = dbba6df5cc3129ef498980f8e9eadfb6b2e0f652
 SHA512 (webkitgtk-2.22.3.tar.xz) = 987c49d924be307d13ffba16d72d57c9aad5b2c540fe8e7120802ebc5a418aa0359e37bd2d2ea6f67af7fee3c585e2b53bc7e5940bf7cfd795be231b65b4931b
 Size (webkitgtk-2.22.3.tar.xz) = 16753248 bytes
 SHA1 (patch-CMakeLists.txt) = 2f05f3682bda601c99544dafd8e79bd622dfc5a5
+SHA1 (patch-Source_JavaScriptCore_assembler_ARM64Assembler.h) = 7479e5933df6f8d1670e362ae68c253362eda9e9
 SHA1 (patch-Source_JavaScriptCore_assembler_ARMAssembler.h) = bae08310572c2e23c69cbf6aa9760a67345dcfe3
 SHA1 (patch-Source_JavaScriptCore_assembler_MacroAssemblerARM.cpp) = ab75ef8714e5071fcd094735717a2f5d0321c747
 SHA1 (patch-Source_JavaScriptCore_heap_MarkedSpace.cpp) = e6a23d5ef22bddd0a9606fb0e472960e4cf5673e
 SHA1 (patch-Source_JavaScriptCore_jit_ExecutableAllocator.cpp) = 36d29a5db03c2413ae93224ac391f3ff248983e8
+SHA1 (patch-Source_JavaScriptCore_offlineasm_arm64.rb) = 784baf6f3baba2986fbcb7aa10e7abed8f8c6336
 SHA1 (patch-Source_JavaScriptCore_runtime_MachineContext.h) = 23bc86a389f8009ec829c3ee0fe3effe3f20b012
 SHA1 (patch-Source_ThirdParty_gtest_include_gtest_internal_gtest-port.h) = f1eee7f9d3012edee1915234c837cff820f97092
 SHA1 (patch-Source_WTF_wtf_Platform.h) = 5cf36cf7cca8a39d75a788ca988758927b421d95
diff -r 8b0150e2316e -r 7ec155dbe52d www/webkit-gtk/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/webkit-gtk/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h     Tue Nov 13 20:11:38 2018 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-Source_JavaScriptCore_assembler_ARM64Assembler.h,v 1.1 2018/11/13 20:11:38 leot Exp $
+
+Add support for FreeBSD and NetBSD.
+
+Based on patch from FreeBSD ports but using __builtin___clear_cache()
+instead of __clear_cache() (the former is also available in gcc).
+
+--- Source/JavaScriptCore/assembler/ARM64Assembler.h.orig      2018-10-27 21:20:55.000000000 +0000
++++ Source/JavaScriptCore/assembler/ARM64Assembler.h
+@@ -2863,6 +2863,8 @@ public:
+     {
+ #if OS(IOS)
+         sys_cache_control(kCacheFunctionPrepareForExecution, code, size);
++#elif OS(FREEBSD) || OS(NETBSD)
++        __builtin___clear_cache(code, reinterpret_cast<char*>(code) + size);
+ #elif OS(FUCHSIA)
+         zx_cache_flush(code, size, ZX_CACHE_FLUSH_INSN);
+ #elif OS(LINUX)
diff -r 8b0150e2316e -r 7ec155dbe52d www/webkit-gtk/patches/patch-Source_JavaScriptCore_offlineasm_arm64.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/webkit-gtk/patches/patch-Source_JavaScriptCore_offlineasm_arm64.rb    Tue Nov 13 20:11:38 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-Source_JavaScriptCore_offlineasm_arm64.rb,v 1.1 2018/11/13 20:11:38 leot Exp $
+
+Add support for FreeBSD and NetBSD.
+
+From FreeBSD ports.
+
+--- Source/JavaScriptCore/offlineasm/arm64.rb.orig     2018-10-27 21:20:55.000000000 +0000
++++ Source/JavaScriptCore/offlineasm/arm64.rb
+@@ -938,7 +938,7 @@ class Instruction
+             $asm.puts "ldr #{operands[1].arm64Operand(:ptr)}, [#{operands[1].arm64Operand(:ptr)}, #{operands[0].asmLabel}@GOTPAGEOFF]"
+ 
+             # On Linux, use ELF GOT relocation specifiers.
+-            $asm.putStr("#elif OS(LINUX)")
++            $asm.putStr("#elif OS(LINUX) || OS(FREEBSD) || OS(NETBSD)")
+             $asm.puts "adrp #{operands[1].arm64Operand(:ptr)}, :got:#{operands[0].asmLabel}"
+             $asm.puts "ldr #{operands[1].arm64Operand(:ptr)}, [#{operands[1].arm64Operand(:ptr)}, :got_lo12:#{operands[0].asmLabel}]"
+ 



Home | Main Index | Thread Index | Old Index