File remove-node-sea.patch of Package nodejs-electron
Do not build single-executable builder, it is useless on distro electron and fails to compile
--- src/third_party/electron_node/src/node_sea.cc.orig 2025-10-15 11:27:25.079700709 +0200
+++ src/third_party/electron_node/src/node_sea.cc 2025-10-15 12:04:33.977861545 +0200
@@ -384,6 +384,7 @@ struct SeaConfig {
std::vector<std::string> exec_argv;
};
+#if 0
std::optional<SeaConfig> ParseSingleExecutableConfig(
const std::string& config_path) {
std::string config;
@@ -571,6 +572,7 @@ std::optional<SeaConfig> ParseSingleExec
return result;
}
+#endif
ExitCode GenerateSnapshotForSEA(const SeaConfig& config,
const std::vector<std::string>& args,
@@ -772,6 +774,7 @@ ExitCode GenerateSingleExecutableBlob(
} // anonymous namespace
+#if 0
ExitCode BuildSingleExecutableBlob(const std::string& config_path,
const std::vector<std::string>& args,
const std::vector<std::string>& exec_args) {
@@ -785,6 +788,7 @@ ExitCode BuildSingleExecutableBlob(const
return ExitCode::kGenericUserError;
}
+#endif
void GetAsset(const FunctionCallbackInfo<Value>& args) {
CHECK_EQ(args.Length(), 1);
--- src/third_party/electron_node/unofficial.gni.orig 2025-09-10 22:31:58.561822889 +0200
+++ src/third_party/electron_node/unofficial.gni 2025-09-11 12:03:47.577452435 +0200
@@ -48,6 +48,7 @@ template("node_gn_build") {
if (v8_enable_i18n_support) {
defines += [ "NODE_HAVE_I18N_SUPPORT=1" ]
}
+ defines += ["DISABLE_SINGLE_EXECUTABLE_APPLICATION=1"]
}
config("node_external_config") {