mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
mozjs102: update to 102.15.1.
This commit is contained in:
parent
b0bc3bcd6f
commit
a41253202d
3 changed files with 38 additions and 6 deletions
|
@ -13,4 +13,4 @@ diff -rup Architecture-arm.cpp.orig Architecture-arm.cpp
|
||||||
+# endif
|
+# endif
|
||||||
#else
|
#else
|
||||||
// We assume the icache flushing routines on other platforms take care of this
|
// We assume the icache flushing routines on other platforms take care of this
|
||||||
#endif
|
#endif
|
||||||
|
|
22
srcpkgs/mozjs102/patches/python3.12-looseversion.patch
Normal file
22
srcpkgs/mozjs102/patches/python3.12-looseversion.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
diff --git a/python/mozbuild/mozbuild/configure/util.py b/python/mozbuild/mozbuild/configure/util.py
|
||||||
|
index fe6f90f960661..31a6daa2e1fd1 100644
|
||||||
|
--- a/python/mozbuild/mozbuild/configure/util.py
|
||||||
|
+++ b/python/mozbuild/mozbuild/configure/util.py
|
||||||
|
@@ -14,7 +14,7 @@
|
||||||
|
import sys
|
||||||
|
from collections import deque
|
||||||
|
from contextlib import contextmanager
|
||||||
|
-from distutils.version import LooseVersion
|
||||||
|
+from looseversion import LooseVersion
|
||||||
|
|
||||||
|
|
||||||
|
def getpreferredencoding():
|
||||||
|
@@ -34,7 +34,7 @@ def getpreferredencoding():
|
||||||
|
|
||||||
|
|
||||||
|
class Version(LooseVersion):
|
||||||
|
- """A simple subclass of distutils.version.LooseVersion.
|
||||||
|
+ """A simple subclass of looseversion.LooseVersion.
|
||||||
|
Adds attributes for `major`, `minor`, `patch` for the first three
|
||||||
|
version components so users can easily pull out major/minor
|
||||||
|
versions, like:
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'mozjs102'
|
# Template file for 'mozjs102'
|
||||||
pkgname=mozjs102
|
pkgname=mozjs102
|
||||||
version=102.8.0
|
version=102.15.1
|
||||||
revision=3
|
revision=1
|
||||||
build_wrksrc=js/src
|
build_wrksrc=js/src
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
build_helper=rust
|
build_helper=rust
|
||||||
|
@ -11,16 +11,16 @@ configure_args="--disable-jemalloc --disable-strip --disable-tests \
|
||||||
--enable-shared-js --enable-system-ffi --with-intl-api --with-system-icu \
|
--enable-shared-js --enable-system-ffi --with-intl-api --with-system-icu \
|
||||||
--with-system-nspr --with-system-zlib --enable-hardening --enable-release"
|
--with-system-nspr --with-system-zlib --enable-hardening --enable-release"
|
||||||
hostmakedepends="make pkg-config python3 python3-setuptools python3-six perl m4
|
hostmakedepends="make pkg-config python3 python3-setuptools python3-six perl m4
|
||||||
rust cargo llvm12 clang"
|
rust cargo llvm12 clang python3-looseversion"
|
||||||
makedepends="icu-devel libffi-devel nspr-devel python3-devel readline-devel
|
makedepends="icu-devel libffi-devel nspr-devel python3-devel readline-devel
|
||||||
zlib-devel rust-std"
|
zlib-devel rust-std"
|
||||||
checkdepends="python3"
|
checkdepends="python3"
|
||||||
short_desc="SpiderMonkey JavaScript interpreter and library (102.x)"
|
short_desc="SpiderMonkey JavaScript interpreter and library (102.x)"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="oreo639 <oreo6391@gmail.com>"
|
||||||
license="MPL-2.0"
|
license="MPL-2.0"
|
||||||
homepage="https://spidermonkey.dev"
|
homepage="https://spidermonkey.dev"
|
||||||
distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
|
distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
|
||||||
checksum=47f8f6243bce8c2ef51adf8c9626bbf643e1c225dcb9ba5653a055ed5e76ca48
|
checksum=09194fb765953bc6979a35aa8834118c453b9d6060bf1ec4e134551bad740113
|
||||||
|
|
||||||
LDFLAGS="-Wl,-z,stack-size=1048576"
|
LDFLAGS="-Wl,-z,stack-size=1048576"
|
||||||
|
|
||||||
|
@ -46,6 +46,16 @@ pre_configure() {
|
||||||
chmod 0755 ../../build/autoconf/autoconf.sh
|
chmod 0755 ../../build/autoconf/autoconf.sh
|
||||||
sh ../../build/autoconf/autoconf.sh configure.in > configure
|
sh ../../build/autoconf/autoconf.sh configure.in > configure
|
||||||
chmod 0755 configure
|
chmod 0755 configure
|
||||||
|
|
||||||
|
local _sitedir=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
|
||||||
|
rm -rf ${wrksrc}/third_party/python/six
|
||||||
|
mkdir ${wrksrc}/third_party/python/six
|
||||||
|
ln -s ${_sitedir}/six.py ${wrksrc}/third_party/python/six
|
||||||
|
|
||||||
|
rm -rf ${wrksrc}/third_party/python/looseversion
|
||||||
|
mkdir ${wrksrc}/third_party/python/looseversion
|
||||||
|
ln -s ${_sitedir}/looseversion/__init__.py ${wrksrc}/third_party/python/looseversion/looseversion.py
|
||||||
|
echo "vendored:third_party/python/looseversion" >> ${wrksrc}/python/sites/mach.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue