diff --git a/deno-v8-arm.patch b/deno-v8-arm.patch new file mode 100644 index 0000000..47dbdc8 --- /dev/null +++ b/deno-v8-arm.patch @@ -0,0 +1,21 @@ +--- ./vendor/v8/build.rs.orig 2024-06-27 14:26:40.281226961 +0200 ++++ ./vendor/v8/build.rs 2024-06-27 14:28:10.388618455 +0200 +@@ -200,16 +200,12 @@ fn build_v8(is_asan: bool) { + // cross-compilation setup + if target_arch == "aarch64" { + gn_args.push(r#"target_cpu="arm64""#.to_string()); +- gn_args.push("use_sysroot=true".to_string()); +- maybe_install_sysroot("arm64"); +- maybe_install_sysroot("amd64"); ++ gn_args.push("use_sysroot=false".to_string()); + } + if target_arch == "arm" { + gn_args.push(r#"target_cpu="arm""#.to_string()); + gn_args.push(r#"v8_target_cpu="arm""#.to_string()); +- gn_args.push("use_sysroot=true".to_string()); +- maybe_install_sysroot("i386"); +- maybe_install_sysroot("arm"); ++ gn_args.push("use_sysroot=false".to_string()); + } + + let target_triple = env::var("TARGET").unwrap(); diff --git a/deno.changes b/deno.changes index 1fd8c76..d3013e4 100644 --- a/deno.changes +++ b/deno.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 27 14:33:49 UTC 2024 - Guillaume GARDET + +- Disable cross-compilation for aarch64 and arm: + * deno-v8-arm.patch + ------------------------------------------------------------------- Wed Jun 19 18:52:29 UTC 2024 - Avindra Goolcharan diff --git a/deno.spec b/deno.spec index fb6d4e1..bce1711 100644 --- a/deno.spec +++ b/deno.spec @@ -30,6 +30,7 @@ Source1: vendor.tar.xz Source2: cargo_config Source99: revendor_source.sh Patch1: deno-rm-upgrade.patch +Patch2: deno-v8-arm.patch BuildRequires: cargo-packaging # gcc-c++ needed to build SPIRV-Cross BuildRequires: clang