[gnome-build-meta/ptomato/add-mozjs68] sdk/mozjs68: import a patch to workaround arm compilation issue



commit 592ca77c60d4e55e2323feebcb2589dd57189f42
Author: Jordan Petridis <jordan centricular com>
Date:   Thu Jan 23 15:28:44 2020 +0200

    sdk/mozjs68: import a patch to workaround arm compilation issue
    
    Our kernel headers don't include the expected structs needed
    to compile the code.
    
    https://bugzilla.mozilla.org/show_bug.cgi?id=1526653

 elements/sdk/mozjs68.bst                                       |  2 ++
 .../armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch   | 10 ++++++++++
 2 files changed, 12 insertions(+)
---
diff --git a/elements/sdk/mozjs68.bst b/elements/sdk/mozjs68.bst
index db099ad5..4efdcf66 100644
--- a/elements/sdk/mozjs68.bst
+++ b/elements/sdk/mozjs68.bst
@@ -2,6 +2,8 @@ kind: manual
 sources:
 - kind: tar
   url: gnome_download:teams/releng/tarballs-needing-help/mozjs/mozjs-68.4.2.tar.bz2
+- kind: patch
+  path: files/mozjs68/armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch
 build-depends:
 - sdk/python2.bst
 - freedesktop-sdk.bst:components/autoconf.bst
diff --git a/files/mozjs68/armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch 
b/files/mozjs68/armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch
new file mode 100644
index 00000000..0cb26ac7
--- /dev/null
+++ b/files/mozjs68/armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch
@@ -0,0 +1,10 @@
+--- firefox-68.0/js/src/wasm/WasmSignalHandlers.cpp
++++ firefox-68.0/js/src/wasm/WasmSignalHandlers.cpp
+@@ -243,7 +243,7 @@
+ // If you run into compile problems on a tier-3 platform, you can disable the
+ // emulation here.
+
+-#if defined(__linux__) && defined(__arm__)
++#if 0 && defined(__linux__) && defined(__arm__)
+ #  define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
+ #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]