[packages/mozjs52] Add more fixes for x32. Release 3
megabajt
megabajt at pld-linux.org
Tue Oct 17 21:33:58 CEST 2017
commit 3993ca457cf3815e2899d9c88f0b25ad55791d33
Author: Marcin Banasiak <marcin.banasiak at gmail.com>
Date: Tue Oct 17 21:33:06 2017 +0200
Add more fixes for x32. Release 3
mozjs52-x32.patch | 25 +++++++++++++++++++++++++
mozjs52.spec | 2 +-
2 files changed, 26 insertions(+), 1 deletion(-)
---
diff --git a/mozjs52.spec b/mozjs52.spec
index 10c20ab..fe484a8 100644
--- a/mozjs52.spec
+++ b/mozjs52.spec
@@ -2,7 +2,7 @@ Summary: SpiderMonkey 52 - JavaScript implementation
Summary(pl.UTF-8): SpiderMonkey 52 - implementacja języka JavaScript
Name: mozjs52
Version: 52.4.0
-Release: 2
+Release: 3
License: MPL v2.0
Group: Libraries
Source0: https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
diff --git a/mozjs52-x32.patch b/mozjs52-x32.patch
index e821824..3f4b17b 100644
--- a/mozjs52-x32.patch
+++ b/mozjs52-x32.patch
@@ -31,3 +31,28 @@
#include <sys/sysctl.h>
#endif
#include <sys/uio.h>
+--- firefox-52.4.0esr/js/src/old-configure.in.djit 2017-10-16 21:07:31.353333333 +0200
++++ firefox-52.4.0esr/js/src/old-configure.in 2017-10-16 21:37:42.479999989 +0200
+@@ -945,6 +945,9 @@ fi
+ dnl Configure JIT support
+
+ case "$target" in
++x86_64*-gnux32)
++ AC_DEFINE(JS_CPU_X86)
++ ;;
+ i?86-*)
+ ENABLE_ION=1
+ AC_DEFINE(JS_CPU_X86)
+--- firefox-52.4.0esr/js/src/jsmath.cpp.x32 2017-10-17 08:33:51.773333322 +0200
++++ firefox-52.4.0esr/js/src/jsmath.cpp 2017-10-17 08:38:07.073333327 +0200
+@@ -62,7 +62,9 @@
+
+ // Older glibc versions don't define SYS_getrandom, so we define it here if
+ // it's not available. See bug 995069.
+-# if defined(__x86_64__)
++# if defined(__x86_64__) && defined(__ILP32__)
++# define GETRANDOM_NR (0x40000000 + 318)
++# elif defined(__x86_64__)
+ # define GETRANDOM_NR 318
+ # elif defined(__i386__)
+ # define GETRANDOM_NR 355
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mozjs52.git/commitdiff/3993ca457cf3815e2899d9c88f0b25ad55791d33
More information about the pld-cvs-commit
mailing list