gnome ver. bump

This commit is contained in:
Rmys
2025-10-13 11:48:15 +03:00
parent 599e25c751
commit 12e8646472
9 changed files with 18 additions and 283 deletions
+14 -47
View File
@@ -9,66 +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()
def setup():
shelltools.system("sed -i 's|/usr/local|/usr|g' nsprpub/configure")
#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.system("mkdir -p build-js")
shelltools.cd("build-js")
shelltools.export("ac_default_prefix", "/usr")
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 \
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.export("CC", "gcc")
# shelltools.export("CXX", "g++")
# shelltools.system("cp mozconfig .mozconfig")
shelltools.system("cp mozconfig js/src/.mozconfig")
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-143.so", "/usr/lib/libmozjs-143.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-143.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
+4 -1
View File
@@ -13,6 +13,9 @@
<Summary>Stand-alone JavaScript C Library</Summary>
<Description>Spidermonkey is Mozilla's C implementation of JavaScript.</Description>
<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>rust</Dependency>
<Dependency>llvm</Dependency>
@@ -24,7 +27,7 @@
<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>
-42
View File
@@ -1,42 +0,0 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
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.export("CC", "gcc")
# shelltools.export("CXX", "g++")
# shelltools.system("cp mozconfig .mozconfig")
shelltools.system("cp mozconfig js/src/.mozconfig")
def build():
# shelltools.cd("build-js")
shelltools.system("./mach build")
def install():
shelltools.system("DESTDIR=%s ./mach install " % get.installDIR())
pisitools.remove("/usr/lib/*.ajs")
pisitools.dosym("/usr/lib/libmozjs-140.so", "/usr/lib/libmozjs-140.so.0")
pisitools.dodoc("README*")
# add link for polkit
#pisitools.dosym("libmozjs-..so", "/usr/lib/libmozjs-17.0.so")
@@ -1,25 +0,0 @@
From d21c7cb9343d8c495d987e71be0f35887574c820 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
Date: Wed, 15 Jul 2020 08:21:47 +0200
Subject: [PATCH] Add soname switch to linker, regardless of Operating System
Fix backported from Debian: http://bugs.debian.org/746705
---
config/rules.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/config/rules.mk b/config/rules.mk
index 90a9946..dc87789 100644
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -291,6 +291,8 @@ ifeq ($(OS_ARCH),GNU)
OS_CPPFLAGS += -DPATH_MAX=1024 -DMAXPATHLEN=1024
endif
+EXTRA_DSO_LDOPTS += -Wl,-soname,lib$(JS_LIBRARY_NAME).so.0
+
#
# MINGW32
#
--
2.37.1
-75
View File
@@ -1,75 +0,0 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
#WorkDir = "mozjs%s/js/src" % get.srcVERSION()
shelltools.export("SHELL","/bin/sh")
WorkDir = "firefox-%s" %get.srcVERSION()
def setup():
shelltools.system("sed -i 's|/usr/local|/usr|g' nsprpub/configure")
#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.system("mkdir -p build-js")
shelltools.cd("build-js")
shelltools.export("ac_default_prefix", "/usr")
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")
def install():
shelltools.cd("build-js")
autotools.rawInstall("DESTDIR=%s prefix=/usr" % get.installDIR())
pisitools.remove("/usr/lib/*.ajs")
pisitools.dosym("/usr/lib/libmozjs-143.so", "/usr/lib/libmozjs-143.so.0")
pisitools.dosed("%s/usr/bin/js128-config" % get.installDIR(), "usr/local", "usr")
pisitools.dosed("%s/usr/lib/pkgconfig/mozjs-143.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
#pisitools.dosym("libmozjs-..so", "/usr/lib/libmozjs-17.0.so")
-78
View File
@@ -1,78 +0,0 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>mozjs</Name>
<Homepage>http://www.mozilla.org/js/spidermonkey/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>NPL-1.1</License>
<IsA>library</IsA>
<Summary>Stand-alone JavaScript C Library</Summary>
<Description>Spidermonkey is Mozilla's C implementation of JavaScript.</Description>
<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>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">0001-Bug-1973994-mozjs-140.pc-does-not-contain-DXP_UNIX-o.patch</Patch>
</Patches>
</Source>
<Package>
<Name>mozjs</Name>
<RuntimeDependencies>
<Dependency>nspr</Dependency>
<Dependency>zlib</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>readline</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>mozjs-devel</Name>
<Summary>Development files for spidermonkey</Summary>
<RuntimeDependencies>
<Dependency>nspr-devel</Dependency>
<Dependency release="current">mozjs</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<!--Path fileType="executable">/usr/bin/js17-config</Path-->
</Files>
</Package>
<History>
<Update release="2">
<Date>2025-09-25</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>
<Comment>First release</Comment>
<Name>Mustafa Cinasal</Name>
<Email>muscnsl@gmail.com</Email>
</Update>
</History>
</PISI>
@@ -1,15 +0,0 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>spidermonkey</Name>
<Summary xml:lang="tr">Javascript C Kitaplığı</Summary>
<Description xml:lang="tr">Mozilla'nın Javascript'in C implementasyonu.</Description>
<Description xml:lang="fr">Spidermonkey est l'Implémentation C de Javascript par Mozilla.</Description>
<Description xml:lang="es">Spidermonkey es la implementación de JavaScript con C de Mozilla.</Description>
</Source>
<Package>
<Name>spidermonkey-devel</Name>
<Summary xml:lang="tr">spidermonkey için geliştirme dosyaları</Summary>
</Package>
</PISI>