- Experiment with vendoring cargo home registry.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=222
This commit is contained in:
Soc Virnyl Estela 2024-11-04 11:37:30 +00:00 committed by Git OBS Bridge
parent 0e68381e83
commit 1356661ce7
6 changed files with 15 additions and 9 deletions

View File

@ -13,9 +13,9 @@
<param name="versionrewrite-replacement">\1</param>
<param name="changesgenerate">enable</param>
</service>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">deno</param>
<service name="cargo_vendor_home_registry" mode="manual">
<param name="update">false</param>
<param name="src">deno</param>
</service>
<service mode="manual" name="set_version"/>
<service name="roast" mode="manual">

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:77709a43d8ef4339d865abfac0794f70e104d34a6ed157076a66971c8f99a6b6
size 98816400
oid sha256:cf2c468363b19df96af9813f4328cdd407c09ee7b2f2ebc9d3c5a07e7309dd2a
size 333996917

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 3 08:22:47 UTC 2024 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
- Experiement with vendoring cargo home registry.
-------------------------------------------------------------------
Sat Nov 2 12:48:07 UTC 2024 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>

View File

@ -27,7 +27,7 @@ License: MIT
Group: Productivity/Other
URL: https://github.com/denoland/deno
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source1: registry.tar.zst
BuildRequires: cargo-packaging
BuildRequires: clang
# needed by `libz-ng-sys` after 1.36.1
@ -103,9 +103,10 @@ updated with the --reload flag.
unlink $PWD/rusty_v8 || true
ln -sf %{_libdir}/crates/rusty_v8 $PWD/rusty_v8
echo -e "\n[patch.crates-io]\nv8 = { path = './rusty_v8' }" >> Cargo.toml
%{__cargo} update --offline
export CARGO_HOME=$PWD/.cargo
%build
export CARGO_HOME=$PWD/.cargo
# Ensure that the clang version matches. This command came from Archlinux. Thanks.
export CLANG_VERSION=$(clang --version | grep -m1 version | sed 's/.* \([0-9]\+\).*/\1/')
export V8_FROM_SOURCE=1

3
registry.tar.zst Normal file
View File

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

View File

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