SHA256
7
0
forked from pool/deno

- Add ./rusty_v8-0.106.0.tar.gz. This will be applied with a patch before compilation.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=240
This commit is contained in:
Soc Virnyl Estela
2024-11-10 09:32:09 +00:00
committed by Git OBS Bridge
parent ba297e4714
commit dc2e2e669e
4 changed files with 15 additions and 6 deletions

View File

@@ -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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 10 09:31:26 UTC 2024 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
- 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 <uncomfyhalomacro@opensuse.org>

View File

@@ -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.

BIN
rusty_v8-0.106.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.