8
0

Accepting request 1156221 from home:dziobian:gulgul-ultron:19

- New upstream release 28.2.6
  * Fixed a crash that can result from some kinds of dynamic imports.
  * Fixed saving traces from devtools performance panel.

OBS-URL: https://build.opensuse.org/request/show/1156221
OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=130
This commit is contained in:
2024-03-08 05:38:22 +00:00
committed by Git OBS Bridge
parent 1ef9755d4e
commit 108b012e87
5 changed files with 175 additions and 10 deletions
+7
View File
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 8 05:33:05 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
- New upstream release 28.2.6
* Fixed a crash that can result from some kinds of dynamic imports.
* Fixed saving traces from devtools performance panel.
-------------------------------------------------------------------
Thu Feb 29 20:47:40 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
+3 -7
View File
@@ -221,7 +221,7 @@ BuildArch: i686
Name: nodejs-electron
Version: 28.2.5
Version: 28.2.6
Release: 0
Summary: Build cross platform desktop apps with JavaScript, HTML, and CSS
License: AFL-2.0 AND Apache-2.0 AND blessing AND BSD-2-Clause AND BSD-3-Clause AND BSD-Protection AND BSD-Source-Code AND bzip2-1.0.6 AND IJG AND ISC AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT AND MIT-CMU AND MIT-open-group AND (MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later) AND MPL-2.0 AND OpenSSL AND SGI-B-2.0 AND SUSE-Public-Domain AND X11%{AndZlib}
@@ -275,6 +275,7 @@ Patch78: rdynamic.patch
Patch79: v8-hide-private-symbols.patch
Patch80: icon.patch
Patch81: disable-tests.patch
Patch82: node-compiler.patch
# PATCHES to use system libs
Patch1000: do-not-build-libvulkan.so.patch
@@ -927,12 +928,7 @@ unset MALLOC_PERTURB_
%if %{with lto} && %{without clang}
%ifarch aarch64
# reduce the threads for linking even more due to LTO eating ton of memory
# [This is not used currently — these settings still get us OOM on 20GB memory]
_link_threads=$(((%{jobs} - 6)))
test "$_link_threads" -le 0 && _link_threads=1
export LDFLAGS="$LDFLAGS -flto=$_link_threads --param ggc-min-expand=20 --param ggc-min-heapsize=32768 --param lto-max-streaming-parallelism=1 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
export LDFLAGS="$LDFLAGS -flto=auto --param ggc-min-expand=20 --param ggc-min-heapsize=32768 --param lto-max-streaming-parallelism=1 -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%else
# x64 is fine with the the default settings (the machines have 30GB+ ram)
export LDFLAGS="$LDFLAGS -flto=auto"
-3
View File
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fa340b966d499d0ef07056053f005e92732b36bb52e7531f5887ebfc9b8622ef
size 556138118
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13d58289df85cc30352b6e8c59c82432bdc3af4402b476231b9c1c4d5b6450d6
size 556770894
+162
View File
@@ -0,0 +1,162 @@
Disable various compiler configs (currently warning suppression). Like chromium-102-compiler.patch but for node
--- src/third_party/electron_node/BUILD.gn.old
+++ src/third_party/electron_node/BUILD.gn
@@ -124,7 +124,6 @@ config("node_lib_config") {
# FIXME(deepak1556): include paths should be corrected,
# refer https://docs.google.com/presentation/d/1oxNHaVjA9Gn_rTzX6HIpJHP7nXRua_0URXxxJ3oYRq0/edit#slide=id.g71ecd450e_2_702
- cflags = [ "-Wno-microsoft-include" ]
configs = [ ":node_features" ]
@@ -250,18 +249,6 @@ component("node_lib") {
deps += [ "deps/histogram" ]
}
frameworks = []
- cflags_cc = [
- "-Wno-deprecated-declarations",
- "-Wno-implicit-fallthrough",
- "-Wno-return-type",
- "-Wno-sometimes-uninitialized",
- "-Wno-string-plus-int",
- "-Wno-unused-function",
- "-Wno-unused-label",
- "-Wno-unused-private-field",
- "-Wno-unused-variable",
- "-Wno-shadow",
- ]
if (v8_enable_i18n_support) {
deps += [ "//third_party/icu" ]
@@ -353,6 +340,5 @@ component("node_lib") {
"src/node_crypto.cc",
"src/node_crypto.h",
]
- cflags_cc += [ "-Wno-sign-compare" ]
}
}
--- src/third_party/electron_node/deps/base64/BUILD.gn.orig
+++ src/third_party/electron_node/deps/base64/BUILD.gn
@@ -13,11 +13,6 @@ static_library("base64") {
public_configs = [ ":base64_config" ]
- cflags_c = [
- "-Wno-implicit-fallthrough",
- "-Wno-unused-but-set-variable",
- "-Wno-shadow",
- ]
sources = [
"base64/include/libbase64.h",
@@ -75,7 +70,6 @@ source_set("base64_ssse3") {
defines = [ "HAVE_SSSE3=1" ]
cflags = [ "-mssse3" ]
- cflags_c = [ "-Wno-implicit-fallthrough" ]
sources = [ "base64/lib/arch/ssse3/ssse3_codec.c" ]
}
@@ -86,7 +80,6 @@ source_set("base64_sse41") {
defines = [ "HAVE_SSE41=1" ]
cflags = [ "-msse4.1" ]
- cflags_c = [ "-Wno-implicit-fallthrough" ]
sources = [ "base64/lib/arch/sse41/sse41_codec.c" ]
}
@@ -100,7 +93,6 @@ source_set("base64_sse42") {
]
cflags = [ "-msse4.2" ]
- cflags_c = [ "-Wno-implicit-fallthrough" ]
sources = [ "base64/lib/arch/sse42/sse42_codec.c" ]
}
@@ -111,7 +103,6 @@ source_set("base64_avx") {
defines = [ "HAVE_AVX=1" ]
cflags = [ "-mavx" ]
- cflags_c = [ "-Wno-implicit-fallthrough" ]
sources = [ "base64/lib/arch/avx/avx_codec.c" ]
}
@@ -122,10 +113,6 @@ source_set("base64_avx2") {
defines = [ "HAVE_AVX2=1" ]
cflags = [ "-mavx2" ]
- cflags_c = [
- "-Wno-implicit-fallthrough",
- "-Wno-implicit-function-declaration",
- ]
sources = [ "base64/lib/arch/avx2/avx2_codec.c" ]
}
@@ -136,7 +123,6 @@ source_set("base64_neon32") {
defines = [ "HAVE_NEON32=1" ]
cflags = [ "-mfpu=neon" ]
- cflags_c = [ "-Wno-implicit-fallthrough" ]
sources = [ "base64/lib/arch/neon32/neon32_codec.c" ]
}
@@ -146,7 +132,6 @@ source_set("base64_neon64") {
defines = [ "HAVE_NEON64=1" ]
- cflags_c = [ "-Wno-implicit-fallthrough" ]
sources = [ "base64/lib/arch/neon64/neon64_codec.c" ]
}
--- src/third_party/electron_node/deps/histogram/BUILD.gn.old
+++ src/third_party/electron_node/deps/histogram/BUILD.gn
@@ -1,12 +1,6 @@
config("histogram_config") {
include_dirs = [ "include" ]
- cflags = [
- "-Wno-implicit-function-declaration",
- "-Wno-incompatible-pointer-types",
- "-Wno-unused-function",
- "-Wno-atomic-alignment",
- ]
}
static_library("histogram") {
--- src/third_party/electron_node/deps/llhttp/BUILD.gn.old
+++ src/third_party/electron_node/deps/llhttp/BUILD.gn
@@ -1,6 +1,5 @@
config("llhttp_config") {
include_dirs = [ "include" ]
- cflags = [ "-Wno-unreachable-code" ]
}
static_library("llhttp") {
--- src/third_party/electron_node/deps/uv/BUILD.gn.old
+++ src/third_party/electron_node/deps/uv/BUILD.gn
@@ -32,24 +32,6 @@ static_library("uv") {
# This only has an effect on Windows, where it will cause libuv's symbols to be exported in node.lib
defines += [ "BUILDING_UV_SHARED=1" ]
- cflags_c = [
- "-Wno-incompatible-pointer-types",
- "-Wno-bitwise-op-parentheses",
- "-Wno-implicit-fallthrough",
- "-Wno-implicit-function-declaration",
- "-Wno-missing-braces",
- "-Wno-sign-compare",
- "-Wno-sometimes-uninitialized",
- "-Wno-string-conversion",
- "-Wno-switch",
- "-Wno-unused-function",
- "-Wno-unused-result",
- "-Wno-unused-variable",
- "-Wno-unreachable-code",
- "-Wno-unreachable-code-return",
- "-Wno-unused-but-set-variable",
- "-Wno-shadow",
- ]
libs = []