George Hu pushed to branch main at Arch Linux / Packaging / Packages / deno


Commits:
99f001e9 by George Hu at 2026-05-19T18:44:07+08:00
Use system-provided Rust toolchain for V8 build

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -8,6 +8,7 @@ pkgbase = deno
        makedepends = git
        makedepends = python
        makedepends = rust
+       makedepends = rust-bindgen
        makedepends = nodejs
        makedepends = gn
        makedepends = ninja


=====================================
PKGBUILD
=====================================
@@ -10,7 +10,7 @@ arch=('x86_64')
 url="https://deno.com";
 license=('MIT')
 depends=('dbus' 'lcms2' 'libffi' 'libgcc' 'sqlite' 'zlib' 'zstd')
-makedepends=('git' 'python' 'rust' 'nodejs' 'gn' 'ninja' 'clang' 'lld' 'cmake' 
'protobuf')
+makedepends=('git' 'python' 'rust' 'rust-bindgen' 'nodejs' 'gn' 'ninja' 
'clang' 'lld' 'cmake' 'protobuf')
 source=("git+https://github.com/denoland/deno.git#tag=v$pkgver";
         "git+https://github.com/denoland/rusty_v8.git#tag=v$_rusty_v8_ver";
         "compiler-rt-adjust-paths.patch")
@@ -23,6 +23,8 @@ prepare() {
   git config -f .gitmodules submodule.v8.shallow true
   git submodule update --init --recursive
 
+  sed -i '/download_rust_toolchain();/d' build.rs
+
   # Drop flags rejected by the clang++ invoked in our build environment.
   sed -i \
     -e '/-fno-lifetime-dse/d' \
@@ -50,11 +52,16 @@ build() {
   export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
 
   local _clang_version=$(clang -dumpversion | cut -d '.' -f 1)
+  local _rustc_version=$(rustc --version)
   local _extra_gn_args=(
     'custom_toolchain="//build/toolchain/linux/unbundle:default"'
     'host_toolchain="//build/toolchain/linux/unbundle:default"'
     "clang_version=\"$_clang_version\""
+    'rust_sysroot_absolute="/usr"'
+    'rust_bindgen_root="/usr"'
+    "rustc_version=\"$_rustc_version\""
     'use_system_libffi=true'
+    'v8_enable_temporal_support=false'
   )
 
   export CC=clang CXX=clang++ AR=ar NM=nm



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/deno/-/commit/99f001e957bc63ffb82332e18802e516e6d019e7

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/deno/-/commit/99f001e957bc63ffb82332e18802e516e6d019e7
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to