From 830a205b1821c2c74baa2bda7309aada340c14e3c4b650a0552b95bf2d14f4f6 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Sun, 15 Feb 2026 23:59:59 +0800 Subject: [PATCH 01/26] Remove gcc switch. Set clang minver to 19. Ensure we use the LLVM toolchain and not GCC for the C compiler. Only pp64 requires gcc-c++ Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 6 ++++++ rusty_v8.spec | 15 ++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index e54384e..2fcca49 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 15 15:59:49 UTC 2026 - Soc Virnyl Estela + +- Remove gcc switch. Set clang minver to 19. Ensure we use the LLVM toolchain + and not GCC for the C compiler. Only pp64 requires gcc-c++ + ------------------------------------------------------------------- Sun Feb 15 00:38:48 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 13047f4..7003423 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -16,6 +16,7 @@ # +%global _min_clang_version 19 %global __requires_exclude_from ^%{_libdir}/crates/rusty_v8/.*$ Name: rusty_v8 @@ -35,14 +36,14 @@ Patch1: compiler-rt-adjust-paths.patch Patch2: disable-rust-toolchain-download.patch BuildRequires: cargo BuildRequires: cargo-packaging -BuildRequires: clang21 -BuildRequires: clang21-devel +BuildRequires: clang >= %{_min_clang_version} +BuildRequires: clang-devel >= %{_min_clang_version} +BuildRequires: llvm >= %{_min_clang_version} +BuildRequires: llvm-devel >= %{_min_clang_version} +BuildRequires: lld >= %{_min_clang_version} BuildRequires: fdupes BuildRequires: gn -BuildRequires: lld21 BuildRequires: rust-bindgen -BuildRequires: llvm21 -BuildRequires: llvm21-devel BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: python3-base @@ -84,6 +85,8 @@ export V8_FROM_SOURCE=1 export CLANG_BASE_PATH=%{_prefix} export CC=clang export CXX=clang++ +export CFLAGS="%{optflags} -Wno-unknown-warning-option" +export CXXFLAGS="%{optflags} -Wno-unknown-warning-option" # https://www.chromium.org/developers/gn-build-configuration export RUSTC_SYSROOT=$(rustc --print sysroot) export RUSTC_VERSION=$(rustc -V | cut -d' ' -f2) @@ -92,8 +95,6 @@ export NINJA="/usr/bin/ninja" export RUSTC="/usr/bin/rustc" export GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true v8_symbol_level=0" # export EXTRA_GN_ARGS="rust_sysroot_absolute=${RUSTC_SYSROOT} rustc_version=${RUSTC_VERSION}" -export CFLAGS="%{optflags} -Wno-unknown-warning-option" -export CXXFLAGS="%{optflags} -Wno-unknown-warning-option" export RUST_BACKTRACE=full %{cargo_build} -- 2.51.1 From 35b1b7e05136d2f56cc7b564f345567375095bedcf92c308487e40f0622014b0 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 00:06:43 +0800 Subject: [PATCH 02/26] remove rust src as build requirement Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index 2fcca49..2b1c40b 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 15 16:06:28 UTC 2026 - Soc Virnyl Estela + +- Remove rust-src as build requirement + ------------------------------------------------------------------- Sun Feb 15 15:59:49 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 7003423..fd06e76 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -48,7 +48,6 @@ BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: python3-base BuildRequires: zstd -BuildRequires: rust-src BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-2.0) -- 2.51.1 From 08ae8463f57ddffb2e7c22e31511f052392ce4a97e70995a1df85472bff15f61 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 00:39:57 +0800 Subject: [PATCH 03/26] update gn_args Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index 2b1c40b..29cee08 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 15 16:39:43 UTC 2026 - Soc Virnyl Estela + +- Update GN_ARGS and EXTRA_GN_ARGS + ------------------------------------------------------------------- Sun Feb 15 16:06:28 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index fd06e76..672f003 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -92,8 +92,18 @@ export RUSTC_VERSION=$(rustc -V | cut -d' ' -f2) export GN="/usr/bin/gn" export NINJA="/usr/bin/ninja" export RUSTC="/usr/bin/rustc" -export GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true v8_symbol_level=0" -# export EXTRA_GN_ARGS="rust_sysroot_absolute=${RUSTC_SYSROOT} rustc_version=${RUSTC_VERSION}" +export GN_ARGS=" + clang_version=${CLANG_VERSION} + use_lld=true + v8_symbol_level=0 + custom_toolchain=\"//build/toolchain/linux/unbundle:default\" + host_toolchain=\"//build/toolchain/linux/unbundle:default\" + system_zlib=true + use_custom_libcxx=false + use_sysroot=false + use_system_libffi=true + " +export EXTRA_GN_ARGS="use_custom_libcxx=false" export RUST_BACKTRACE=full %{cargo_build} -- 2.51.1 From 2c8f0b0ffd61e21ae382990b9e5173a6067b29f49b155ecf84c9804f96305714 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 00:51:23 +0800 Subject: [PATCH 04/26] experiment if we can use binutils and host Signed-off-by: Soc Virnyl Estela --- chromium-rust-toolchain.tar.xz | 3 --- rusty_v8.changes | 6 ++++++ rusty_v8.spec | 6 ++---- 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 chromium-rust-toolchain.tar.xz diff --git a/chromium-rust-toolchain.tar.xz b/chromium-rust-toolchain.tar.xz deleted file mode 100644 index 89d2baa..0000000 --- a/chromium-rust-toolchain.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5ca1ca6268ce2dcfe878c623f0f49e4eba983bb36e79ceddb9c745ef48efc933 -size 140484296 diff --git a/rusty_v8.changes b/rusty_v8.changes index 29cee08..4062292 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Feb 15 16:50:20 UTC 2026 - Soc Virnyl Estela + +- Test remove chromium-rust-toolchain.tar.xz. +- It seems binutils is required if we want to use the host toolchain + ------------------------------------------------------------------- Sun Feb 15 16:39:43 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 672f003..5c88203 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -28,7 +28,6 @@ Group: Productivity/Other URL: https://github.com/denoland/rusty_v8 Source0: %{name}-%{version}.tar.zst Source1: vendor.tar.zst -Source2: https://storage.googleapis.com/chromium-browser-clang/Linux_x64/rust-toolchain-a4cfac7093a1c1c7fbdb6bc75d6b6dc4d385fc69-2-llvmorg-22-init-17020-gbd1bd178.tar.xz#/chromium-rust-toolchain.tar.xz Source100: rusty_v8-rpmlintrc Patch0: deno-v8-arm.patch # Based on https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/raw/main/compiler-rt-adjust-paths.patch @@ -41,12 +40,13 @@ BuildRequires: clang-devel >= %{_min_clang_version} BuildRequires: llvm >= %{_min_clang_version} BuildRequires: llvm-devel >= %{_min_clang_version} BuildRequires: lld >= %{_min_clang_version} +BuildRequires: binutils BuildRequires: fdupes BuildRequires: gn -BuildRequires: rust-bindgen BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: python3-base +BuildRequires: rust-bindgen BuildRequires: zstd BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) @@ -73,8 +73,6 @@ Chromium, etc. # lib to lib64 sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn %endif -mkdir -p third_party/rust-toolchain -tar xf %{SOURCE2} -C third_party/rust-toolchain %build # Ensure that the clang version matches. This command came from Archlinux. Thanks. -- 2.51.1 From 28724e89bc196398e537340982a6dcd02d3e542bbb8a5a9210336ba1a529d1dc Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 00:57:36 +0800 Subject: [PATCH 05/26] add back ./chromium-rust-toolchain.tar.xz Signed-off-by: Soc Virnyl Estela --- chromium-rust-toolchain.tar.xz | 3 +++ rusty_v8.changes | 5 +++++ rusty_v8.spec | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 chromium-rust-toolchain.tar.xz diff --git a/chromium-rust-toolchain.tar.xz b/chromium-rust-toolchain.tar.xz new file mode 100644 index 0000000..89d2baa --- /dev/null +++ b/chromium-rust-toolchain.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ca1ca6268ce2dcfe878c623f0f49e4eba983bb36e79ceddb9c745ef48efc933 +size 140484296 diff --git a/rusty_v8.changes b/rusty_v8.changes index 4062292..94f60e5 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 15 16:56:58 UTC 2026 - Soc Virnyl Estela + +- Add back chromium-rust-toolchain.tar.xz + ------------------------------------------------------------------- Sun Feb 15 16:50:20 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 5c88203..c50b08f 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -28,6 +28,7 @@ Group: Productivity/Other URL: https://github.com/denoland/rusty_v8 Source0: %{name}-%{version}.tar.zst Source1: vendor.tar.zst +Source2: https://storage.googleapis.com/chromium-browser-clang/Linux_x64/rust-toolchain-a4cfac7093a1c1c7fbdb6bc75d6b6dc4d385fc69-2-llvmorg-22-init-17020-gbd1bd178.tar.xz#/chromium-rust-toolchain.tar.xz Source100: rusty_v8-rpmlintrc Patch0: deno-v8-arm.patch # Based on https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/raw/main/compiler-rt-adjust-paths.patch @@ -73,6 +74,8 @@ Chromium, etc. # lib to lib64 sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn %endif +mkdir -p third_party/rust-toolchain +tar xf %{SOURCE2} -C third_party/rust-toolchain %build # Ensure that the clang version matches. This command came from Archlinux. Thanks. -- 2.51.1 From 1fac9647b462e9e846a4403288ef9844e47676ff07ef64542b739e02177749f3 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 01:02:21 +0800 Subject: [PATCH 06/26] export AR and NM Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/rusty_v8.spec b/rusty_v8.spec index c50b08f..f1c4145 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -85,6 +85,7 @@ export V8_FROM_SOURCE=1 export CLANG_BASE_PATH=%{_prefix} export CC=clang export CXX=clang++ +export AR=ar NM=nm export CFLAGS="%{optflags} -Wno-unknown-warning-option" export CXXFLAGS="%{optflags} -Wno-unknown-warning-option" # https://www.chromium.org/developers/gn-build-configuration -- 2.51.1 From 45d0852c56c6fc7543a2351dfdb8319f0cf5124860809ff738bfe5139a916328 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 01:08:58 +0800 Subject: [PATCH 07/26] adjust missing zlib usage option Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/rusty_v8.changes b/rusty_v8.changes index 94f60e5..fe229c7 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 15 17:08:27 UTC 2026 - Soc Virnyl Estela + +- This option seems to be missing in aarch64 when setting use_system_zlib + ------------------------------------------------------------------- Sun Feb 15 16:56:58 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index f1c4145..2ce37c6 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -100,7 +100,9 @@ export GN_ARGS=" v8_symbol_level=0 custom_toolchain=\"//build/toolchain/linux/unbundle:default\" host_toolchain=\"//build/toolchain/linux/unbundle:default\" +%ifarch x86_64 x86_64_v3 system_zlib=true +%endif use_custom_libcxx=false use_sysroot=false use_system_libffi=true -- 2.51.1 From af2b3c31619880342a0c259ce6ba381641f948b6c65529bf4f0e92db8759b8ac Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 01:13:43 +0800 Subject: [PATCH 08/26] now it's the option to use system libffi missing in aarch64 Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 4 ++-- rusty_v8.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index fe229c7..f24b38d 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- -Sun Feb 15 17:08:27 UTC 2026 - Soc Virnyl Estela +Sun Feb 15 17:13:13 UTC 2026 - Soc Virnyl Estela -- This option seems to be missing in aarch64 when setting use_system_zlib +- These options seem to be missing in aarch64 when setting use_system_zlib and system_libffi ------------------------------------------------------------------- Sun Feb 15 16:56:58 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 2ce37c6..0561dbf 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -102,10 +102,10 @@ export GN_ARGS=" host_toolchain=\"//build/toolchain/linux/unbundle:default\" %ifarch x86_64 x86_64_v3 system_zlib=true + use_system_libffi=true %endif use_custom_libcxx=false use_sysroot=false - use_system_libffi=true " export EXTRA_GN_ARGS="use_custom_libcxx=false" export RUST_BACKTRACE=full -- 2.51.1 From e95b80c4694b420dcba45ef0fef9fd1b33157cb7c284fe6fcd9605a3ab0b9a90 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 01:28:51 +0800 Subject: [PATCH 09/26] Symlink host toolchain if aarch64 Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/rusty_v8.changes b/rusty_v8.changes index f24b38d..6c4f012 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 15 17:28:21 UTC 2026 - Soc Virnyl Estela + +- Symlink toolchain from host to custom if aarch64 + ------------------------------------------------------------------- Sun Feb 15 17:13:13 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 0561dbf..aaeb0be 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -76,6 +76,12 @@ sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn %endif mkdir -p third_party/rust-toolchain tar xf %{SOURCE2} -C third_party/rust-toolchain +%ifarch aarch64 +for tool in cargo-clippy cargo-fmt clippy-driver rust-gdb rust-gdbgui rust-lldb rustc rustdoc rustfmt +do + ln -s %{_bindir}/$tool third_party/rust-toolchain/bin/$tool +done +%endif %build # Ensure that the clang version matches. This command came from Archlinux. Thanks. -- 2.51.1 From ddf9c3b1ea386a9179930eb9a3db00e88ceb57acd3e85ced156dc0a528c81643 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 01:31:38 +0800 Subject: [PATCH 10/26] force symlink Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index aaeb0be..cd7a615 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -79,7 +79,7 @@ tar xf %{SOURCE2} -C third_party/rust-toolchain %ifarch aarch64 for tool in cargo-clippy cargo-fmt clippy-driver rust-gdb rust-gdbgui rust-lldb rustc rustdoc rustfmt do - ln -s %{_bindir}/$tool third_party/rust-toolchain/bin/$tool + ln -sfv %{_bindir}/$tool third_party/rust-toolchain/bin/$tool done %endif -- 2.51.1 From f6ecdfae525e82011a2756c5854a86b830be52f4b5fb07dde37bbf20232373b9 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 01:35:56 +0800 Subject: [PATCH 11/26] enable nightly features with export RUSTC_BOOTSTRAP=1 Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/rusty_v8.changes b/rusty_v8.changes index 6c4f012..49ce480 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 15 17:35:39 UTC 2026 - Soc Virnyl Estela + +- Enable nightly features with export RUSTC_BOOTSTRAP=1 + ------------------------------------------------------------------- Sun Feb 15 17:28:21 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index cd7a615..cc44103 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -77,6 +77,7 @@ sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn mkdir -p third_party/rust-toolchain tar xf %{SOURCE2} -C third_party/rust-toolchain %ifarch aarch64 +export RUSTC_BOOTSTRAP=1 for tool in cargo-clippy cargo-fmt clippy-driver rust-gdb rust-gdbgui rust-lldb rustc rustdoc rustfmt do ln -sfv %{_bindir}/$tool third_party/rust-toolchain/bin/$tool -- 2.51.1 From 1629623eb3b8e60ae974dcd1ce98364fe680991ec3b99d89f7c096da8c25e7cb Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 01:38:10 +0800 Subject: [PATCH 12/26] do this on build section Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rusty_v8.spec b/rusty_v8.spec index cc44103..9eda3b4 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -85,6 +85,9 @@ done %endif %build +%ifarch aarch64 +export RUSTC_BOOTSTRAP=1 +%endif # 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 LIBCLANG_PATH=%{_libdir} -- 2.51.1 From 8af3ca4421df87b2a8dec68030ff7aea3fe25bbc05778186b96325983e5af532 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 02:13:11 +0800 Subject: [PATCH 13/26] even bindgen needs to be symlinked Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index 9eda3b4..283eb6d 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -78,7 +78,7 @@ mkdir -p third_party/rust-toolchain tar xf %{SOURCE2} -C third_party/rust-toolchain %ifarch aarch64 export RUSTC_BOOTSTRAP=1 -for tool in cargo-clippy cargo-fmt clippy-driver rust-gdb rust-gdbgui rust-lldb rustc rustdoc rustfmt +for tool in cargo-clippy bindgen cargo-fmt clippy-driver rust-gdb rust-gdbgui rust-lldb rustc rustdoc rustfmt do ln -sfv %{_bindir}/$tool third_party/rust-toolchain/bin/$tool done -- 2.51.1 From 22c9bedba6349e396e02cf0b113f52fc0318ba2fc92e6730a4747d5a830dd277 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 13:41:11 +0800 Subject: [PATCH 14/26] update constraints Signed-off-by: Soc Virnyl Estela --- _constraints | 4 ++-- rusty_v8.changes | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/_constraints b/_constraints index 30187d5..5bc2e96 100644 --- a/_constraints +++ b/_constraints @@ -2,7 +2,7 @@ - 8 + 16 @@ -14,7 +14,7 @@ asimdrdm - 5 + 3 diff --git a/rusty_v8.changes b/rusty_v8.changes index 49ce480..edc5a75 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 16 05:28:22 UTC 2026 - Soc Virnyl Estela + +- Update _constraints. Set physical memory to 16GB + ------------------------------------------------------------------- Sun Feb 15 17:35:39 UTC 2026 - Soc Virnyl Estela -- 2.51.1 From 58b14bd658bf981cbd558004b8ee125290a9d1d026af5cf145654ee97acfd99a Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 19:39:42 +0800 Subject: [PATCH 15/26] use_system_zlib -> system_zlib Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index edc5a75..3a83be6 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 16 11:39:21 UTC 2026 - Soc Virnyl Estela + +- use_system_zlib -> system_zlib + ------------------------------------------------------------------- Mon Feb 16 05:28:22 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 283eb6d..32bba67 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -110,10 +110,8 @@ export GN_ARGS=" v8_symbol_level=0 custom_toolchain=\"//build/toolchain/linux/unbundle:default\" host_toolchain=\"//build/toolchain/linux/unbundle:default\" -%ifarch x86_64 x86_64_v3 system_zlib=true use_system_libffi=true -%endif use_custom_libcxx=false use_sysroot=false " -- 2.51.1 From c4acea9d325a78ae803bc938fc7cbd1a57b870fb8f0e5a65e79460f955b401d3 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 21:33:12 +0800 Subject: [PATCH 16/26] test new cargo and rust env vars to limit oom Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/rusty_v8.changes b/rusty_v8.changes index 3a83be6..a352466 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 16 13:32:36 UTC 2026 - Soc Virnyl Estela + +- Test with thin LTO and limit our debug info because it still OOMs + ------------------------------------------------------------------- Mon Feb 16 11:39:21 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 32bba67..cf7c54a 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -111,12 +111,23 @@ export GN_ARGS=" custom_toolchain=\"//build/toolchain/linux/unbundle:default\" host_toolchain=\"//build/toolchain/linux/unbundle:default\" system_zlib=true + fatal_linker_warnings=false + is_debug=false use_system_libffi=true use_custom_libcxx=false use_sysroot=false " export EXTRA_GN_ARGS="use_custom_libcxx=false" export RUST_BACKTRACE=full + +# deno seems to foolishly assume 8MiB stack +# -A warnings - silence rust linter warnings +export RUSTFLAGS="$RUSTFLAGS -C linker=clang++ -C link-arg=-fuse-ld=lld -C link-args=-Wl,-zstack-size=8388608 -A warnings" + +# Included limited debug info. +export CARGO_PROFILE_RELEASE_DEBUG=1 +# Use "thin" instead of "fat" to speed up builds (it costs +4% binary size). +export CARGO_PROFILE_RELEASE_LTO="thin" %{cargo_build} %install -- 2.51.1 From 3a0f8d56f2ca3c99e547a47a2b00207cee42db2db2c2d001f96eda14862dd7ff Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 21:43:02 +0800 Subject: [PATCH 17/26] try mold and set the rustbuildflags as a macro Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 21 ++++++++++++++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index a352466..2443feb 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 16 13:40:27 UTC 2026 - Soc Virnyl Estela + +- Try with mold if tumbleweed + ------------------------------------------------------------------- Mon Feb 16 13:32:36 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index cf7c54a..87b7f90 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -19,6 +19,19 @@ %global _min_clang_version 19 %global __requires_exclude_from ^%{_libdir}/crates/rusty_v8/.*$ +%if 0%{?suse_version} > 1600 +%bcond_without mold +%else +%bcond_with mold +%endif + +%if %{with mold} +%global build_rustflags "-C" "linker=clang++" "-C" "link-arg='-fuse-ld=/usr/bin/mold -Wl,-z,relro,-z,now,-zstack-size=8388608'" "-C" "debuginfo=2" "-C" "incremental=false" "-C" "strip=none" "-A" "warnings" +%else +%global build_rustflags "-C" "linker=clang++" "-C" "link-arg='-fuse-ld=/usr/bin/lld -Wl,-z,relro,-z,now,-zstack-size=8388608'" "-C" "debuginfo=2" "-C" "incremental=false" "-C" "strip=none" "-A" "warnings" +%endif + + Name: rusty_v8 Version: 145.0.0 Release: 0 @@ -46,6 +59,9 @@ BuildRequires: fdupes BuildRequires: gn BuildRequires: ninja BuildRequires: pkgconfig +%if 0%{?suse_version} > 1600 +BuildRequires: mold +%else BuildRequires: python3-base BuildRequires: rust-bindgen BuildRequires: zstd @@ -118,11 +134,6 @@ export GN_ARGS=" use_sysroot=false " export EXTRA_GN_ARGS="use_custom_libcxx=false" -export RUST_BACKTRACE=full - -# deno seems to foolishly assume 8MiB stack -# -A warnings - silence rust linter warnings -export RUSTFLAGS="$RUSTFLAGS -C linker=clang++ -C link-arg=-fuse-ld=lld -C link-args=-Wl,-zstack-size=8388608 -A warnings" # Included limited debug info. export CARGO_PROFILE_RELEASE_DEBUG=1 -- 2.51.1 From 67f499149caaf5a2e2fec74d939e63dc22c8da97654ddd68964c30b14a9744ec Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 21:49:35 +0800 Subject: [PATCH 18/26] fix unclosed if macro Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index 87b7f90..d6ffbea 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -54,14 +54,15 @@ BuildRequires: clang-devel >= %{_min_clang_version} BuildRequires: llvm >= %{_min_clang_version} BuildRequires: llvm-devel >= %{_min_clang_version} BuildRequires: lld >= %{_min_clang_version} +BuildRequires: lld >= %{_min_clang_version} +%if 0%{?suse_version} > 1600 +BuildRequires: mold +%endif BuildRequires: binutils BuildRequires: fdupes BuildRequires: gn BuildRequires: ninja BuildRequires: pkgconfig -%if 0%{?suse_version} > 1600 -BuildRequires: mold -%else BuildRequires: python3-base BuildRequires: rust-bindgen BuildRequires: zstd -- 2.51.1 From e2f7dd2371d07171750fd7812276c8431c695a4f1ff139b7e3700e3b5d2e0a81 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 21:56:02 +0800 Subject: [PATCH 19/26] fix. use ld.lld instead of lld Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index d6ffbea..8913bb0 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -28,7 +28,7 @@ %if %{with mold} %global build_rustflags "-C" "linker=clang++" "-C" "link-arg='-fuse-ld=/usr/bin/mold -Wl,-z,relro,-z,now,-zstack-size=8388608'" "-C" "debuginfo=2" "-C" "incremental=false" "-C" "strip=none" "-A" "warnings" %else -%global build_rustflags "-C" "linker=clang++" "-C" "link-arg='-fuse-ld=/usr/bin/lld -Wl,-z,relro,-z,now,-zstack-size=8388608'" "-C" "debuginfo=2" "-C" "incremental=false" "-C" "strip=none" "-A" "warnings" +%global build_rustflags "-C" "linker=clang++" "-C" "link-arg='-fuse-ld=/usr/bin/ld.lld -Wl,-z,relro,-z,now,-zstack-size=8388608'" "-C" "debuginfo=2" "-C" "incremental=false" "-C" "strip=none" "-A" "warnings" %endif -- 2.51.1 From e4d5e0a50722cfaa471bc746c9dee497f424cd1a3aa49cb3ce81050e70c3a789 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Mon, 16 Feb 2026 23:08:50 +0800 Subject: [PATCH 20/26] remove use_lld since we are using RUSTFLAGS here as a macro that switches between lld or mold Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index 8913bb0..0690396 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -123,7 +123,6 @@ export NINJA="/usr/bin/ninja" export RUSTC="/usr/bin/rustc" export GN_ARGS=" clang_version=${CLANG_VERSION} - use_lld=true v8_symbol_level=0 custom_toolchain=\"//build/toolchain/linux/unbundle:default\" host_toolchain=\"//build/toolchain/linux/unbundle:default\" -- 2.51.1 From bb134fd2893ad0aef9a494e98215a85de774b9180c0fe016118d4dcd293a09d4 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 17 Feb 2026 09:07:16 +0800 Subject: [PATCH 21/26] copy _constraints from chromium Signed-off-by: Soc Virnyl Estela --- _constraints | 26 ++++++++++++++++++++------ rusty_v8.changes | 5 +++++ 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/_constraints b/_constraints index 5bc2e96..95fc563 100644 --- a/_constraints +++ b/_constraints @@ -1,20 +1,34 @@ - + + + 30 + - 16 + 14 - aarch64 - asimdrdm + asimdrdm - 3 - + + 11 + + + + + + ppc64le + + + + 50 + + diff --git a/rusty_v8.changes b/rusty_v8.changes index 2443feb..5697f79 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 17 01:06:53 UTC 2026 - Soc Virnyl Estela + +- Copy _constraints from chromium + ------------------------------------------------------------------- Mon Feb 16 13:40:27 UTC 2026 - Soc Virnyl Estela -- 2.51.1 From fb950633c6b5737be3d0fbe04fb21fbb96d110937d0e123f6aa130b83f37082f Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 17 Feb 2026 15:17:31 +0800 Subject: [PATCH 22/26] cleanup for 145.0.0 Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 55 +++--------------------------------------------- rusty_v8.spec | 2 +- 2 files changed, 4 insertions(+), 53 deletions(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index 5697f79..7f004f1 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,62 +1,13 @@ ------------------------------------------------------------------- -Tue Feb 17 01:06:53 UTC 2026 - Soc Virnyl Estela +Tue Feb 17 07:15:10 UTC 2026 - Soc Virnyl Estela +- Cleanup specfile - Copy _constraints from chromium - -------------------------------------------------------------------- -Mon Feb 16 13:40:27 UTC 2026 - Soc Virnyl Estela - - Try with mold if tumbleweed - -------------------------------------------------------------------- -Mon Feb 16 13:32:36 UTC 2026 - Soc Virnyl Estela - - Test with thin LTO and limit our debug info because it still OOMs - -------------------------------------------------------------------- -Mon Feb 16 11:39:21 UTC 2026 - Soc Virnyl Estela - -- use_system_zlib -> system_zlib - -------------------------------------------------------------------- -Mon Feb 16 05:28:22 UTC 2026 - Soc Virnyl Estela - +- update GN_ARGS - Update _constraints. Set physical memory to 16GB - -------------------------------------------------------------------- -Sun Feb 15 17:35:39 UTC 2026 - Soc Virnyl Estela - -- Enable nightly features with export RUSTC_BOOTSTRAP=1 - -------------------------------------------------------------------- -Sun Feb 15 17:28:21 UTC 2026 - Soc Virnyl Estela - -- Symlink toolchain from host to custom if aarch64 - -------------------------------------------------------------------- -Sun Feb 15 17:13:13 UTC 2026 - Soc Virnyl Estela - -- These options seem to be missing in aarch64 when setting use_system_zlib and system_libffi - -------------------------------------------------------------------- -Sun Feb 15 16:56:58 UTC 2026 - Soc Virnyl Estela - -- Add back chromium-rust-toolchain.tar.xz - -------------------------------------------------------------------- -Sun Feb 15 16:50:20 UTC 2026 - Soc Virnyl Estela - -- Test remove chromium-rust-toolchain.tar.xz. - It seems binutils is required if we want to use the host toolchain - -------------------------------------------------------------------- -Sun Feb 15 16:39:43 UTC 2026 - Soc Virnyl Estela - -- Update GN_ARGS and EXTRA_GN_ARGS - -------------------------------------------------------------------- -Sun Feb 15 16:06:28 UTC 2026 - Soc Virnyl Estela - - Remove rust-src as build requirement ------------------------------------------------------------------- diff --git a/rusty_v8.spec b/rusty_v8.spec index 0690396..dac9f8f 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -73,7 +73,7 @@ BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(gthread-2.0) BuildRequires: pkgconfig(icu-i18n) # Rusty V8 does not guarantee builds for 32 bit and ppc -ExclusiveArch: %{rust_tier1_arches} +ExclusiveArch: x86_64 x86_64_v3 %ifarch ppc64 # wants g++ for some reason BuildRequires: gcc-c++ %endif -- 2.51.1 From 3546ade5f36f07e7b0c6cb5da5fabaa0ae9ae00b0135c99518d89c6bc5502d0a Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 17 Feb 2026 15:21:13 +0800 Subject: [PATCH 23/26] remove symlinking Signed-off-by: Soc Virnyl Estela --- rusty_v8.spec | 7 ------- 1 file changed, 7 deletions(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index dac9f8f..1b1870c 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -93,13 +93,6 @@ sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn %endif mkdir -p third_party/rust-toolchain tar xf %{SOURCE2} -C third_party/rust-toolchain -%ifarch aarch64 -export RUSTC_BOOTSTRAP=1 -for tool in cargo-clippy bindgen cargo-fmt clippy-driver rust-gdb rust-gdbgui rust-lldb rustc rustdoc rustfmt -do - ln -sfv %{_bindir}/$tool third_party/rust-toolchain/bin/$tool -done -%endif %build %ifarch aarch64 -- 2.51.1 From 07d67914b30168a901ab1602bf04dd6b80d7daa8dc135250439d85341dcc38e8 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 17 Feb 2026 17:00:03 +0800 Subject: [PATCH 24/26] remove unknown GN arg Signed-off-by: Soc Virnyl Estela --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index 7f004f1..b497c6b 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 17 08:59:43 UTC 2026 - Soc Virnyl Estela + +- Remove unknown GN arg system_zlib + ------------------------------------------------------------------- Tue Feb 17 07:15:10 UTC 2026 - Soc Virnyl Estela diff --git a/rusty_v8.spec b/rusty_v8.spec index 1b1870c..435be5e 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -119,7 +119,6 @@ export GN_ARGS=" v8_symbol_level=0 custom_toolchain=\"//build/toolchain/linux/unbundle:default\" host_toolchain=\"//build/toolchain/linux/unbundle:default\" - system_zlib=true fatal_linker_warnings=false is_debug=false use_system_libffi=true -- 2.51.1 From 06da513d44594c119f2e7914b5838c3239a62c28964c1b23bc96a8b74b3cf51f Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 17 Feb 2026 19:28:12 +0800 Subject: [PATCH 25/26] update constraints Signed-off-by: Soc Virnyl Estela --- _constraints | 2 +- rusty_v8.changes | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_constraints b/_constraints index 95fc563..9db4bb1 100644 --- a/_constraints +++ b/_constraints @@ -5,7 +5,7 @@ 30 - 14 + 18 diff --git a/rusty_v8.changes b/rusty_v8.changes index b497c6b..953b799 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 17 11:27:38 UTC 2026 - Soc Virnyl Estela + +- Update _constraints. Set physical memory to 18GB + ------------------------------------------------------------------- Tue Feb 17 08:59:43 UTC 2026 - Soc Virnyl Estela -- 2.51.1 From 3cea62d34c5bb7967d90e6e33230d6de0e3a72994de2e1c5e69de44a6d2d3688 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Tue, 17 Feb 2026 19:35:27 +0800 Subject: [PATCH 26/26] not needed Signed-off-by: Soc Virnyl Estela --- rusty_v8.obsinfo | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 rusty_v8.obsinfo diff --git a/rusty_v8.obsinfo b/rusty_v8.obsinfo deleted file mode 100644 index 97fb045..0000000 --- a/rusty_v8.obsinfo +++ /dev/null @@ -1,4 +0,0 @@ -name: rusty_v8 -version: 135.1.0 -mtime: 1742748458 -commit: 9cd584266ff1150c7b30d8b9e792643819ef9431 -- 2.51.1