Browse Source

mozjs78-78.13.0-1

Tomohiro "Tomo-p" KATO 2 years ago
parent
commit
c3f9561cdb
1 changed files with 32 additions and 5 deletions
  1. 32 5
      m/mozjs78/mozjs78-vl.spec

+ 32 - 5
m/mozjs78/mozjs78-vl.spec

@@ -23,7 +23,7 @@
 %endif
 
 Name:           mozjs%{major}
-Version:        78.12.0
+Version:        78.13.0
 Release:        1%{?_dist_release}
 Summary:        SpiderMonkey JavaScript library
 Group:          system
@@ -56,7 +56,16 @@ Patch17:        armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch
 Patch18:        spidermonkey_style_check_disable_s390x.patch
 Patch19:        0001-Skip-failing-tests-on-ppc64-and-s390x.patch
 
-BuildRequires: make
+# Fix for https://bugzilla.mozilla.org/show_bug.cgi?id=1644600 ( SharedArrayRawBufferRefs is not exported )
+# https://github.com/0ad/0ad/blob/83e81362d850cc6f2b3b598255b873b6d04d5809/libraries/source/spidermonkey/FixSharedArray.diff
+Patch30:        FixSharedArray.diff
+
+# Avoid autoconf213 dependency, backported from upstream
+# https://bugzilla.mozilla.org/show_bug.cgi?id=1663863
+Patch31:        0002-D89554-autoconf1.diff
+Patch32:        0003-D94538-autoconf2.diff
+
+BuildRequires:  make
 BuildRequires:  autoconf213
 BuildRequires:  cargo
 BuildRequires:  clang-devel
@@ -135,6 +144,22 @@ pushd ../..
 # Fixes for ppc64 and s390x, there is no need to keep it in ifarch here since mozilla tests support ifarch conditions
 %patch19 -p1
 
+# Export SharedArrayRawBufferRefs
+%patch30 -p1
+
+%if 0
+# Avoid autoconf213 dependency
+%patch31 -p1 -b .autoconf213
+%patch32 -p1 -b .autoconf213-2
+AC_MACRODIR=`pwd`/build/autoconf
+sed -i \
+	-e 's|@SHELL@|/bin/sh|' \
+	-e 's|@M4@|/usr/bin/m4|' \
+	-e 's|@AWK@|/bin/awk|' \
+	-e "s|@AC_MACRODIR@|$AC_MACRODIR|" \
+	build/autoconf/autoconf.sh
+%endif
+
 # Copy out the LICENSE file
 cp LICENSE js/src/
 popd
@@ -259,9 +284,6 @@ PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 1800 --no-progress
 %endif
 
 
-%ldconfig_scriptlets
-
-
 %files
 %doc README.html
 %license LICENSE
@@ -275,6 +297,11 @@ PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 1800 --no-progress
 
 
 %changelog
+* Tue Aug 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 78.13.0-1
+- new upstream release.
+- dropped ldconfig scriptlets.
+- imported Patch30-32 from rawhide.
+
 * Fri Jul 16 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 78.12.0-1
 - new upstream release.