- Update specfile and sources
* remove compiler-rt-adjust-paths.patch * remove rusty_v8-0.106.0.tar.zst * revert back to old build logic we have before in deno.spec * revert back _service to old service file OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=258
This commit is contained in:
parent
e0433ce5cd
commit
5f62db4dbb
17
_service
17
_service
@ -14,17 +14,6 @@
|
|||||||
<param name="changesgenerate">enable</param>
|
<param name="changesgenerate">enable</param>
|
||||||
</service>
|
</service>
|
||||||
<service mode="manual" name="set_version"/>
|
<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">
|
<service name="cargo_vendor" mode="manual">
|
||||||
<param name="update">true</param>
|
<param name="update">true</param>
|
||||||
<param name="respect-lockfile">false</param>
|
<param name="respect-lockfile">false</param>
|
||||||
@ -37,11 +26,5 @@
|
|||||||
<param name="preserve-root">true</param>
|
<param name="preserve-root">true</param>
|
||||||
<param name="reproducible">true</param>
|
<param name="reproducible">true</param>
|
||||||
</service>
|
</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>
|
</services>
|
||||||
|
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
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" ]
|
|
||||||
|
|
10
deno.changes
10
deno.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 12 02:45:19 UTC 2024 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||||
|
|
||||||
|
- Update specfile and sources
|
||||||
|
* remove compiler-rt-adjust-paths.patch
|
||||||
|
* remove rusty_v8-0.106.0.tar.zst
|
||||||
|
* revert back to old build logic we have before in deno.spec
|
||||||
|
* revert back _service to old service file
|
||||||
|
- Use gcc for non-tumbleweed images. This will not work all the time.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 11 12:03:43 UTC 2024 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
Mon Nov 11 12:03:43 UTC 2024 - Soc Virnyl Estela <uncomfyhalomacro@opensuse.org>
|
||||||
|
|
||||||
|
37
deno.spec
37
deno.spec
@ -29,12 +29,17 @@ Group: Productivity/Other
|
|||||||
URL: https://github.com/denoland/deno
|
URL: https://github.com/denoland/deno
|
||||||
Source0: %{name}-%{version}.tar.zst
|
Source0: %{name}-%{version}.tar.zst
|
||||||
Source1: registry.tar.zst
|
Source1: registry.tar.zst
|
||||||
Source2: rusty_v8-%{_v8_version}.tar.zst
|
Patch1: deno-v8-arm.patch
|
||||||
Patch1: compiler-rt-adjust-paths.patch
|
Patch2: zeromq-update.patch
|
||||||
Patch2: deno-v8-arm.patch
|
|
||||||
Patch3: zeromq-update.patch
|
|
||||||
BuildRequires: cargo-packaging
|
BuildRequires: cargo-packaging
|
||||||
BuildRequires: clang
|
|
||||||
|
%if 0%{?suse_version} > 1600
|
||||||
|
BuildRequires: clang19
|
||||||
|
%else
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
%endif
|
||||||
|
|
||||||
# needed by `libz-ng-sys` after 1.36.1
|
# needed by `libz-ng-sys` after 1.36.1
|
||||||
# see: https://build.opensuse.org/package/show/devel:languages:javascript/deno#comment-1808174
|
# see: https://build.opensuse.org/package/show/devel:languages:javascript/deno#comment-1808174
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -46,6 +51,7 @@ BuildRequires: llvm-gold
|
|||||||
BuildRequires: ninja
|
BuildRequires: ninja
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
|
BuildRequires: rusty_v8
|
||||||
BuildRequires: zstd
|
BuildRequires: zstd
|
||||||
BuildRequires: pkgconfig(glib-2.0)
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
BuildRequires: pkgconfig(gmodule-2.0)
|
BuildRequires: pkgconfig(gmodule-2.0)
|
||||||
@ -100,20 +106,11 @@ Remote code is fetched and cached on first execution, and only
|
|||||||
updated with the --reload flag.
|
updated with the --reload flag.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -a2 -p1 -n %{name}
|
%autosetup -a1 -p1 -n %{name}
|
||||||
|
|
||||||
# Extract vendor source
|
unlink rusty_v8 || true
|
||||||
tar xf %{SOURCE1}
|
ln -sf %{_libdir}/crates/rusty_v8/ $PWD/rusty_v8
|
||||||
# Now we patch V8 or %%{SOURCE2}
|
|
||||||
echo -e "\n[patch.crates-io]\nv8 = { path = './rusty_v8' }" >> Cargo.toml
|
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
|
%build
|
||||||
export CARGO_HOME="$PWD/.cargo"
|
export CARGO_HOME="$PWD/.cargo"
|
||||||
@ -121,10 +118,16 @@ export CARGO_HOME="$PWD/.cargo"
|
|||||||
export CLANG_VERSION=$(clang --version | grep -m1 version | sed 's/.* \([0-9]\+\).*/\1/')
|
export CLANG_VERSION=$(clang --version | grep -m1 version | sed 's/.* \([0-9]\+\).*/\1/')
|
||||||
export V8_FROM_SOURCE=1
|
export V8_FROM_SOURCE=1
|
||||||
export CLANG_BASE_PATH=%{_prefix}
|
export CLANG_BASE_PATH=%{_prefix}
|
||||||
|
%if 0%{?suse_version} > 1600
|
||||||
export CC=clang
|
export CC=clang
|
||||||
export CXX=clang++
|
export CXX=clang++
|
||||||
export CFLAGS="%{optflags} -Wno-unknown-warning-option"
|
export CFLAGS="%{optflags} -Wno-unknown-warning-option"
|
||||||
export CXXFLAGS="%{optflags} -Wno-unknown-warning-option"
|
export CXXFLAGS="%{optflags} -Wno-unknown-warning-option"
|
||||||
|
%else
|
||||||
|
export CFLAGS="%{optflags}"
|
||||||
|
export CXXFLAGS="%{optflags}"
|
||||||
|
%endif
|
||||||
|
|
||||||
# https://www.chromium.org/developers/gn-build-configuration
|
# 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 GN_ARGS="clang_version=${CLANG_VERSION} use_lld=true enable_nacl = false blink_symbol_level = 0 v8_symbol_level = 0"
|
||||||
%{cargo_build}
|
%{cargo_build}
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:4bbdc154daf89cabfa796298714f20bf5df5ad8c238e774be0cd7f2979c2c79b
|
|
||||||
size 62136047
|
|
Loading…
x
Reference in New Issue
Block a user