diff --git a/compiler-rt-adjust-paths.patch b/compiler-rt-adjust-paths.patch index 07de210..75a52f8 100644 --- a/compiler-rt-adjust-paths.patch +++ b/compiler-rt-adjust-paths.patch @@ -1,4 +1,4 @@ -diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn +diff --git a/v8-0.106.0/build/config/clang/BUILD.gn b/v8-0.106.0/build/config/clang/BUILD.gn index fcca59b0f..fdf14f306 100644 --- a/build/config/clang/BUILD.gn +++ b/build/config/clang/BUILD.gn diff --git a/deno.changes b/deno.changes index 3028a89..d31f831 100644 --- a/deno.changes +++ b/deno.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 10 09:31:26 UTC 2024 - Soc Virnyl Estela + +- Add ./rusty_v8-0.106.0.tar.gz. This will be applied with a patch before compilation. + ------------------------------------------------------------------- Sun Nov 10 09:23:10 UTC 2024 - Soc Virnyl Estela diff --git a/deno.spec b/deno.spec index a6c11f2..6deaa75 100644 --- a/deno.spec +++ b/deno.spec @@ -19,6 +19,7 @@ %global _lto_cflags %nil +%global _v8_version 0.106.0 Name: deno Version: 2.0.6 Release: 0 @@ -28,7 +29,8 @@ Group: Productivity/Other URL: https://github.com/denoland/deno Source0: %{name}-%{version}.tar.zst Source1: vendor.tar.zst -Source2: compiler-rt-adjust-paths.patch +Source2: http://crates.io/api/v1/crates/v8/%{_v8_version}/download#/rusty_v8-%{_v8_version}.tar.gz +Patch1: compiler-rt-adjust-paths.patch BuildRequires: cargo-packaging BuildRequires: clang # needed by `libz-ng-sys` after 1.36.1 @@ -96,11 +98,10 @@ Remote code is fetched and cached on first execution, and only updated with the --reload flag. %prep -%autosetup -a1 -p1 -n %{name} # Now we patch whatever was vendored -pushd vendor/v8-0.106.0 -patch -p1 -s --fuzz=0 --no-backup-if-mismatch -i %{SOURCE2} -popd +%autosetup -a1 -a2 -p1 -n %{name} + +echo -e "\n[patch.crates-io]\nv8 = { path = './v8' }" >> Cargo.toml %build # Ensure that the clang version matches. This command came from Archlinux. Thanks. diff --git a/rusty_v8-0.106.0.tar.gz b/rusty_v8-0.106.0.tar.gz new file mode 100644 index 0000000..0537191 --- /dev/null +++ b/rusty_v8-0.106.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a381badc47c6f15acb5fe0b5b40234162349ed9d4e4fd7c83a7f5547c0fc69c5 +size 22297783