From ba1b2d0f8cba693431fccd3a56776a1919a626c8b56334a809d4014af5a34b12 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 11 Oct 2024 15:32:04 +0000 Subject: [PATCH 1/4] - Use a fast aarch64 host to avoid log idle timeout OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=84 --- _constraints | 12 ++++++++++++ rusty_v8.changes | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/_constraints b/_constraints index 058f4f7..30187d5 100644 --- a/_constraints +++ b/_constraints @@ -5,4 +5,16 @@ 8 + + + + aarch64 + + + + asimdrdm + + 5 + + diff --git a/rusty_v8.changes b/rusty_v8.changes index 6f2df5b..738c439 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 11 06:06:23 UTC 2024 - Guillaume GARDET + +- Use a fast aarch64 host to avoid log idle timeout + ------------------------------------------------------------------- Fri Oct 4 05:58:29 UTC 2024 - Soc Virnyl Estela From 111138ff079a976e57a2c75811e06e007715797e217ec19673600481c6a49f11 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 11 Oct 2024 15:34:17 +0000 Subject: [PATCH 2/4] - Match gn build config for v8 from chromium OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=85 --- rusty_v8.changes | 5 +++++ rusty_v8.spec | 22 +++++++++++----------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/rusty_v8.changes b/rusty_v8.changes index 738c439..f4cdf3a 100644 --- a/rusty_v8.changes +++ b/rusty_v8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Oct 11 15:33:49 UTC 2024 - Soc Virnyl Estela + +- Match gn build config for v8 from chromium + ------------------------------------------------------------------- Fri Oct 11 06:06:23 UTC 2024 - Guillaume GARDET diff --git a/rusty_v8.spec b/rusty_v8.spec index 879c080..676451b 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %global __requires_exclude_from ^%{_libdir}/crates/rusty_v8/.*$ Name: rusty_v8 @@ -30,18 +31,18 @@ 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 Patch1: compiler-rt-adjust-paths.patch -BuildRequires: cargo-packaging BuildRequires: cargo -BuildRequires: sccache +BuildRequires: cargo-packaging BuildRequires: clang -BuildRequires: lld -BuildRequires: zstd -BuildRequires: gn -BuildRequires: llvm BuildRequires: fdupes +BuildRequires: gn +BuildRequires: lld +BuildRequires: llvm BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: python3-base +BuildRequires: sccache +BuildRequires: zstd BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0) BuildRequires: pkgconfig(gobject-2.0) @@ -54,7 +55,6 @@ ExclusiveArch: %{rust_tier1_arches} BuildRequires: gcc-c++ %endif - %description V8 build tooling for Deno. This represents all of the common cruft that is dragged along into the deno build from V8, @@ -72,14 +72,14 @@ sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn %build # 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/') -# See https://github.com/denoland/rusty_v8/#build-v8-from-source export V8_FROM_SOURCE=1 export CLANG_BASE_PATH=%{_prefix} -export GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true" 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 GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true enable_nacl = false blink_symbol_level = 0 v8_symbol_level = 0" +export CFLAGS="%{optflags}" +export CXXFLAGS="%{optflags}" export RUST_BACKTRACE=full %{cargo_build} From fe80d3be2f2b9e47a2d3486c6ed049c4ec5c4d6466b6cd520694883194112b8b Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 11 Oct 2024 16:26:07 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=86 --- rusty_v8.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index 676451b..93cd389 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -78,8 +78,8 @@ export CC=clang export CXX=clang++ # https://www.chromium.org/developers/gn-build-configuration export GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true enable_nacl = false blink_symbol_level = 0 v8_symbol_level = 0" -export CFLAGS="%{optflags}" -export CXXFLAGS="%{optflags}" +export CFLAGS="%{optflags} -Wno-unknown-warning-option" +export CXXFLAGS="%{optflags} -Wno-unknown-warning-option" export RUST_BACKTRACE=full %{cargo_build} From fdf4779d8078830de30c8f7c08fa839f70a3f9c2bca6dbe2f4c93582f5c1d004 Mon Sep 17 00:00:00 2001 From: Soc Virnyl Estela Date: Fri, 11 Oct 2024 20:40:58 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=87 --- rusty_v8.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/rusty_v8.spec b/rusty_v8.spec index 93cd389..470d0b4 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -41,7 +41,6 @@ BuildRequires: llvm BuildRequires: ninja BuildRequires: pkgconfig BuildRequires: python3-base -BuildRequires: sccache BuildRequires: zstd BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gmodule-2.0)