forked from pool/nodejs-electron
- Update to electron 29.3.1 * ABI break: NODE_MODULE_VERSION is now 121 * Chromium 122.0.6261.156 * Node 20.9.0 * V8 12.2 * The deprecated gpu-process-crashed event on app has been removed. * The deprecated renderer-process-crashed event on app and crashed event on WebContents and <webview> have been removed. * Added WebContentsView and BaseWindow, replacing the now-deprecated BrowserView APIs. * Added new webUtils.getPathForFile method to replace File.path augmentation. * see https://www.electronjs.org/blog/electron-29-0 and https://github.com/electron/electron/releases/tag/v29.0.0 for more * Security fixes for Angle (CVE-2024-3516) and Compositing (CVE-2024-3157) - Drop upstreamed patches * atspi.patch * chromium-117-blink-BUILD-mnemonic.patch * local_frame-local_frame_client-incomplete-WebBackgroundResourceFetchAssets.patch * node-upgrade-llhttp-to-8.patch * policy_templates-deterministic.patch * v8-hide-private-symbols.patch * web_local_frame_client-incomplete-WebBackgroundResourceFetchAssets.patch - Add patches to fix build errors * aarch64-Xclang.patch * absl2023-encapsulated_web_transport-StrCat.patch * boringssl-internal-addc-cxx.patch * chromium-122-avoid-SFINAE-TypeConverter.patch * chromium-122-BookmarkNode-missing-operator.patch * distributed_point_functions-aes_128_fixed_key_hash-missing-StrCat.patch * distributed_point_functions-evaluate_prg_hwy-signature.patch * fake_ssl_socket_client-Wlto-type-mismatch.patch * grid_sizing_tree-Wchanges-meaning.patch * hit_test_request-missing-optional.patch * InternalAllocator-too-many-initializers.patch * mt21_util-flax-vector-conversions.patch * plus_address_types-missing-optional.patch * race_network_request_write_buffer_manager-missing-optional.patch * resolution_monitor-missing-bitset.patch * script_promise_resolver-explicit-specialization.patch * search_engine_choice_service-missing-optional.patch * system-yuv.patch - Replace abseil-remove-unused-targets.patch with chromium-122-abseil-shims.patch - Remove dead code from third_party/ * remove-dawn.patch * remove-openscreen.patch * remove-password-manager-and-policy.patch * remove-puffin.patch * remove-rust.patch * remove AFL-2.0, BSD-Protection and IJG from licence list, because the relevant libraries (xdg-mime, bsdiff and iccjpeg) are no longer shipped. - Leap, Fedora: use bundled re2 * drop replace-StringPiece-with-string_view.patch - Fedora 38: use bundled abseil * drop pending_task_safety_flag-abseil-2022-nullability.patch * drop thread_annotations-fix-build-with-system-abseil.patch - Leap 15.5: Reverse upstream changes to build with old wayland * wayland-proto-31-cursor-shape.patch - Leap 15.5/6: Reverse upstream changes to build with old ffmpeg * Cr122-ffmpeg-new-channel-layout.patch - aarch64: reduce debuginfo due to linker OOM OBS-URL: https://build.opensuse.org/request/show/1169276 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=141
163 lines
4.5 KiB
Diff
163 lines
4.5 KiB
Diff
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 2024-03-27 16:38:36.306226966 +0100
|
|
+++ src/third_party/electron_node/deps/base64/BUILD.gn 2024-03-27 20:24:12.219928228 +0100
|
|
@@ -21,11 +21,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",
|
|
@@ -44,7 +39,6 @@ source_set("base64_ssse3") {
|
|
defines = [ "HAVE_SSSE3=1" ]
|
|
|
|
cflags = [ "-mssse3" ]
|
|
- cflags_c = [ "-Wno-implicit-fallthrough" ]
|
|
}
|
|
|
|
sources = [ "base64/lib/arch/ssse3/codec.c" ]
|
|
@@ -57,7 +51,6 @@ source_set("base64_sse41") {
|
|
defines = [ "HAVE_SSE41=1" ]
|
|
|
|
cflags = [ "-msse4.1" ]
|
|
- cflags_c = [ "-Wno-implicit-fallthrough" ]
|
|
}
|
|
|
|
sources = [ "base64/lib/arch/sse41/codec.c" ]
|
|
@@ -74,7 +67,6 @@ source_set("base64_sse42") {
|
|
]
|
|
|
|
cflags = [ "-msse4.2" ]
|
|
- cflags_c = [ "-Wno-implicit-fallthrough" ]
|
|
}
|
|
|
|
sources = [ "base64/lib/arch/sse42/codec.c" ]
|
|
@@ -87,7 +79,6 @@ source_set("base64_avx") {
|
|
defines = [ "HAVE_AVX=1" ]
|
|
|
|
cflags = [ "-mavx" ]
|
|
- cflags_c = [ "-Wno-implicit-fallthrough" ]
|
|
}
|
|
|
|
sources = [ "base64/lib/arch/avx/codec.c" ]
|
|
@@ -100,10 +91,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/codec.c" ]
|
|
@@ -116,7 +103,6 @@ source_set("base64_neon32") {
|
|
defines = [ "HAVE_NEON32=1" ]
|
|
|
|
cflags = [ "-mfpu=neon" ]
|
|
- cflags_c = [ "-Wno-implicit-fallthrough" ]
|
|
}
|
|
|
|
sources = [ "base64/lib/arch/neon32/codec.c" ]
|
|
@@ -128,7 +114,6 @@ source_set("base64_neon64") {
|
|
if (target_cpu == "arm64") {
|
|
defines = [ "HAVE_NEON64=1" ]
|
|
|
|
- cflags_c = [ "-Wno-implicit-fallthrough" ]
|
|
}
|
|
|
|
sources = [ "base64/lib/arch/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 = []
|
|
|