forked from pool/nodejs-electron
- New upstream release 37.5.0 * Updated Chromium to 138.0.7204.251 * Updated Node.js to v22.19.0 - 15.6: revert upstream changes to build with old cares (node-cares-1.21-5.patch) - add system-ffmpeg.patch to fix build error - remove useless single executable builder to fix build error (remove-node-sea.patch) OBS-URL: https://build.opensuse.org/request/show/1304190 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=223
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
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-09-10 22:20:53.329753565 +0200
|
|
+++ src/third_party/electron_node/src/node_sea.cc 2025-09-11 12:06:23.007498591 +0200
|
|
@@ -289,6 +289,7 @@ struct SeaConfig {
|
|
std::unordered_map<std::string, std::string> assets;
|
|
};
|
|
|
|
+#if 0
|
|
std::optional<SeaConfig> ParseSingleExecutableConfig(
|
|
const std::string& config_path) {
|
|
std::string config;
|
|
@@ -432,6 +433,7 @@ std::optional<SeaConfig> ParseSingleExec
|
|
|
|
return result;
|
|
}
|
|
+#endif
|
|
|
|
ExitCode GenerateSnapshotForSEA(const SeaConfig& config,
|
|
const std::vector<std::string>& args,
|
|
@@ -627,6 +629,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) {
|
|
@@ -640,6 +643,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") {
|