Switch to system-icu everywhere
This commit is contained in:
parent
484fe87ff0
commit
217b2159dc
19
known_failures.txt
Normal file
19
known_failures.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
non262/Intl/available-locales-resolved.js
|
||||||
|
non262/Intl/available-locales-supported.js
|
||||||
|
non262/Intl/DateTimeFormat/fractional-second-digits-append-item.js
|
||||||
|
non262/Intl/DateTimeFormat/tz-environment-variable.js
|
||||||
|
non262/Intl/DateTimeFormat/day-period-hour-cycle.js
|
||||||
|
non262/Intl/DateTimeFormat/timeZone_version.js
|
||||||
|
non262/Date/toString-localized.js
|
||||||
|
non262/Date/reset-time-zone-cache-same-offset.js
|
||||||
|
non262/Date/time-zones-imported.js
|
||||||
|
non262/Date/time-zones-historic.js
|
||||||
|
non262/Date/toString-localized-posix.js
|
||||||
|
non262/Date/time-zone-path.js
|
||||||
|
non262/Intl/DateTimeFormat/format.js
|
||||||
|
non262/Intl/DateTimeFormat/format_timeZone.js
|
||||||
|
non262/Intl/DisplayNames/region.js
|
||||||
|
non262/Intl/DisplayNames/language.js
|
||||||
|
non262/Intl/Locale/likely-subtags-generated.js
|
||||||
|
non262/Intl/Date/toLocaleDateString_timeZone.js
|
||||||
|
non262/Intl/Date/toLocaleString_timeZone.js
|
33
mozjs78.spec
33
mozjs78.spec
@ -6,12 +6,6 @@
|
|||||||
# Require tests to pass?
|
# Require tests to pass?
|
||||||
%global require_tests 1
|
%global require_tests 1
|
||||||
|
|
||||||
# Linking fails on armv7hl when using bundled icu, use system one for it, there are bunch of more test failures
|
|
||||||
# TODO: Examine the failures/maybe switch all arches to system-icu
|
|
||||||
%ifarch armv7hl
|
|
||||||
%global require_tests 0
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?build_with_lto}
|
%if 0%{?build_with_lto}
|
||||||
# LTO is default since F33 and F32 package is backported as is, so no LTO there
|
# LTO is default since F33 and F32 package is backported as is, so no LTO there
|
||||||
%else
|
%else
|
||||||
@ -30,13 +24,16 @@
|
|||||||
|
|
||||||
Name: mozjs%{major}
|
Name: mozjs%{major}
|
||||||
Version: 78.15.0
|
Version: 78.15.0
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: SpiderMonkey JavaScript library
|
Summary: SpiderMonkey JavaScript library
|
||||||
|
|
||||||
License: MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2+ and AFL and ASL 2.0
|
License: MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2+ and AFL and ASL 2.0
|
||||||
URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
|
URL: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
|
||||||
Source0: https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
|
Source0: https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
|
||||||
|
|
||||||
|
# Known failures with system libicu
|
||||||
|
Source1: known_failures.txt
|
||||||
|
|
||||||
# Patches from mozjs68, rebased for mozjs78:
|
# Patches from mozjs68, rebased for mozjs78:
|
||||||
Patch01: fix-soname.patch
|
Patch01: fix-soname.patch
|
||||||
Patch02: copy-headers.patch
|
Patch02: copy-headers.patch
|
||||||
@ -71,9 +68,6 @@ Patch30: FixSharedArray.diff
|
|||||||
Patch31: 0002-D89554-autoconf1.diff
|
Patch31: 0002-D89554-autoconf1.diff
|
||||||
Patch32: 0003-D94538-autoconf2.diff
|
Patch32: 0003-D94538-autoconf2.diff
|
||||||
|
|
||||||
%ifarch armv7hl
|
|
||||||
BuildRequires: libicu-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: cargo
|
BuildRequires: cargo
|
||||||
BuildRequires: clang-devel
|
BuildRequires: clang-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -83,6 +77,7 @@ BuildRequires: make
|
|||||||
%if !0%{?rhel}
|
%if !0%{?rhel}
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: llvm
|
BuildRequires: llvm
|
||||||
BuildRequires: llvm-devel
|
BuildRequires: llvm-devel
|
||||||
BuildRequires: rust
|
BuildRequires: rust
|
||||||
@ -154,6 +149,9 @@ pushd ../..
|
|||||||
|
|
||||||
# Copy out the LICENSE file
|
# Copy out the LICENSE file
|
||||||
cp LICENSE js/src/
|
cp LICENSE js/src/
|
||||||
|
|
||||||
|
# Copy out file containing known test failures with system libicu
|
||||||
|
cp %{SOURCE1} js/src/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Remove zlib directory (to be sure using system version)
|
# Remove zlib directory (to be sure using system version)
|
||||||
@ -181,11 +179,7 @@ export LINKFLAGS="%{?__global_ldflags}"
|
|||||||
export PYTHON="%{__python3}"
|
export PYTHON="%{__python3}"
|
||||||
|
|
||||||
%configure \
|
%configure \
|
||||||
%ifnarch armv7hl
|
|
||||||
--without-system-icu \
|
|
||||||
%else
|
|
||||||
--with-system-icu \
|
--with-system-icu \
|
||||||
%endif
|
|
||||||
--with-system-zlib \
|
--with-system-zlib \
|
||||||
--disable-tests \
|
--disable-tests \
|
||||||
--disable-strip \
|
--disable-strip \
|
||||||
@ -263,16 +257,16 @@ ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so
|
|||||||
%check
|
%check
|
||||||
# Run SpiderMonkey tests
|
# Run SpiderMonkey tests
|
||||||
%if 0%{?require_tests}
|
%if 0%{?require_tests}
|
||||||
PYTHONPATH=tests/lib %{__python3} tests/jstests.py -d -s -t 1800 --no-progress --wpt=disabled ../../js/src/dist/bin/js%{major}
|
PYTHONPATH=tests/lib %{__python3} tests/jstests.py -d -s -t 2400 --exclude-file=known_failures.txt --no-progress --wpt=disabled ../../js/src/dist/bin/js%{major}
|
||||||
%else
|
%else
|
||||||
PYTHONPATH=tests/lib %{__python3} tests/jstests.py -d -s -t 1800 --no-progress --wpt=disabled ../../js/src/dist/bin/js%{major} || :
|
PYTHONPATH=tests/lib %{__python3} tests/jstests.py -d -s -t 2400 --exclude-file=known_failures.txt --no-progress --wpt=disabled ../../js/src/dist/bin/js%{major} || :
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Run basic JIT tests
|
# Run basic JIT tests
|
||||||
%if 0%{?require_tests}
|
%if 0%{?require_tests}
|
||||||
PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 1800 --no-progress ../../js/src/dist/bin/js%{major} basic
|
PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 2400 --no-progress ../../js/src/dist/bin/js%{major} basic
|
||||||
%else
|
%else
|
||||||
PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 1800 --no-progress ../../js/src/dist/bin/js%{major} basic || :
|
PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 2400 --no-progress ../../js/src/dist/bin/js%{major} basic || :
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
@ -289,6 +283,9 @@ PYTHONPATH=tests/lib %{__python3} jit-test/jit_test.py -s -t 1800 --no-progress
|
|||||||
%{_includedir}/mozjs-%{major}/
|
%{_includedir}/mozjs-%{major}/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 78.15.0-6
|
||||||
|
- Switch to system-icu everywhere
|
||||||
|
|
||||||
* Sun Jul 24 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 78.15.0-5
|
* Sun Jul 24 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 78.15.0-5
|
||||||
- Fixup Python 3.11 build
|
- Fixup Python 3.11 build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user