mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-14 11:03:49 +02:00
New package: mozjs78-78.2.0
This commit is contained in:
parent
940ef889e7
commit
7f79d53c81
13 changed files with 245 additions and 0 deletions
|
@ -3538,6 +3538,7 @@ libKF5Syndication.so.5 syndication-5.50.0_1
|
||||||
liblqr-1.so.0 liblqr-0.4.2_1
|
liblqr-1.so.0 liblqr-0.4.2_1
|
||||||
libmozjs-60.so.0 mozjs60-60.0.2_1
|
libmozjs-60.so.0 mozjs60-60.0.2_1
|
||||||
libmozjs-68.so.0 mozjs68-68.8.0_1
|
libmozjs-68.so.0 mozjs68-68.8.0_1
|
||||||
|
libmozjs-78.so.0 mozjs78-78.1.0_1
|
||||||
libebur128.so.1 libebur128-1.2.4_1
|
libebur128.so.1 libebur128-1.2.4_1
|
||||||
libgtksourceview-4.so.0 gtksourceview4-4.0.2_1
|
libgtksourceview-4.so.0 gtksourceview4-4.0.2_1
|
||||||
libwx_gtk3u_propgrid-3.0.so.0 wxWidgets-gtk3-3.0.4_1
|
libwx_gtk3u_propgrid-3.0.so.0 wxWidgets-gtk3-3.0.4_1
|
||||||
|
|
1
srcpkgs/mozjs78-devel
Symbolic link
1
srcpkgs/mozjs78-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
mozjs78
|
27
srcpkgs/mozjs78/patches/001-silence-sandbox-violations.patch
Normal file
27
srcpkgs/mozjs78/patches/001-silence-sandbox-violations.patch
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
"Carried over + updated from mozjs68"
|
||||||
|
Upstream: no
|
||||||
|
From 9ad10569e11a2fb96377188f895bc66abcc9511d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
||||||
|
Date: Wed, 5 Sep 2018 15:05:24 +0200
|
||||||
|
Subject: [PATCH] silence sandbox violations
|
||||||
|
|
||||||
|
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
||||||
|
---
|
||||||
|
python/mozbuild/mozbuild/frontend/emitter.py | 5 -----
|
||||||
|
1 file changed, 5 deletions(-)
|
||||||
|
|
||||||
|
--- a/python/mozbuild/mozbuild/frontend/emitter.py
|
||||||
|
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
|
||||||
|
@@ -1239,12 +1239,6 @@ class TreeMetadataEmitter(LoggingMixin):
|
||||||
|
'is a filename, but a directory is required: %s '
|
||||||
|
'(resolved to %s)' % (local_include, full_path),
|
||||||
|
context)
|
||||||
|
- if (full_path == context.config.topsrcdir or
|
||||||
|
- full_path == context.config.topobjdir):
|
||||||
|
- raise SandboxValidationError(
|
||||||
|
- 'Path specified in LOCAL_INCLUDES '
|
||||||
|
- '(%s) resolves to the topsrcdir or topobjdir (%s), which is '
|
||||||
|
- 'not allowed' % (local_include, full_path), context)
|
||||||
|
include_obj = LocalInclude(context, local_include)
|
||||||
|
local_includes.append(include_obj.path.full_path)
|
||||||
|
yield include_obj
|
22
srcpkgs/mozjs78/patches/002-fix-soname.patch
Normal file
22
srcpkgs/mozjs78/patches/002-fix-soname.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
"Carried over from mozjs68"
|
||||||
|
--- a/js/src/build/Makefile.in
|
||||||
|
+++ b/js/src/build/Makefile.in
|
||||||
|
@@ -78,6 +78,8 @@
|
||||||
|
endif
|
||||||
|
ifneq (,$(SHARED_LIBRARY))
|
||||||
|
$(SYSINSTALL) $(SHARED_LIBRARY) $(DESTDIR)$(libdir)
|
||||||
|
+ mv -f $(DESTDIR)$(libdir)/$(SHARED_LIBRARY) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY).0
|
||||||
|
+ ln -s $(SHARED_LIBRARY).0 $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
|
||||||
|
ifeq ($(OS_ARCH),Darwin)
|
||||||
|
install_name_tool -id $(abspath $(libdir)/$(SHARED_LIBRARY)) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
|
||||||
|
endif
|
||||||
|
--- a/js/src/build/moz.build
|
||||||
|
+++ b/js/src/build/moz.build
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
if CONFIG['JS_SHARED_LIBRARY']:
|
||||||
|
GeckoSharedLibrary('js', linkage=None)
|
||||||
|
SHARED_LIBRARY_NAME = CONFIG['JS_LIBRARY_NAME']
|
||||||
|
+ LDFLAGS += ['-Wl,-soname,lib{}.so.0'.format(SHARED_LIBRARY_NAME)]
|
||||||
|
|
||||||
|
# Ensure symbol versions of shared library on Linux do not conflict
|
||||||
|
# with those in libxul.
|
16
srcpkgs/mozjs78/patches/003-fix-wasm-arm.patch
Normal file
16
srcpkgs/mozjs78/patches/003-fix-wasm-arm.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
"Taken from firefox-esr"
|
||||||
|
--- a/js/src/wasm/WasmSignalHandlers.cpp
|
||||||
|
+++ b/js/src/wasm/WasmSignalHandlers.cpp
|
||||||
|
@@ -243,9 +243,9 @@
|
||||||
|
// If you run into compile problems on a tier-3 platform, you can disable the
|
||||||
|
// emulation here.
|
||||||
|
|
||||||
|
-#if defined(__linux__) && defined(__arm__)
|
||||||
|
-# define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
|
||||||
|
-#endif
|
||||||
|
+// #if defined(__linux__) && defined(__arm__)
|
||||||
|
+// # define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
|
||||||
|
+// #endif
|
||||||
|
|
||||||
|
#ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
|
||||||
|
# include <sys/user.h>
|
17
srcpkgs/mozjs78/patches/004-fix-musl-build.patch
Normal file
17
srcpkgs/mozjs78/patches/004-fix-musl-build.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
"Carried over from mozjs60"
|
||||||
|
Upstream: No
|
||||||
|
Reason: mozjs68 miscompiles on musl if built with HAVE_THREAD_TLS_KEYWORD:
|
||||||
|
https://github.com/void-linux/void-packages/issues/2598
|
||||||
|
diff --git a/js/src/old-configure.in b/js/src/old-configure.in
|
||||||
|
--- a/js/src/old-configure.in
|
||||||
|
+++ b/js/src/old-configure.in
|
||||||
|
@@ -1272,6 +1272,9 @@
|
||||||
|
*-android*|*-linuxandroid*)
|
||||||
|
:
|
||||||
|
;;
|
||||||
|
+ *-musl*)
|
||||||
|
+ :
|
||||||
|
+ ;;
|
||||||
|
*)
|
||||||
|
AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
|
||||||
|
;;
|
|
@ -0,0 +1,12 @@
|
||||||
|
Source:Fedora
|
||||||
|
Reason: Checks failed(Todo: Figure out why)
|
||||||
|
+++ a/config/run_spidermonkey_checks.py
|
||||||
|
+++ b/config/run_spidermonkey_checks.py
|
||||||
|
@@ -11,5 +11,5 @@
|
||||||
|
for script in scripts:
|
||||||
|
retcode = subprocess.call(
|
||||||
|
[sys.executable, script], cwd=buildconfig.topsrcdir)
|
||||||
|
- if retcode != 0:
|
||||||
|
- raise Exception(script + " failed")
|
||||||
|
+ #if retcode != 0:
|
||||||
|
+ # raise Exception(script + " failed")
|
10
srcpkgs/mozjs78/patches/006-mozjs78.pc-honor-sysroot.patch
Normal file
10
srcpkgs/mozjs78/patches/006-mozjs78.pc-honor-sysroot.patch
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
"Carried over from mozjs60"
|
||||||
|
Reason: Fix the '-include' directive, otherwise it tries to use the host's header
|
||||||
|
--- a/js/src/build/js.pc.in
|
||||||
|
+++ b/js/src/build/js.pc.in
|
||||||
|
@@ -11,4 +11,4 @@
|
||||||
|
# Use -isystem for includes rather than -I, to mark them as "system headers"
|
||||||
|
# that don't generate warning diagnostics. For justification, see
|
||||||
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1539036
|
||||||
|
-Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -isystem ${includedir}/@JS_LIBRARY_NAME@
|
||||||
|
+Cflags: -include ${pc_sysrootdir}${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -isystem ${includedir}/@JS_LIBRARY_NAME@
|
11
srcpkgs/mozjs78/patches/007-fix-mips-sgidefs_h.patch
Normal file
11
srcpkgs/mozjs78/patches/007-fix-mips-sgidefs_h.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/mfbt/RandomNum.cpp 2020-04-29 23:49:40.000000000 +0200
|
||||||
|
+++ b/mfbt/RandomNum.cpp 2020-08-04 19:29:36.127471301 +0200
|
||||||
|
@@ -52,7 +52,7 @@
|
||||||
|
# elif defined(__s390__)
|
||||||
|
# define GETRANDOM_NR 349
|
||||||
|
# elif defined(__mips__)
|
||||||
|
-# include <sgidefs.h>
|
||||||
|
+# include <asm/sgidefs.h>
|
||||||
|
# if _MIPS_SIM == _MIPS_SIM_ABI32
|
||||||
|
# define GETRANDOM_NR 4353
|
||||||
|
# elif _MIPS_SIM == _MIPS_SIM_ABI64
|
17
srcpkgs/mozjs78/patches/disable-jslint.patch
Normal file
17
srcpkgs/mozjs78/patches/disable-jslint.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
--- a/js/src/build/moz.build
|
||||||
|
+++ b/js/src/build/moz.build
|
||||||
|
@@ -80,14 +80,3 @@
|
||||||
|
NO_EXPAND_LIBS = True
|
||||||
|
|
||||||
|
DIST_INSTALL = True
|
||||||
|
-
|
||||||
|
-# Run SpiderMonkey style checker after linking the static library. This avoids
|
||||||
|
-# running the script for no-op builds.
|
||||||
|
-GeneratedFile(
|
||||||
|
- 'spidermonkey_checks', script='/config/run_spidermonkey_checks.py',
|
||||||
|
- inputs=[
|
||||||
|
- '!%sjs_static.%s' % (CONFIG['LIB_PREFIX'], CONFIG['LIB_SUFFIX']),
|
||||||
|
- '/config/check_spidermonkey_style.py',
|
||||||
|
- '/config/check_macroassembler_style.py',
|
||||||
|
- '/config/check_js_opcode.py'
|
||||||
|
- ])
|
|
@ -0,0 +1,37 @@
|
||||||
|
See https://bugzilla.mozilla.org/show_bug.cgi?id=1539739
|
||||||
|
|
||||||
|
From fd6847c9416f9eebde636e21d794d25d1be8791d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Hommey <mh@glandium.org>
|
||||||
|
Date: Sat, 1 Jun 2019 09:06:01 +0900
|
||||||
|
Subject: [PATCH] Bug 1526653 - Include struct definitions for user_vfp and
|
||||||
|
user_vfp_exc.
|
||||||
|
|
||||||
|
---
|
||||||
|
js/src/wasm/WasmSignalHandlers.cpp | 11 ++++++++++-
|
||||||
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp
|
||||||
|
index 636537f8478..383c380f04c 100644
|
||||||
|
--- a/js/src/wasm/WasmSignalHandlers.cpp
|
||||||
|
+++ b/js/src/wasm/WasmSignalHandlers.cpp
|
||||||
|
@@ -248,7 +248,16 @@ using mozilla::DebugOnly;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
|
||||||
|
-# include <sys/user.h>
|
||||||
|
+struct user_vfp {
|
||||||
|
+ unsigned long long fpregs[32];
|
||||||
|
+ unsigned long fpscr;
|
||||||
|
+};
|
||||||
|
+
|
||||||
|
+struct user_vfp_exc {
|
||||||
|
+ unsigned long fpexc;
|
||||||
|
+ unsigned long fpinst;
|
||||||
|
+ unsigned long fpinst2;
|
||||||
|
+};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(ANDROID)
|
||||||
|
--
|
||||||
|
2.20.1
|
||||||
|
|
73
srcpkgs/mozjs78/template
Normal file
73
srcpkgs/mozjs78/template
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
# Template file for 'mozjs78'
|
||||||
|
pkgname=mozjs78
|
||||||
|
version=78.2.0
|
||||||
|
revision=1
|
||||||
|
wrksrc="firefox-${version}"
|
||||||
|
build_wrksrc=js/src
|
||||||
|
build_style=gnu-configure
|
||||||
|
hostmakedepends="perl python pkg-config automake autoconf213 autoconf-archive
|
||||||
|
cargo rust llvm clang which python3"
|
||||||
|
makedepends="icu-devel libffi-devel nspr-devel python-devel readline-devel
|
||||||
|
zlib-devel python3-devel rust-std"
|
||||||
|
depends="nspr>=4.19"
|
||||||
|
short_desc="Mozilla JavaScript interpreter and library (78.x series)"
|
||||||
|
maintainer="q66 <daniel@octaforge.org>"
|
||||||
|
license="MPL-2.0"
|
||||||
|
homepage="https://www.mozilla.org/js/"
|
||||||
|
distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
|
||||||
|
checksum=965ccfcbb8c0aa97639911997c54be0fcf896fd388b03138952089af675ea918
|
||||||
|
patch_args="-Np1"
|
||||||
|
|
||||||
|
CXXFLAGS+=" -Wno-class-memaccess"
|
||||||
|
LDFLAGS+=" -Wl,-z,stack-size=1048576"
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
|
makedepends+=" libatomic-devel"
|
||||||
|
LDFLAGS+=" -latomic"
|
||||||
|
fi
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
local _args
|
||||||
|
# use gcc as assembler to avoid errors
|
||||||
|
unset AS
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
export HOST_CC=cc
|
||||||
|
export TARGET_CC="${CC}"
|
||||||
|
export HOST_CFLAGS="-Os"
|
||||||
|
export HOST_CXXFLAGS="-Os"
|
||||||
|
_args+=" --target=$XBPS_CROSS_TRIPLET --enable-linker=bfd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
autoconf-2.13 old-configure.in > old-configure
|
||||||
|
|
||||||
|
touch ${wrksrc}/js/src/configure
|
||||||
|
touch ${wrksrc}/js/src/old-configure
|
||||||
|
SHELL=/bin/bash PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
|
||||||
|
--disable-jemalloc --disable-optimize --enable-ctypes \
|
||||||
|
--enable-readline --enable-shared-js --enable-system-ffi \
|
||||||
|
--enable-tests --with-intl-api --with-system-icu --with-system-nspr \
|
||||||
|
--enable-hardening --enable-release --with-system-zlib \
|
||||||
|
--target=${XBPS_TRIPLET} --host=${XBPS_TRIPLET} \
|
||||||
|
${_args}
|
||||||
|
}
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
dist/bin/jsapi-tests --format=none --exclude-random basic
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
# Remove unneeded static library
|
||||||
|
rm -f "${DESTDIR}"/usr/lib/*.ajs
|
||||||
|
}
|
||||||
|
|
||||||
|
mozjs78-devel_package() {
|
||||||
|
depends="nspr-devel ${sourcepkg}>=${version}_${revision}"
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/bin/js78-config
|
||||||
|
vmove usr/include
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/mozjs78/update
Normal file
1
srcpkgs/mozjs78/update
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pkgname='mozjs'
|
Loading…
Add table
Reference in a new issue