gnome ver. bump
This commit is contained in:
@@ -9,65 +9,33 @@ from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
#WorkDir = "mozjs%s/js/src" % get.srcVERSION()
|
||||
|
||||
ObjDir = "obj"
|
||||
shelltools.export("SHELL","/bin/sh")
|
||||
WorkDir = "firefox-%s" %get.srcVERSION()
|
||||
|
||||
|
||||
shelltools.system("export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=pip")
|
||||
shelltools.export("MOZBUILD_STATE_PATH", "mozbuild")
|
||||
shelltools.system("export MOZ_NOSPAM=1")
|
||||
|
||||
def setup():
|
||||
#shelltools.cd("js/src")
|
||||
#shelltools.system("sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl ")
|
||||
shelltools.export("CC", "gcc")
|
||||
shelltools.export("CXX", "g++")
|
||||
# shelltools.export("CC", "gcc")
|
||||
# shelltools.export("CXX", "g++")
|
||||
# shelltools.system("cp mozconfig .mozconfig")
|
||||
shelltools.system("cp mozconfig js/src/.mozconfig")
|
||||
|
||||
shelltools.system("mkdir -p build-js")
|
||||
shelltools.cd("build-js")
|
||||
|
||||
shelltools.system("sh ../js/src/configure \
|
||||
--enable-readline \
|
||||
--with-intl-api \
|
||||
--disable-debug \
|
||||
--disable-debug-symbols \
|
||||
--disable-jemalloc \
|
||||
--disable-strip \
|
||||
--enable-hardening \
|
||||
--enable-linker=gold \
|
||||
--enable-optimize \
|
||||
--enable-readline \
|
||||
--enable-release \
|
||||
--enable-shared-js \
|
||||
--enable-tests \
|
||||
--with-intl-api \
|
||||
--with-system-zlib \
|
||||
--with-system-nspr \
|
||||
--without-system-icu")
|
||||
# --prefix=/usr \
|
||||
|
||||
def build():
|
||||
shelltools.cd("build-js")
|
||||
autotools.make("prefix=/usr")
|
||||
|
||||
# def check():
|
||||
# shelltools.cd("build-js")
|
||||
|
||||
#autotools.make("-C js/src check-jstests")
|
||||
#autotools.make("-C js/src check-jit-test")
|
||||
shelltools.system("./mach build")
|
||||
|
||||
|
||||
def install():
|
||||
shelltools.cd("build-js")
|
||||
autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
|
||||
shelltools.system("DESTDIR=%s ./mach install " % get.installDIR())
|
||||
pisitools.remove("/usr/lib/*.ajs")
|
||||
|
||||
pisitools.dosym("/usr/lib/libmozjs-128.so", "/usr/lib/libmozjs-128.so.0")
|
||||
pisitools.dosym("/usr/lib/libmozjs-140.so", "/usr/lib/libmozjs-140.so.0")
|
||||
|
||||
pisitools.dosed("%s/usr/bin/js128-config" % get.installDIR(), "usr/local", "usr")
|
||||
pisitools.dosed("%s/usr/lib/pkgconfig/mozjs-128.pc" % get.installDIR(), "usr/local", "usr")
|
||||
|
||||
#for polkit
|
||||
#pisitools.rename("/usr/lib/pkgconfig/mozjs-..pc", "mozjs-17.0.pc")
|
||||
#pisitools.remove("usr/lib/libmozjs-..a")
|
||||
|
||||
shelltools.cd("..")
|
||||
pisitools.dodoc("README*")
|
||||
|
||||
# add link for polkit
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Philip Chimento <philip.chimento@gmail.com>
|
||||
Date: Wed, 16 Jul 2025 22:50:50 -0700
|
||||
Subject: [PATCH] Bug 1973994 - mozjs-140.pc does not contain -DXP_UNIX on
|
||||
Linux
|
||||
|
||||
Temporary fix.
|
||||
---
|
||||
js/src/js-config.h.in | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/js/src/js-config.h.in b/js/src/js-config.h.in
|
||||
index 8372623586f7..498ea968baf4 100644
|
||||
--- a/js/src/js-config.h.in
|
||||
+++ b/js/src/js-config.h.in
|
||||
@@ -68,4 +68,8 @@
|
||||
#undef MOZJS_MAJOR_VERSION
|
||||
#undef MOZJS_MINOR_VERSION
|
||||
|
||||
+/* Controls API in UniquePtrExtensions.h. */
|
||||
+#undef XP_UNIX
|
||||
+#undef XP_WIN
|
||||
+
|
||||
#endif /* js_config_h */
|
||||
@@ -0,0 +1,24 @@
|
||||
ac_add_options --enable-application=js
|
||||
# mk_add_options MOZ_OBJDIR=${PWD@Q}/obj
|
||||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/build
|
||||
|
||||
ac_add_options --prefix=/usr
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-hardening
|
||||
ac_add_options --enable-optimize
|
||||
ac_add_options --enable-rust-simd
|
||||
ac_add_options --enable-linker=lld
|
||||
ac_add_options --disable-bootstrap
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --disable-jemalloc
|
||||
ac_add_options --disable-strip
|
||||
|
||||
# System libraries
|
||||
ac_add_options --with-system-zlib
|
||||
ac_add_options --without-system-icu
|
||||
|
||||
# Features
|
||||
ac_add_options --enable-readline
|
||||
ac_add_options --enable-shared-js
|
||||
ac_add_options --enable-tests
|
||||
ac_add_options --with-intl-api
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>mozjs</Name>
|
||||
@@ -12,22 +12,24 @@
|
||||
<IsA>library</IsA>
|
||||
<Summary>Stand-alone JavaScript C Library</Summary>
|
||||
<Description>Spidermonkey is Mozilla's C implementation of JavaScript.</Description>
|
||||
<Archive type="tarxz" sha1sum="5b31fe138a523dd1c257de9e98d5363444bffa42">https://ftp.mozilla.org/pub/firefox/releases/128.2.0esr/source/firefox-128.2.0esr.source.tar.xz</Archive>
|
||||
<Archive type="tarxz" sha1sum="b8f2f54134133fc209640b2084dfc612f6e8d787">https://ftp.mozilla.org/pub/firefox/releases/140.3.1esr/source/firefox-140.3.1esr.source.tar.xz</Archive>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile target="mozconfig" permission="0644">mozconfig</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<BuildDependencies>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>zlib-devel</Dependency>
|
||||
<Dependency>nspr-devel</Dependency>
|
||||
<Dependency>readline-devel</Dependency>
|
||||
<Dependency>autoconf213</Dependency>
|
||||
<Dependency>rust</Dependency>
|
||||
<Dependency>llvm</Dependency>
|
||||
<Dependency>cbindgen</Dependency>
|
||||
<Dependency>zlib-devel</Dependency>
|
||||
<Dependency>nspr-devel</Dependency>
|
||||
<Dependency>autoconf213</Dependency>
|
||||
<Dependency>python3-devel</Dependency>
|
||||
<Dependency>readline-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">mozjs128-fix-soname.patch</Patch>
|
||||
<Patch level="1">0001-Bug-1973994-mozjs-140.pc-does-not-contain-DXP_UNIX-o.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>mozjs</Name>
|
||||
<RuntimeDependencies>
|
||||
@@ -47,8 +49,8 @@
|
||||
<Name>mozjs-devel</Name>
|
||||
<Summary>Development files for spidermonkey</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">mozjs</Dependency>
|
||||
<Dependency>nspr-devel</Dependency>
|
||||
<Dependency release="current">mozjs</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
@@ -58,6 +60,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="2">
|
||||
<Date>2025-10-14</Date>
|
||||
<Version>140.3.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2024-09-11</Date>
|
||||
<Version>128.2.0</Version>
|
||||
|
||||
Reference in New Issue
Block a user