New comment by Johnnynator on void-packages repository https://github.com/void-linux/void-packages/pull/25436#issuecomment-714565068 Comment: ```diff diff --git a/srcpkgs/deno/patches/rusty_v8.patch b/srcpkgs/deno/patches/rusty_v8.patch new file mode 100644 index 0000000000..a32cb05f82 --- /dev/null +++ b/srcpkgs/deno/patches/rusty_v8.patch @@ -0,0 +1,11 @@ +--- Cargo.lock 2020-10-10 12:30:55.000000000 +0200 ++++ - 2020-10-22 17:12:50.248150438 +0200 +@@ -1920,8 +1920,6 @@ + [[package]] + name = "rusty_v8" + version = "0.11.0" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "8c11463988ec37b3f8cb84e4c2fe8f63058c46e07348b6d1d27b114a2b981304" + dependencies = [ + "bitflags", + "cargo_gn", diff --git a/srcpkgs/deno/template b/srcpkgs/deno/template index a790886bac..1d68e8c486 100644 --- a/srcpkgs/deno/template +++ b/srcpkgs/deno/template @@ -2,20 +2,34 @@ pkgname=deno version=1.4.6 revision=1 -archs="x86_64" build_helper="rust" hostmakedepends="cargo pkg-config curl unzip python ninja gn clang nodejs - gobject-introspection" + lld llvm gobject-introspection" depends="libglib-devel" short_desc="Simple, modern and secure runtime for JavaScript and TypeScript" maintainer="shizonic " license="MIT" homepage="https://deno.land" -distfiles="https://github.com/denoland/deno/archive/v${version}.tar.gz" -checksum=802bd22bcb00c1f2331f054b83820dfcdd7f79cc135bcd062d057f35fec9cba4 +distfiles="https://github.com/denoland/deno/archive/v${version}.tar.gz + https://void.johnnynator.dev/distfiles/rusty_v8-0.11.0.tar.gz" +checksum="802bd22bcb00c1f2331f054b83820dfcdd7f79cc135bcd062d057f35fec9cba4 + c4045d5a3e7f95f6faa323639a3289f7c543385c10a9015f73dfe97fc7d6ca7c" + +post_extract() { + mv ../rusty_v8-0.11.0 rusty-void + cat >>Cargo.toml <<-'_EOF' + + [patch.crates-io] + rusty_v8 = { path = 'rusty-void' } + _EOF +} do_build() { - V8_FROM_SOURCE=1 cargo build --release --locked --target ${RUST_TARGET} -vv + CLANG_BASE_PATH=/usr \ + NINJA=/usr/bin/ninja \ + GN=/usr/bin/gn \ + V8_FROM_SOURCE=1 \ + cargo build --release --locked --target ${RUST_TARGET} -vv } do_install() { diff --git a/srcpkgs/gn/template b/srcpkgs/gn/template index ae54fb17f2..155a81ae0e 100644 --- a/srcpkgs/gn/template +++ b/srcpkgs/gn/template @@ -2,7 +2,7 @@ pkgname=gn version=0.0.20201022 revision=1 -_githash=f5f465b52e5df6d4de9fbe67cc79f1914ba4dbfc +_githash=6f13aaac create_wrksrc=yes hostmakedepends="python3 ninja" short_desc="Meta-build system that generates build files for Ninja" @@ -10,7 +10,7 @@ maintainer="shizonic " license="BSD-3-Clause" homepage="https://gn.googlesource.com/gn/" distfiles="https://gn.googlesource.com/gn/+archive/${_githash}.tar.gz" -checksum=@3ef35abf6ff8530e55cd145c7f9498d6e08169d5fea9d9ce4ece29ff4b7fb14a +checksum=@80d9da7d58252fa49089386c943d8e3c493a4e314309dbf5e7b7585bfb484fa8 post_extract() { printf '#define LAST_COMMIT_POSITION "%s"\n' "$version" >src/gn/last_commit_position.h ``` I could make a proper from source build with this patch ontop. (The rusty_v8-0.11.0.tar.gz tarball is due to cargo beeing annoying when you want to patch, and it also doesn't do a shallow clone when pointed to a git repo)