[mozjs17] fix build on 64-bit big-endians
Dan Horák
sharkcz at fedoraproject.org
Fri May 17 15:32:16 UTC 2013
commit f1031b6b6bfe81623695029cd7dfbd742962106d
Author: Dan Horák <dan at danny.cz>
Date: Fri May 17 17:32:05 2013 +0200
fix build on 64-bit big-endians
js17-jsval.patch | 11 +++++++++++
mozjs17.spec | 8 +++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/js17-jsval.patch b/js17-jsval.patch
new file mode 100644
index 0000000..149ea86
--- /dev/null
+++ b/js17-jsval.patch
@@ -0,0 +1,11 @@
+diff -up mozjs17.0.0/js/src/jsval.h.jsval mozjs17.0.0/js/src/jsval.h
+--- mozjs17.0.0/js/src/jsval.h.jsval 2013-05-17 16:31:03.000000000 +0200
++++ mozjs17.0.0/js/src/jsval.h 2013-05-17 16:31:13.000000000 +0200
+@@ -304,7 +304,6 @@ typedef union jsval_layout
+ int32_t i32;
+ uint32_t u32;
+ JSWhyMagic why;
+- jsuword word;
+ } payload;
+ } s;
+ double asDouble;
diff --git a/mozjs17.spec b/mozjs17.spec
index 47a7e65..8bdcb97 100644
--- a/mozjs17.spec
+++ b/mozjs17.spec
@@ -1,7 +1,7 @@
Summary: JavaScript interpreter and libraries
Name: mozjs17
Version: 17.0.0
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2+ or LGPLv2+ or MPLv1.1
Group: Development/Languages
URL: http://www.mozilla.org/js/
@@ -13,6 +13,8 @@ BuildRequires: /usr/bin/python
BuildRequires: /usr/bin/autoconf-2.13
Patch0: js17-build-fixes.patch
+# makes mozjs to match js from xul 21
+Patch1: js17-jsval.patch
%description
JavaScript is the Netscape-developed object scripting language used in millions
@@ -36,6 +38,7 @@ you will need to install %{name}-devel.
rm js/src/editline -rf
rm js/src/ctypes/libffi -rf
%patch0 -p1
+%patch1 -p1
chmod a+x configure
(cd js/src && autoconf-2.13)
@@ -71,6 +74,9 @@ rm -f %{buildroot}%{_bindir}/js17-config
%{_includedir}/js-17.0
%changelog
+* Fri May 17 2013 Dan Horák <dan[at]danny.cz> - 17.0.0-4
+- fix build on 64-bit big-endians
+
* Mon Apr 15 2013 Colin Walters <walters at verbum.org> 17.0.0-3
- Delete js17, it is not used
More information about the scm-commits
mailing list