Accepting request 1207399 from devel:languages:javascript
- Disable LTO. This seems to cause clang to recognize formats incorrectly, thus, not recognizing the symbols. This also results disabling LTO builds in rustc altogether removing the specified architecture requirement for patch ./deno-disable-lto.patch - Add CFLAGS and CXXFLAGS - Refresh _constraints file. - Refresh patch: * deno-disable-lto.patch OBS-URL: https://build.opensuse.org/request/show/1207399 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/deno?expand=0&rev=49
This commit is contained in:
commit
ac1a058650
30
_constraints
30
_constraints
@ -1,15 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Trying constraint per:
|
||||
https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/G4HX77LQANTQTZMARIU4XQI4JT3RCEQ7/#G3N7PCAUIIVPO63V5QYKY6QMZK4TEP2Q
|
||||
-->
|
||||
<constraints>
|
||||
<hardware>
|
||||
<disk>
|
||||
<size unit="G">18</size>
|
||||
</disk>
|
||||
<physicalmemory>
|
||||
<size unit="G">21</size>
|
||||
</physicalmemory>
|
||||
</hardware>
|
||||
<hardware>
|
||||
<physicalmemory>
|
||||
<size unit="G">8</size>
|
||||
</physicalmemory>
|
||||
</hardware>
|
||||
<!-- Use a fast aarch64 host to avoid log idle timeout -->
|
||||
<overwrite>
|
||||
<conditions>
|
||||
<arch>aarch64</arch>
|
||||
</conditions>
|
||||
<hardware>
|
||||
<cpu>
|
||||
<flag>asimdrdm</flag>
|
||||
</cpu>
|
||||
<jobs>5</jobs>
|
||||
</hardware>
|
||||
</overwrite>
|
||||
</constraints>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- a/Cargo.toml
|
||||
+++ b/Cargo.toml
|
||||
@@ -146,7 +146,6 @@ winapi = "=0.3.9"
|
||||
--- deno-2.0.0/Cargo.toml.orig 2024-10-11 10:48:05.784147338 +0200
|
||||
+++ deno-2.0.0/Cargo.toml 2024-10-11 10:48:41.196337140 +0200
|
||||
@@ -231,7 +231,6 @@ winres = "=0.1.12"
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
incremental = true
|
||||
@ -8,11 +8,11 @@
|
||||
opt-level = 'z' # Optimize for size
|
||||
|
||||
# Build release with debug symbols: cargo build --profile=release-with-debug
|
||||
@@ -158,7 +157,6 @@ debug = true
|
||||
[profile.bench]
|
||||
codegen-units = 1
|
||||
incremental = true
|
||||
-lto = true
|
||||
opt-level = 'z' # Optimize for size
|
||||
@@ -243,7 +242,6 @@ debug = true
|
||||
[profile.release-lite]
|
||||
inherits = "release"
|
||||
codegen-units = 128
|
||||
-lto = "thin"
|
||||
|
||||
# Key generation is too slow on `debug`
|
||||
[profile.dev.package.num-bigint-dig]
|
||||
|
24
deno.changes
24
deno.changes
@ -1,3 +1,27 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 12 04:07:25 UTC 2024 - Soc Virnyl Estela <obs@uncomfyhalomacro.pl>
|
||||
|
||||
- Disable LTO. This seems to cause clang to recognize formats incorrectly,
|
||||
thus, not recognizing the symbols. This also results disabling LTO
|
||||
builds in rustc altogether removing the specified architecture
|
||||
requirement for patch ./deno-disable-lto.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 15:38:38 UTC 2024 - Soc Virnyl Estela <obs@uncomfyhalomacro.pl>
|
||||
|
||||
- Add CFLAGS and CXXFLAGS
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 15:37:06 UTC 2024 - Soc Virnyl Estela <obs@uncomfyhalomacro.pl>
|
||||
|
||||
- Refresh _constraints file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 11 08:49:46 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||
|
||||
- Refresh patch:
|
||||
* deno-disable-lto.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 9 09:46:54 UTC 2024 - Soc Virnyl Estela <obs@uncomfyhalomacro.pl>
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
#
|
||||
|
||||
|
||||
%global _lto_cflags %nil
|
||||
Name: deno
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
@ -36,11 +37,11 @@ BuildRequires: cargo >= 1.80
|
||||
BuildRequires: gn
|
||||
BuildRequires: lld
|
||||
BuildRequires: llvm
|
||||
BuildRequires: llvm-gold
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-base
|
||||
BuildRequires: rusty_v8
|
||||
BuildRequires: sccache
|
||||
BuildRequires: zstd
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gmodule-2.0)
|
||||
@ -50,9 +51,7 @@ BuildRequires: pkgconfig(protobuf)
|
||||
# deno does not build on 32-bit archs
|
||||
ExclusiveArch: x86_64 aarch64 ppc64 ppc64le s390x
|
||||
# PATCH-FIX-OPENSUSE - Disable LTO (to reduce req memory)
|
||||
%ifarch %{arm} aarch64
|
||||
Patch10: deno-disable-lto.patch
|
||||
%endif
|
||||
|
||||
%package fish-completion
|
||||
Summary: Fish Completion for %{name}
|
||||
@ -113,6 +112,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 GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true enable_nacl = false blink_symbol_level = 0 v8_symbol_level = 0"
|
||||
%{cargo_build}
|
||||
|
Loading…
x
Reference in New Issue
Block a user