commit ba14323bb1df7ede030a2b40be3f1cdacdca7a19
Author: Marcin Banasiak <[email protected]>
Date:   Tue Mar 21 08:27:26 2017 +0100

    Added Disable-js-JIT-on-x32 and -x32 patches to fix build on x32

 Disable-js-JIT-on-x32.patch | 26 ++++++++++++++++++++++++++
 mozjs38-x32.patch           | 11 +++++++++++
 mozjs38.spec                |  4 ++++
 3 files changed, 41 insertions(+)
---
diff --git a/mozjs38.spec b/mozjs38.spec
index c46fa3d..a8679e7 100644
--- a/mozjs38.spec
+++ b/mozjs38.spec
@@ -11,6 +11,8 @@ Patch0:               %{name}-shell-version.patch
 Patch1:                %{name}-pkg-config-version.patch
 Patch2:                %{name}-1269317.patch
 Patch3:                %{name}-system-virtualenv.patch
+Patch4:                Disable-js-JIT-on-x32.patch
+Patch5:                %{name}-x32.patch
 URL:           
https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/38
 BuildRequires: libffi-devel >= 5:3.0.9
 BuildRequires: libstdc++-devel >= 6:4.4
@@ -61,6 +63,8 @@ Pliki nagłówkowe do biblioteki JavaScript.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 cd js/src
 
diff --git a/Disable-js-JIT-on-x32.patch b/Disable-js-JIT-on-x32.patch
new file mode 100644
index 0000000..d5a603d
--- /dev/null
+++ b/Disable-js-JIT-on-x32.patch
@@ -0,0 +1,26 @@
+Description: Disable the js JIT on x32.
+Author: Adam Borowski <[email protected]>
+Index: mozjs24-24.2.0/js/src/configure.in
+===================================================================
+--- mozjs24-24.2.0.orig/js/src/configure.in
++++ mozjs24-24.2.0/js/src/configure.in
+@@ -2072,6 +2072,8 @@ fi
+ dnl Configure JIT support
+ 
+ case "$target" in
++x86_64*-gnux32)
++    ;;
+ i?86-*)
+     ENABLE_METHODJIT=1
+     ENABLE_ION=1
+--- mozjs-24.2.0/js/src/configure~     2013-12-11 23:23:20.000000000 +0100
++++ mozjs-24.2.0/js/src/configure      2015-03-23 22:55:24.995319443 +0100
+@@ -8243,6 +8243,8 @@
+ 
+ 
+ case "$target" in
++x86_64*-gnux32)
++    ;;
+ i?86-*)
+     ENABLE_METHODJIT=1
+     ENABLE_ION=1
diff --git a/mozjs38-x32.patch b/mozjs38-x32.patch
new file mode 100644
index 0000000..7b91a59
--- /dev/null
+++ b/mozjs38-x32.patch
@@ -0,0 +1,11 @@
+--- mozilla-esr38/js/src/jstypes.h.x32fix      2017-03-21 08:17:52.446161040 
+0100
++++ mozilla-esr38/js/src/jstypes.h     2017-03-21 08:18:23.531014466 +0100
+@@ -142,7 +142,7 @@
+ # endif
+ #elif defined(__GNUC__)
+ /* Additional GCC defines are when running on Solaris, AIX, and HPUX */
+-# if defined(__x86_64__) || defined(__sparcv9) || \
++# if (defined(__x86_64__) && !defined(__ILP32__)) || defined(__sparcv9) || \
+         defined(__64BIT__) || defined(__LP64__)
+ #  define JS_64BIT
+ # endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mozjs38.git/commitdiff/ba14323bb1df7ede030a2b40be3f1cdacdca7a19

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to