Accepting request 1061824 from devel:languages:javascript

- update to 1.30.0:
  * many changes, see https://github.com/denoland/deno/compare/v1.26.2...v1.30.0
- Switch from deprecated rust-packaging to cargo-packaging
- Disable LTO to build with half of the RAM (fixes build on aarch64):
  * deno-disbale-lto.patch
- Update _constraints with current values
- remove Cargo.lock to bypass checksum errors in rusty_v8

OBS-URL: https://build.opensuse.org/request/show/1061824
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/deno?expand=0&rev=7
This commit is contained in:
Dominique Leuenberger 2023-01-29 13:11:14 +00:00 committed by Git OBS Bridge
commit 019da2597a
9 changed files with 63 additions and 42 deletions

View File

@ -6,33 +6,10 @@
<constraints>
<hardware>
<disk>
<size unit="G">4</size>
<size unit="G">18</size>
</disk>
<physicalmemory>
<size unit="G">11</size>
<size unit="G">12</size>
</physicalmemory>
<memoryperjob>
<size unit="G">1</size>
</memoryperjob>
</hardware>
<overwrite>
<conditions>
<arch>aarch64</arch>
</conditions>
<hardware>
<physicalmemory>
<size unit="G">15</size>
</physicalmemory>
</hardware>
</overwrite>
<overwrite>
<conditions>
<arch>x86_64</arch>
</conditions>
<hardware>
<disk>
<size unit="G">25</size>
</disk>
</hardware>
</overwrite>
</constraints>

View File

@ -13,8 +13,8 @@
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/denoland/deno</param>
<param name="revision">v1.26.2</param>
<param name="version">1.26.2</param>
<param name="revision">v1.30.0</param>
<param name="version">1.30.0</param>
<!-- remove large docs -->
<param name="exclude">docs</param>
@ -37,8 +37,8 @@
<service name="tar_scm" mode="manual">
<param name="scm">git</param>
<param name="url">https://github.com/denoland/rusty_v8</param>
<param name="revision">v0.53.1</param>
<param name="version">0.53.1</param>
<param name="revision">v0.60.1</param>
<param name="version">0.60.1</param>
<param name="exclude">.github</param>
<!--
@ -139,5 +139,8 @@
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">deno</param>
</service>
</services>

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e3ecead6b7a56b80181fe52c9012b8c6ced8cb0485747b30be4faab71d15e670
size 8932020

3
deno-1.30.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b6d7702172168fbc07b1f68e3918cc271f1c8a552ec6f203f169dda7c38f34d
size 9091520

17
deno-disbale-lto.patch Normal file
View File

@ -0,0 +1,17 @@
--- deno-1.26.2/Cargo.toml.orig 2023-01-26 10:13:11.259679321 +0100
+++ deno-1.26.2/Cargo.toml 2023-01-26 10:13:28.467861544 +0100
@@ -37,14 +37,12 @@ exclude = ["test_util/std/hash/_wasm"]
[profile.release]
codegen-units = 1
incremental = true
-lto = true
opt-level = 'z' # Optimize for size
# NB: the `bench` and `release` profiles must remain EXACTLY the same.
[profile.bench]
codegen-units = 1
incremental = true
-lto = true
opt-level = 'z' # Optimize for size
# Key generation is too slow on `debug`

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Jan 28 23:33:53 UTC 2023 - Avindra Goolcharan <avindra@opensuse.org>
- update to 1.30.0:
* many changes, see https://github.com/denoland/deno/compare/v1.26.2...v1.30.0
-------------------------------------------------------------------
Thu Jan 26 10:52:37 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Switch from deprecated rust-packaging to cargo-packaging
- Disable LTO to build with half of the RAM (fixes build on aarch64):
* deno-disbale-lto.patch
- Update _constraints with current values
- remove Cargo.lock to bypass checksum errors in rusty_v8
-------------------------------------------------------------------
Mon Oct 17 20:29:27 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>

View File

@ -1,9 +1,9 @@
#
# spec file for package deno
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2020-2022 Avindra Goolcharan <avindra@opensuse.org>
# Copyright (c) 2018-2022 the Deno authors
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2020-2023 Avindra Goolcharan <avindra@opensuse.org>
# Copyright (c) 2018-2023 the Deno authors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -19,7 +19,7 @@
Name: deno
Version: 1.26.2
Version: 1.30.0
Release: 0
Summary: A secure JavaScript and TypeScript runtime
License: MIT
@ -27,9 +27,13 @@ Group: Productivity/Other
URL: https://github.com/denoland/deno
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
Source99: revendor_source.sh
# PATCH-FIX-OPENSUSE - Disable LTO
Patch1: deno-disbale-lto.patch
# gcc-c++ needed to build SPIRV-Cross
BuildRequires: clang
BuildRequires: cargo-packaging
BuildRequires: gcc-c++
BuildRequires: gn
BuildRequires: lld
@ -37,8 +41,7 @@ BuildRequires: llvm
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python3-base
BuildRequires: rust >= 1.53.0
BuildRequires: rust-packaging
BuildRequires: rust >= 1.62.1
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gobject-2.0)
@ -58,8 +61,9 @@ updated with the --reload flag.
%prep
%autosetup -a1 -p1
%define cargo_registry $(pwd)/vendor
%{cargo_prep}
cp %{SOURCE2} .cargo/config
# Drop lock file due to revendor_source.sh breaking check
rm Cargo.lock
%build
# workaround to use python3

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:34009236109be902f5ac378937f9e561dd833229a537db6d1aafd4abbea472a5
size 68423588
oid sha256:7e9d988cf2965a740812b71524a3bdecd6f8d119a4707a747ee4b1d84a912583
size 69875340