Cleanup
- Remove command to remove config.toml in specfile OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=256
This commit is contained in:
commit
e0433ce5cd
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
21
_constraints
Normal file
21
_constraints
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<constraints>
|
||||||
|
<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>
|
||||||
|
|
47
_service
Normal file
47
_service
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<!--
|
||||||
|
# vim: set syntax=xml
|
||||||
|
-->
|
||||||
|
|
||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/denoland/deno</param>
|
||||||
|
<!-- param name="versionformat">@PARENT_TAG@+git@TAG_OFFSET@</param -->
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="revision">v2.0.6</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
|
<param name="changesgenerate">enable</param>
|
||||||
|
</service>
|
||||||
|
<service mode="manual" name="set_version"/>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="url">https://github.com/denoland/rusty_v8</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">v0.106.0</param>
|
||||||
|
<param name="version">0.106.0</param>
|
||||||
|
<param name="exclude">.git</param>
|
||||||
|
<param name="exclude">.github</param>
|
||||||
|
<param name="exclude">.gitignore</param>
|
||||||
|
<param name="exclude">.prettierrc.json</param>
|
||||||
|
<param name="exclude">.rustfmt.toml</param>
|
||||||
|
</service>
|
||||||
|
<service name="cargo_vendor" mode="manual">
|
||||||
|
<param name="update">true</param>
|
||||||
|
<param name="respect-lockfile">false</param>
|
||||||
|
<param name="method">registry</param>
|
||||||
|
<param name="src">deno</param>
|
||||||
|
</service>
|
||||||
|
<service name="roast" mode="manual">
|
||||||
|
<param name="target">deno</param>
|
||||||
|
<param name="outfile">deno-2.0.6.tar.zst</param>
|
||||||
|
<param name="preserve-root">true</param>
|
||||||
|
<param name="reproducible">true</param>
|
||||||
|
</service>
|
||||||
|
<service name="roast" mode="manual">
|
||||||
|
<param name="target">rusty_v8</param>
|
||||||
|
<param name="outfile">rusty_v8-0.106.0.tar.zst</param>
|
||||||
|
<param name="preserve-root">true</param>
|
||||||
|
<param name="reproducible">true</param>
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
|
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<servicedata>
|
||||||
|
<service name="tar_scm">
|
||||||
|
<param name="url">https://github.com/denoland/deno</param>
|
||||||
|
<param name="changesrevision">8f59d18202e94e5c54ad7e5a79ec1383159e4a20</param></service></servicedata>
|
33
compiler-rt-adjust-paths.patch
Normal file
33
compiler-rt-adjust-paths.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
diff --git a/build/config/clang/BUILD.gn b/build/config/clang/BUILD.gn
|
||||||
|
index fcca59b0f..fdf14f306 100644
|
||||||
|
--- a/rusty_v8/build/config/clang/BUILD.gn
|
||||||
|
+++ b/rusty_v8/build/config/clang/BUILD.gn
|
||||||
|
@@ -192,12 +192,15 @@ template("clang_lib") {
|
||||||
|
} else if (is_linux || is_chromeos) {
|
||||||
|
if (current_cpu == "x64") {
|
||||||
|
_dir = "x86_64-unknown-linux-gnu"
|
||||||
|
+ _suffix = "-x86_64"
|
||||||
|
} else if (current_cpu == "x86") {
|
||||||
|
_dir = "i386-unknown-linux-gnu"
|
||||||
|
+ _suffix = "-i386"
|
||||||
|
} else if (current_cpu == "arm") {
|
||||||
|
_dir = "armv7-unknown-linux-gnueabihf"
|
||||||
|
} else if (current_cpu == "arm64") {
|
||||||
|
_dir = "aarch64-unknown-linux-gnu"
|
||||||
|
+ _suffix = "-aarch64"
|
||||||
|
} else {
|
||||||
|
assert(false) # Unhandled cpu type
|
||||||
|
}
|
||||||
|
@@ -228,6 +231,11 @@ template("clang_lib") {
|
||||||
|
assert(false) # Unhandled target platform
|
||||||
|
}
|
||||||
|
|
||||||
|
+ # Bit of a hack to make this find builtins from compiler-rt >= 16
|
||||||
|
+ if (is_linux || is_chromeos) {
|
||||||
|
+ _dir = "linux"
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
_clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib"
|
||||||
|
_lib_file = "${_prefix}clang_rt.${_libname}${_suffix}.${_ext}"
|
||||||
|
libs = [ "$_clang_lib_dir/$_dir/$_lib_file" ]
|
||||||
|
|
3
deno-1.44.4.tar.xz
Normal file
3
deno-1.44.4.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6ab2aacd0fe42b4ff6d177a75638c620df963109492613896c0895932e8941ec
|
||||||
|
size 102007712
|
3
deno-1.45.0.tar.xz
Normal file
3
deno-1.45.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ceaff4e42f323923ae76cf1c6336394d564e112fefa99415e75233776acd0231
|
||||||
|
size 105075132
|
3
deno-2.0.3.tar.zst
Normal file
3
deno-2.0.3.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:393aaa6aa470610e43c62b339fdd18e331bfb4c2d55d19dd4319a84442153fc5
|
||||||
|
size 98937744
|
3
deno-2.0.4.tar.zst
Normal file
3
deno-2.0.4.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:cf2c468363b19df96af9813f4328cdd407c09ee7b2f2ebc9d3c5a07e7309dd2a
|
||||||
|
size 333996917
|
3
deno-2.0.6.tar.zst
Normal file
3
deno-2.0.6.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:53e51c081706056cf849454d618c6593e3306e77cc578cf6818194510be19d65
|
||||||
|
size 99521336
|
18
deno-disable-lto.patch
Normal file
18
deno-disable-lto.patch
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--- 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
|
||||||
|
-lto = true
|
||||||
|
opt-level = 'z' # Optimize for size
|
||||||
|
|
||||||
|
# Build release with debug symbols: cargo build --profile=release-with-debug
|
||||||
|
@@ -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]
|
23
deno-v8-arm.patch
Normal file
23
deno-v8-arm.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
--- a/rusty_v8/build.rs.orig 2024-06-27 14:26:40.281226961 +0200
|
||||||
|
+++ b/rusty_v8/build.rs 2024-06-27 14:28:10.388618455 +0200
|
||||||
|
@@ -200,16 +200,12 @@ fn build_v8(is_asan: bool) {
|
||||||
|
// cross-compilation setup
|
||||||
|
if target_arch == "aarch64" {
|
||||||
|
gn_args.push(r#"target_cpu="arm64""#.to_string());
|
||||||
|
- gn_args.push("use_sysroot=true".to_string());
|
||||||
|
- maybe_install_sysroot("arm64");
|
||||||
|
- maybe_install_sysroot("amd64");
|
||||||
|
+ gn_args.push("use_sysroot=false".to_string());
|
||||||
|
}
|
||||||
|
if target_arch == "arm" {
|
||||||
|
gn_args.push(r#"target_cpu="arm""#.to_string());
|
||||||
|
gn_args.push(r#"v8_target_cpu="arm""#.to_string());
|
||||||
|
- gn_args.push("use_sysroot=true".to_string());
|
||||||
|
- maybe_install_sysroot("i386");
|
||||||
|
- maybe_install_sysroot("arm");
|
||||||
|
+ gn_args.push("use_sysroot=false".to_string());
|
||||||
|
}
|
||||||
|
|
||||||
|
let target_triple = env::var("TARGET").unwrap();
|
||||||
|
|
||||||
|
|
4912
deno.changes
Normal file
4912
deno.changes
Normal file
File diff suppressed because it is too large
Load Diff
4
deno.obsinfo
Normal file
4
deno.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: deno
|
||||||
|
version: 2.0.6
|
||||||
|
mtime: 1731213491
|
||||||
|
commit: 8f59d18202e94e5c54ad7e5a79ec1383159e4a20
|
170
deno.spec
Normal file
170
deno.spec
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
#
|
||||||
|
# spec file for package deno
|
||||||
|
#
|
||||||
|
# Copyright (c) 2024 SUSE LLC
|
||||||
|
# Copyright (c) 2020-2024 Avindra Goolcharan <avindra@opensuse.org>
|
||||||
|
# Copyright (c) 2018-2024 the Deno authors
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global _lto_cflags %nil
|
||||||
|
%global _v8_version 0.106.0
|
||||||
|
Name: deno
|
||||||
|
Version: 2.0.6
|
||||||
|
Release: 0
|
||||||
|
Summary: A secure JavaScript and TypeScript runtime
|
||||||
|
License: MIT
|
||||||
|
Group: Productivity/Other
|
||||||
|
URL: https://github.com/denoland/deno
|
||||||
|
Source0: %{name}-%{version}.tar.zst
|
||||||
|
Source1: registry.tar.zst
|
||||||
|
Source2: rusty_v8-%{_v8_version}.tar.zst
|
||||||
|
Patch1: compiler-rt-adjust-paths.patch
|
||||||
|
Patch2: deno-v8-arm.patch
|
||||||
|
Patch3: zeromq-update.patch
|
||||||
|
BuildRequires: cargo-packaging
|
||||||
|
BuildRequires: clang
|
||||||
|
# needed by `libz-ng-sys` after 1.36.1
|
||||||
|
# see: https://build.opensuse.org/package/show/devel:languages:javascript/deno#comment-1808174
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: cargo >= 1.80
|
||||||
|
BuildRequires: gn
|
||||||
|
BuildRequires: lld
|
||||||
|
BuildRequires: llvm
|
||||||
|
BuildRequires: llvm-gold
|
||||||
|
BuildRequires: ninja
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: python3-base
|
||||||
|
BuildRequires: zstd
|
||||||
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
|
BuildRequires: pkgconfig(gmodule-2.0)
|
||||||
|
BuildRequires: pkgconfig(gobject-2.0)
|
||||||
|
BuildRequires: pkgconfig(gthread-2.0)
|
||||||
|
BuildRequires: pkgconfig(protobuf)
|
||||||
|
ExclusiveArch: %{rust_tier1_arches}
|
||||||
|
# PATCH-FIX-OPENSUSE - Disable LTO (to reduce req memory)
|
||||||
|
Patch10: deno-disable-lto.patch
|
||||||
|
|
||||||
|
%package fish-completion
|
||||||
|
Summary: Fish Completion for %{name}
|
||||||
|
Group: System/Shells
|
||||||
|
Supplements: (%{name} and fish)
|
||||||
|
Requires: %{name}
|
||||||
|
Requires: fish
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description fish-completion
|
||||||
|
Fish command-line completion support for %{name}.
|
||||||
|
|
||||||
|
%package zsh-completion
|
||||||
|
Summary: Zsh Completion for %{name}
|
||||||
|
Group: System/Shells
|
||||||
|
Supplements: (%{name} and zsh)
|
||||||
|
Requires: %{name}
|
||||||
|
Requires: zsh
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description zsh-completion
|
||||||
|
Zsh command-line completion support for %{name}.
|
||||||
|
|
||||||
|
%package bash-completion
|
||||||
|
Summary: Bash Completion for %{name}
|
||||||
|
Group: System/Shells
|
||||||
|
Supplements: (%{name} and bash-completion)
|
||||||
|
Requires: %{name}
|
||||||
|
Requires: bash-completion
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description bash-completion
|
||||||
|
Bash command-line completion support for %{name}.
|
||||||
|
|
||||||
|
%description
|
||||||
|
A JavaScript and TypeScript platform built on V8
|
||||||
|
|
||||||
|
Deno has standard library and has features such as
|
||||||
|
a linter, a language server protocol, a code formatter and
|
||||||
|
a unit test runner.
|
||||||
|
|
||||||
|
Remote code is fetched and cached on first execution, and only
|
||||||
|
updated with the --reload flag.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -a2 -p1 -n %{name}
|
||||||
|
|
||||||
|
# Extract vendor source
|
||||||
|
tar xf %{SOURCE1}
|
||||||
|
# Now we patch V8 or %%{SOURCE2}
|
||||||
|
echo -e "\n[patch.crates-io]\nv8 = { path = './rusty_v8' }" >> Cargo.toml
|
||||||
|
pushd rusty_v8
|
||||||
|
# Keeping this ifarch in case someone tries to build 32 bit
|
||||||
|
# which is not our problem
|
||||||
|
%ifarch x86_64 || x86_64_v3 || aarch64
|
||||||
|
# lib to lib64
|
||||||
|
sed -i 's|lib/clang|lib64/clang|g' build/config/clang/BUILD.gn
|
||||||
|
%endif
|
||||||
|
popd
|
||||||
|
|
||||||
|
%build
|
||||||
|
export CARGO_HOME="$PWD/.cargo"
|
||||||
|
# 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 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}
|
||||||
|
|
||||||
|
%install
|
||||||
|
# place deno cli manually (cannot cargo install)
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
export PATH="%{buildroot}%{_bindir}:${PATH}"
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
|
||||||
|
|
||||||
|
cp target/release/deno %{buildroot}%{_bindir}
|
||||||
|
|
||||||
|
deno completions bash > %{buildroot}%{_datadir}/bash-completion/completions/%{name}
|
||||||
|
deno completions fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||||
|
deno completions zsh > %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
|
||||||
|
|
||||||
|
%check
|
||||||
|
export PATH="${PATH}:%{buildroot}%{_bindir}"
|
||||||
|
deno run tests/testdata/run/002_hello.ts
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%files bash-completion
|
||||||
|
%dir %{_datadir}/bash-completion
|
||||||
|
%dir %{_datadir}/bash-completion/completions
|
||||||
|
%{_datadir}/bash-completion/completions/%{name}
|
||||||
|
|
||||||
|
%files fish-completion
|
||||||
|
%dir %{_datadir}/fish
|
||||||
|
%dir %{_datadir}/fish/vendor_completions.d
|
||||||
|
%{_datadir}/fish/vendor_completions.d/%{name}.fish
|
||||||
|
|
||||||
|
%files zsh-completion
|
||||||
|
%dir %{_datadir}/zsh
|
||||||
|
%dir %{_datadir}/zsh/site-functions
|
||||||
|
%{_datadir}/zsh/site-functions/_%{name}
|
||||||
|
|
||||||
|
%changelog
|
3
registry.tar.zst
Normal file
3
registry.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:24a39a7e03dc6c7049371bb6b9a6fec546e2d506c69828300fb90df0859151d6
|
||||||
|
size 145061553
|
3
rusty_v8-0.106.0.tar.zst
Normal file
3
rusty_v8-0.106.0.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4bbdc154daf89cabfa796298714f20bf5df5ad8c238e774be0cd7f2979c2c79b
|
||||||
|
size 62136047
|
12
zeromq-update.patch
Normal file
12
zeromq-update.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- a/Cargo.toml.orig 2024-11-11 10:00:21.627172910 +0800
|
||||||
|
+++ b/Cargo.toml 2024-11-11 10:00:28.567190380 +0800
|
||||||
|
@@ -204,7 +204,7 @@
|
||||||
|
webpki-roots = "0.26"
|
||||||
|
which = "4.2.5"
|
||||||
|
yoke = { version = "0.7.4", features = ["derive"] }
|
||||||
|
-zeromq = { version = "=0.4.0", default-features = false, features = ["tcp-transport", "tokio-runtime"] }
|
||||||
|
+zeromq = { version = "=0.4.1", default-features = false, features = ["tcp-transport", "tokio-runtime"] }
|
||||||
|
zstd = "=0.12.4"
|
||||||
|
|
||||||
|
# crypto
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user