mozjs-78:new package

This commit is contained in:
2022-07-22 11:38:38 +03:00
parent 5fcf01753c
commit c340ecb2b0
9 changed files with 292991 additions and 292709 deletions
@@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file https://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.export("CC", "gcc")
shelltools.export("CXX", "g++")
shelltools.system("mkdir -p build-js")
shelltools.cd("build-js")
shelltools.system("../js/src/configure \
--prefix=/usr \
--libdir=/usr/lib \
--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")
def build():
shelltools.cd("build-js")
autotools.make()
def check():
shelltools.cd("build-js")
def install():
shelltools.cd("build-js")
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.remove("/usr/lib/*.ajs")
shelltools.cd("..")
pisitools.dodoc("README*")
@@ -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.
@@ -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
@@ -0,0 +1,71 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>mozjs-78</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>
<Icon>mozilla-firefox</Icon>
<Summary>Stand-alone JavaScript C Library</Summary>
<Description>Mozjs is Mozilla's C implementation of JavaScript.</Description>
<Archive type="tarxz" sha1sum="83ae378d8bddd9efc5badb99a6246979313f7134">https://ftp.mozilla.org/pub/firefox/releases/78.12.0esr/source/firefox-78.12.0esr.source.tar.xz</Archive>
<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>
</BuildDependencies>
<Patches>
<Patch level="1">mozjs78-silence-sandbox-violations.patch</Patch>
<Patch level="1">mozjs78-fix-soname.patch</Patch>
</Patches>
</Source>
<Package>
<Name>mozjs-78</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-78-devel</Name>
<PartOf>system.devel</PartOf>
<Icon>development</Icon>
<Summary>Development files for mozjs-78</Summary>
<RuntimeDependencies>
<Dependency release="current">mozjs-78</Dependency>
<Dependency>nspr-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2021-08-07</Date>
<Version>78.12.0</Version>
<Comment>First Release</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,15 @@
<?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>