diff --git a/mozjs60.spec b/mozjs60.spec index 521390b..6eaf989 100644 --- a/mozjs60.spec +++ b/mozjs60.spec @@ -42,6 +42,10 @@ Patch14: init_patch.patch Patch15: enddianness.patch # https://salsa.debian.org/gnome-team/mozjs60/blob/debian/master/debian/patches/jsproperty-endian.patch Patch16: jsproperty-endian.patch +# https://salsa.debian.org/gnome-team/mozjs60/blob/debian/master/debian/patches/tests-Skip-a-test-on-s390x.patch +Patch17: tests-Skip-a-test-on-s390x.patch +# https://salsa.debian.org/gnome-team/mozjs60/blob/debian/master/debian/patches/tests-Expect-a-test-to-fail-on-big-endian.patch +Patch18: tests-Expect-a-test-to-fail-on-big-endian.patch # Patches from Fedora firefox package: Patch26: build-icu-big-endian.patch @@ -98,6 +102,8 @@ pushd ../.. # s390x fixes %patch15 -p1 %patch16 -p1 +%patch17 -p1 +%patch18 -p1 # Patch for big endian platforms only %if 0%{?big_endian} @@ -210,7 +216,7 @@ ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so %check # Run SpiderMonkey tests %{__python2} tests/jstests.py -d -s -t 1800 --no-progress ../../js/src/js/src/shell/js \ -%ifarch %{ix86} x86_64 %{arm} aarch64 ppc ppc64le +%ifarch %{ix86} x86_64 %{arm} aarch64 ppc ppc64le s390x ; %else || : @@ -218,7 +224,7 @@ ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so # Run basic JIT tests %{__python2} jit-test/jit_test.py -s -t 1800 --no-progress ../../js/src/js/src/shell/js basic \ -%ifarch %{ix86} x86_64 %{arm} aarch64 ppc ppc64le +%ifarch %{ix86} x86_64 %{arm} aarch64 ppc ppc64le s390x ; %else || : @@ -239,6 +245,7 @@ ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so %changelog * Mon Feb 17 2020 Kalev Lember - 60.9.0-5 - Update enddianness.patch with more s390x fixes +- Enable tests on s390x again * Wed Jan 29 2020 Fedora Release Engineering - 60.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/tests-Expect-a-test-to-fail-on-big-endian.patch b/tests-Expect-a-test-to-fail-on-big-endian.patch new file mode 100644 index 0000000..6b20753 --- /dev/null +++ b/tests-Expect-a-test-to-fail-on-big-endian.patch @@ -0,0 +1,24 @@ +From: Simon McVittie +Date: Fri, 28 Sep 2018 09:51:33 +0100 +Subject: tests: Expect a test to fail on big-endian + +Signed-off-by: Simon McVittie +Forwarded: no +--- + js/src/tests/jstests.list | 3 +++ + 1 file changed, 3 insertions(+) + +Index: firefox-60.9.0/js/src/tests/jstests.list +=================================================================== +--- firefox-60.9.0.orig/js/src/tests/jstests.list 2019-12-10 11:04:22.464247245 +0100 ++++ firefox-60.9.0/js/src/tests/jstests.list 2019-12-10 11:15:21.496264080 +0100 +@@ -451,6 +451,8 @@ + # + skip-if(xulRuntime.XPCOMABI.match(/s390x|ppc64-/)) script non262/extensions/clone-errors.js + ++# Assumes little-endian IEEE representation of floating point numbers ++fails-if(xulRuntime.XPCOMABI.match(/s390x|ppc64-|ppc-/)) script test262/built-ins/TypedArray/prototype/set/typedarray-arg-set-values-same-buffer-other-type.js + + ########################################################### + # Tests disabled due to issues in test262 importer script # + diff --git a/tests-Skip-a-test-on-s390x.patch b/tests-Skip-a-test-on-s390x.patch new file mode 100644 index 0000000..6c57b53 --- /dev/null +++ b/tests-Skip-a-test-on-s390x.patch @@ -0,0 +1,16 @@ +Index: firefox-60.9.0/js/src/tests/jstests.list +=================================================================== +--- firefox-60.9.0.orig/js/src/tests/jstests.list 2019-12-10 11:03:40.064246162 +0100 ++++ firefox-60.9.0/js/src/tests/jstests.list 2019-12-10 11:04:22.464247245 +0100 +@@ -447,6 +447,10 @@ + # https://bugzilla.mozilla.org/show_bug.cgi?id=1321616 + skip script test262/annexB/built-ins/Function/createdynfn-html-close-comment-params.js + ++# Crashes on s390x and ppc64, avoid it ++# ++skip-if(xulRuntime.XPCOMABI.match(/s390x|ppc64-/)) script non262/extensions/clone-errors.js ++ + + ########################################################### + # Tests disabled due to issues in test262 importer script # +