diff --git a/_service b/_service index 9dd6edd..741381e 100644 --- a/_service +++ b/_service @@ -2,8 +2,11 @@ https://github.com/denoland/rusty_v8 git - v0.98.0 - 0.98.0 + + + + v129.0.0 + 129.0.0 .git .github .gitignore diff --git a/compiler-rt-adjust-paths.patch b/compiler-rt-adjust-paths.patch new file mode 100644 index 0000000..7fe5758 --- /dev/null +++ b/compiler-rt-adjust-paths.patch @@ -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" ] diff --git a/fix-prefix.patch b/fix-prefix.patch new file mode 100644 index 0000000..244d94e --- /dev/null +++ b/fix-prefix.patch @@ -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) { diff --git a/rusty_v8-0.104.0.tar.xz b/rusty_v8-0.104.0.tar.xz new file mode 100644 index 0000000..47934ba --- /dev/null +++ b/rusty_v8-0.104.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c02baca0b76be57758287135d77bebc1a451079ff0fecc22ab13b6d05d72e2eb +size 58741852 diff --git a/rusty_v8-0.98.0.tar.xz b/rusty_v8-0.98.0.tar.xz deleted file mode 100644 index 370ab1a..0000000 --- a/rusty_v8-0.98.0.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:038324aaec8e1cd474fd853963a91bb229d728a3412bca990f3743753f7349b2 -size 58010632 diff --git a/rusty_v8-129.0.0.tar.xz b/rusty_v8-129.0.0.tar.xz new file mode 100644 index 0000000..e7cacb1 --- /dev/null +++ b/rusty_v8-129.0.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89af37dbb408fb9e7b1d433487d290ee09fc77284cd2e12f309e6bfddd2c41a6 +size 58757856 diff --git a/rusty_v8.changes b/rusty_v8.changes index 7c5a56c..3ad3c61 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Thu Aug 22 20:25:50 UTC 2024 - Avindra Goolcharan + +- 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 diff --git a/rusty_v8.spec b/rusty_v8.spec index c896d31..1f72861 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -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} diff --git a/vendor.tar.xz b/vendor.tar.xz index 7af7639..5205ad1 100644 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:6dfd25fcfdd108c8034bbd8c8f24957ad0d4ffaeb67d352cd260034bad4cf957 -size 19401352 +oid sha256:d618e28ec5db86f1fddc5a349993821fd40b4000b93aaabc3627dfbcecb53f94 +size 12862128