[packages/mozjs17] - fix building on x32 - rel 4
baggins
baggins at pld-linux.org
Tue Oct 18 20:39:18 CEST 2016
commit 8cd9f795af6ec0d1f543fb14fb427b3228b2e820
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Oct 18 20:39:01 2016 +0200
- fix building on x32
- rel 4
Disable-js-JIT-on-x32.patch | 26 ++++++++++++++++++++++++++
mozjs17.spec | 4 +++-
2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/mozjs17.spec b/mozjs17.spec
index 6f01d91..4b7d5a1 100644
--- a/mozjs17.spec
+++ b/mozjs17.spec
@@ -3,12 +3,13 @@ Summary: SpiderMonkey 17 - JavaScript 1.8.6 implementation
Summary(pl.UTF-8): SpiderMonkey 17 - implementacja języka JavaScript 1.8.6
Name: mozjs17
Version: 17.0.0
-Release: 3
+Release: 4
License: MPL 1.1 or GPL v2+ or LGPL v2.1+
Group: Libraries
Source0: http://ftp.mozilla.org/pub/mozilla.org/js/mozjs%{version}.tar.gz
# Source0-md5: 20b6f8f1140ef6e47daa3b16965c9202
Patch0: perl.patch
+Patch1: Disable-js-JIT-on-x32.patch
URL: http://www.mozilla.org/js/
BuildRequires: libffi-devel >= 5:3.0.9
BuildRequires: libstdc++-devel
@@ -68,6 +69,7 @@ Statyczna wersja biblioteki JavaScript.
%prep
%setup -q -n mozjs%{version}
%patch0 -p1
+%patch1 -p1
%build
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 <kilobyte at angband.pl>
+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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mozjs17.git/commitdiff/8cd9f795af6ec0d1f543fb14fb427b3228b2e820
More information about the pld-cvs-commit
mailing list