+rusty_v8 (testing only package)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=1
This commit is contained in:
Avindra Goolcharan 2021-01-26 16:33:15 +00:00 committed by Git OBS Bridge
commit 768de23fb4
9 changed files with 179 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

8
_constraints Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<constraints>
<hardware>
<physicalmemory>
<size unit="G">8</size>
</physicalmemory>
</hardware>
</constraints>

18
_service Normal file
View File

@ -0,0 +1,18 @@
<services>
<service name="tar_scm" mode="manual">
<param name="url">https://github.com/denoland/rusty_v8</param>
<param name="scm">git</param>
<param name="revision">v0.16.0</param>
<param name="version">0.16.0</param>
<param name="exclude">.git</param>
<param name="exclude">.github</param>
<param name="exclude">.gitignore</param>
<param name="exclude">.prettierrc.json</param>
<param name="exclude">.rustfmt.toml</param>
</service>
<service name="tar" mode="manual"/>
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
</services>

32
revendor_source.sh Normal file
View File

@ -0,0 +1,32 @@
#!/bin/sh
set -euo pipefail
# packaging helper to workaround:
# https://github.com/rust-lang/cargo/issues/7058
wd="$(mktemp -d /tmp/revendor.XXXXX)"
# take what we need into the build
cp vendor*xz $wd
cd $wd
echo -n "Extracting vendor..."
tar xf vendor*xz
echo "done"
echo -n "Ejecting winapi bloat... "
rm -fr vendor/winapi*gnu*/lib/*.a
echo "done"
# remake tarball
echo -n "Compressing archive... "
tar -cf - vendor/ | xz -9 -c - > vendor-merged.tar.xz
echo "done"
cd -
echo -n "Replacing tarball... "
cp $wd/vendor-merged.tar.xz vendor.tar.xz
rm -fr $wd
echo "ok"

3
rusty_v8-0.16.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:914e0a27bbd0c98bf6a3209bde7f89eeba6f19726c1ad244c86b57a16dee5c43
size 21295036

17
rusty_v8.changes Normal file
View File

@ -0,0 +1,17 @@
-------------------------------------------------------------------
Tue Jan 19 00:37:25 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- bump to 0.16
-------------------------------------------------------------------
Sun Jan 10 20:39:55 UTC 2021 - Avindra Goolcharan <avindra@opensuse.org>
- bump to 0.15
- remove fix-ninja-check.patch (upstreamed)
-------------------------------------------------------------------
Sun Dec 20 07:11:31 UTC 2020 - Avindra Goolcharan <avindra@opensuse.org>
- Init package at 0.14.0 for deno 1.6.1
- add fix-ninja-check.patch to fix gn/ninja validation
- add _constraints for huge v8/chromium build

74
rusty_v8.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package rusty_v8
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: rusty_v8
Version: 0.16.0
Release: 0
Summary: Build tooling for Deno (do not install or use!)
License: MIT
Group: Productivity/Other
URL: https://github.com/denoland/rusty_v8
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source99: revendor_source.sh
BuildRequires: clang
BuildRequires: gn
BuildRequires: lld
BuildRequires: llvm
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python
BuildRequires: python2-setuptools
BuildRequires: rust-packaging
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gthread-2.0)
%ifarch ppc64 # wants g++ for some reason
BuildRequires: gcc-c++
%endif
%description
V8 build tooling for Deno. This represents all of the common
cruft that is dragged along into the deno build from V8,
Chromium, etc.
%prep
%autosetup -a1
%define cargo_registry $(pwd)/vendor
%{cargo_prep}
%build
#https://github.com/denoland/rusty_v8/#build-v8-from-source
export V8_FROM_SOURCE=1
export CLANG_BASE_PATH=%{_prefix}
# note: built in debug mode to
# emit symbols for linker in deno build
export GN_ARGS="is_debug=true"
%{__cargo} build %{__cargo_common_opts}
%install
mkdir -p %{buildroot}%{_libdir}
cp target/debug/*.rlib %{buildroot}%{_libdir}
%files
%license LICENSE
%doc README.md
%{_libdir}/lib%{name}.rlib
%changelog

3
vendor.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3696188c54d4ae05ba5e2168202198561256f367a89fb7fc608efb4e41a67a33
size 1762436