pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/webkit-gtk



Module Name:    pkgsrc
Committed By:   leot
Date:           Tue Nov 13 20:11:38 UTC 2018

Modified Files:
        pkgsrc/www/webkit-gtk: distinfo
Added Files:
        pkgsrc/www/webkit-gtk/patches:
            patch-Source_JavaScriptCore_assembler_ARM64Assembler.h
            patch-Source_JavaScriptCore_offlineasm_arm64.rb

Log Message:
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')


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 pkgsrc/www/webkit-gtk/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h \
    pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_offlineasm_arm64.rb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/webkit-gtk/distinfo
diff -u pkgsrc/www/webkit-gtk/distinfo:1.109 pkgsrc/www/webkit-gtk/distinfo:1.110
--- pkgsrc/www/webkit-gtk/distinfo:1.109        Mon Oct 29 11:54:11 2018
+++ pkgsrc/www/webkit-gtk/distinfo      Tue Nov 13 20:11:38 2018
@@ -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

Added files:

Index: pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h
diff -u /dev/null pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h:1.1
--- /dev/null   Tue Nov 13 20:11:38 2018
+++ pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_assembler_ARM64Assembler.h        Tue Nov 13 20:11:38 2018
@@ -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)
Index: pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_offlineasm_arm64.rb
diff -u /dev/null pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_offlineasm_arm64.rb:1.1
--- /dev/null   Tue Nov 13 20:11:38 2018
+++ pkgsrc/www/webkit-gtk/patches/patch-Source_JavaScriptCore_offlineasm_arm64.rb       Tue Nov 13 20:11:38 2018
@@ -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