Avindra Goolcharan 2024-09-29 20:59:26 +00:00 committed by Git OBS Bridge
parent d7cec707bb
commit 17c3b64ae8
9 changed files with 108 additions and 12 deletions

View File

@ -2,8 +2,11 @@
<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.98.0</param>
<param name="version">0.98.0</param>
<param name="revision">v129.0.0</param>
<param name="version">129.0.0</param>
<param name="exclude">.git</param>
<param name="exclude">.github</param>
<param name="exclude">.gitignore</param>

View File

@ -0,0 +1,32 @@
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn
index d4de2e0cca0..57359c32121 100644
--- a/build/config/clang/BUILD.gn
+++ b/build/config/clang/BUILD.gn
@@ -130,12 +130,15 @@ template("clang_lib") {
} else if (is_linux || is_chromeos) {
if (current_cpu == "x64") {
_dir = "x86_64-unknown-linux-gnu"
+ _suffix = "-x86_64"
} else if (current_cpu == "x86") {
_dir = "i386-unknown-linux-gnu"
+ _suffix = "-i386"
} else if (current_cpu == "arm") {
_dir = "armv7-unknown-linux-gnueabihf"
} else if (current_cpu == "arm64") {
_dir = "aarch64-unknown-linux-gnu"
+ _suffix = "-aarch64"
} else {
assert(false) # Unhandled cpu type
}
@@ -166,6 +169,11 @@ template("clang_lib") {
assert(false) # Unhandled target platform
}
+ # Bit of a hack to make this find builtins from compiler-rt >= 16
+ if (is_linux || is_chromeos) {
+ _dir = "linux"
+ }
+
_clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib"
_lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}"
libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]

13
fix-prefix.patch Normal file
View File

@ -0,0 +1,13 @@
Fix usr prefix
index fcca59b..02480f8 100644
--- a/build/config/clang/BUILD.gn
+++ b/build/config/clang/BUILD.gn
@@ -171,7 +171,7 @@ template("clang_lib") {
config(target_name) {
_dir = ""
_libname = invoker.libname
- _prefix = "lib"
+ _prefix = "lib64"
_suffix = ""
_ext = "a"
if (is_win) {

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

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

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:038324aaec8e1cd474fd853963a91bb229d728a3412bca990f3743753f7349b2
size 58010632

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

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89af37dbb408fb9e7b1d433487d290ee09fc77284cd2e12f309e6bfddd2c41a6
size 58757856

View File

@ -1,3 +1,41 @@
-------------------------------------------------------------------
Thu Aug 22 20:25:50 UTC 2024 - Avindra Goolcharan <avindra@opensuse.org>
- update to 0.104.0
* version 0.104.0 (#1585)
* Rolling to V8 12.9.202.2 (#1584)
* Update V8 to 12.9 (#1578)
- includes version 0.103.0 (#1577)
* fix: ensure /Zl flag (#1572)
* Revert "Add "to Rust string" benchmarks" (#1576)
* Add "to Rust string" benchmarks (#1566)
* feat: expose v8 version constants (#1569)
* feat: add UseCounterCallback (#1567)
* update fast calls api (#1564)
* chore: update all v8 deps (#1554)
- includes version 0.102.0 (#1560)
* feat: changes for vm (#1557)
* chore: disable android in ci (#1558)
* chore: upgrade to rust 1.80 (#1553)
- includes version 0.101.0 (#1552)
* chore: binding cleanup (#1551)
* feat: upgrade ScriptOrigin (#1550)
* Roll V8 to include new patches (#1549)
* add embedder suffix to v8 version (#1548)
- includes v0.100.0 (#1546)
* feat: access with receiver (#1542)
* fix: QueryCallback should use Integer (#1545)
* feat: add String::ValueView (#1543)
* feat: V8 12.8 (#1539)
* set v8_enable_private_mapping_fork_optimization = true (#1535)
* Update V8 to 12.8 (#1538)
- includes v0.98.2 (#1536)
* fix: ExternalOneByteStringResource is not guaranteed to be
valid UTF-8 (#1532)
* chore: Add a couple convenience casting functions to v8::Local (#1533)
* chore(build): try remove_file on windows (#1529)
* rust 1.79.0 (#1527)
-------------------------------------------------------------------
Fri Jul 12 02:19:05 UTC 2024 - Avindra Goolcharan <avindra@opensuse.org>

View File

@ -17,7 +17,7 @@
Name: rusty_v8
Version: 0.98.0
Version: 129.0.0
Release: 0
Summary: Build tooling for Deno (do not install or use!)
License: MIT
@ -27,11 +27,13 @@ Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
Patch0: deno-v8-arm.patch
Patch1: https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/raw/main/compiler-rt-adjust-paths.patch
#Patch2: fix-prefix.patch
BuildRequires: cargo-packaging
BuildRequires: clang
BuildRequires: clang18
BuildRequires: gn
BuildRequires: lld
BuildRequires: llvm
#BuildRequires: lld
BuildRequires: llvm18
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python3-base
@ -52,6 +54,7 @@ Chromium, etc.
%autosetup -a1 -p1
mkdir -p .cargo
cp %{SOURCE2} .cargo/config
rm Cargo.lock
%build
#https://github.com/denoland/rusty_v8/#build-v8-from-source
@ -59,9 +62,13 @@ 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"
## is_debug=true
export GN_ARGS="clang_version=18 use_lld=false"
#export RUST_BACKTRACE=full
%{__cargo} build %{__cargo_common_opts}
# -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;compilER-RT"
%install
mkdir -p %{buildroot}%{_libdir}
cp target/debug/*.rlib %{buildroot}%{_libdir}

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6dfd25fcfdd108c8034bbd8c8f24957ad0d4ffaeb67d352cd260034bad4cf957
size 19401352
oid sha256:d618e28ec5db86f1fddc5a349993821fd40b4000b93aaabc3627dfbcecb53f94
size 12862128