electron/patches/node
Keeley Hammond 6c17dd2296
fix: ensure native modules use the correct config (#35159)
* fix: ensure native modules are built with config.gypi

This works by patching node.h to check that two defines are set using the equivilant of an XNOR operation.  One define "ELECTRON_ENSURE_CONFIG_GYPI" is set via common.gypi which is _already_ used to build native modules and has been since the dawn of time.  Therefore this define will be set for all native module compilations targetting the Electron runtime.  The second define "USING_ELECTRON_CONFIG_GYPI" is only defined when the gypi argument "using_electron_config_gypi" is set to 1 which is only done so via config.gypi.  Only new enough versions of node-gyp correctly use the config.gypi file thus resulting in a compilation error on version of node-gyp that are too old.

* chore: fix lint

Co-authored-by: Samuel Attard <sattard@salesforce.com>
2022-08-01 07:52:26 -07:00
..
.patches fix: ensure native modules use the correct config (#35159) 2022-08-01 07:52:26 -07:00
be_compatible_with_cppgc.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
build_add_gn_build_files.patch chore: bump node to v16.16.0 (main) (#34853) 2022-07-25 17:06:52 -04:00
build_ensure_native_module_compilation_fails_if_not_using_a_new.patch fix: ensure native modules use the correct config (#35159) 2022-08-01 07:52:26 -07:00
build_ensure_v8_pointer_compression_sandbox_is_enabled_on_64bit.patch chore: bump node to v16.16.0 (main) (#34853) 2022-07-25 17:06:52 -04:00
build_modify_js2c_py_to_allow_injection_of_original-fs_and_custom_embedder_js.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
chore_add_context_to_context_aware_module_prevention.patch chore: update chore_add_context_to_context_aware_module_prevention.patch (#31579) 2021-10-26 15:50:29 -04:00
chore_allow_the_node_entrypoint_to_be_a_builtin_module.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
chore_fix_-wimplicit-fallthrough.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
chore_read_nobrowserglobals_from_global_not_process.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
darwin_bump_minimum_supported_version_to_10_15_3406.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
darwin_remove_eprototype_error_workaround_3405.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
darwin_translate_eprototype_to_econnreset_3413.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
expose_get_builtin_module_function.patch chore: bump node to v16.10.0 (main) (#31094) 2021-09-28 09:29:44 +02:00
feat_add_knostartdebugsignalhandler_to_environment_to_prevent.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
feat_add_uv_loop_interrupt_on_io_change_option_to_uv_loop_configure.patch chore: update libuv patch for event loop integration (#31647) 2022-03-29 19:03:07 +09:00
feat_initialize_asar_support.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
fix_account_for_debugger_agent_race_condition.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
fix_add_default_values_for_variables_in_common_gypi.patch chore: bump node to v16.15.1 (main) (#34424) 2022-06-03 16:13:27 +02:00
fix_add_v8_enable_reverse_jsargs_defines_in_common_gypi.patch chore: bump node to v16.15.1 (main) (#34424) 2022-06-03 16:13:27 +02:00
fix_crash_caused_by_gethostnamew_on_windows_7.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
fix_crypto_tests_to_run_with_bssl.patch fix: re-enable HKDF crypto functionality (#34767) 2022-06-29 14:53:57 +02:00
fix_expose_tracing_agent_and_use_tracing_tracingcontroller_instead.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
fix_failing_node_js_test_on_outdated.patch chore: bump chromium to 100.0.4894.0 (main) (#32852) 2022-02-25 13:17:35 -05:00
fix_handle_boringssl_and_openssl_incompatibilities.patch fix: re-enable HKDF crypto functionality (#34767) 2022-06-29 14:53:57 +02:00
fix_preserve_proper_method_names_as-is_in_error_stack.patch chore: bump chromium to 102.0.4989.0 (main) (#33557) 2022-04-12 13:19:14 +02:00
fix_readbarrier_undefined_symbol_error_on_woa_arm64.patch chore: bump node to v16.7.0 (main) (#30350) 2021-08-20 19:25:50 +02:00
fix_serdes_test.patch chore: bump chromium to 100.0.4857.0 (main) (#32419) 2022-02-09 18:58:52 -08:00
fix_suppress_clang_-wdeprecated-declarations_in_libuv.patch chore: bump node to v16.14.2 (main) (#32833) 2022-03-23 18:59:54 -04:00
json_parse_errors_made_user-friendly.patch chore: bump chromium to 104.0.5073.0 (main) (#34272) 2022-06-01 08:12:47 +02:00
macos_avoid_posix_spawnp_cwd_bug_3597.patch chore: backport 7c9b3938d from libuv (#33815) 2022-04-21 10:38:47 +09:00
macos_don_t_use_thread-unsafe_strtok_3524.patch fix: libuv patches to address child_process.spawn slowness (#33337) 2022-03-23 06:30:54 -07:00
pass_all_globals_through_require.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
process_bsd_handle_kevent_note_exit_failure_3451.patch chore: update out-dated node patches (#33421) 2022-03-24 10:26:34 +01:00
process_fix_hang_after_note_exit_3521.patch chore: update out-dated node patches (#33421) 2022-03-24 10:26:34 +01:00
process_monitor_for_exit_with_kqueue_on_bsds_3441.patch chore: update out-dated node patches (#33421) 2022-03-24 10:26:34 +01:00
process_only_use_f_dupfd_cloexec_if_it_is_defined_3512.patch fix: libuv patches to address child_process.spawn slowness (#33337) 2022-03-23 06:30:54 -07:00
process_reset_the_signal_mask_if_the_fork_fails_3537.patch fix: libuv patches to address child_process.spawn slowness (#33337) 2022-03-23 06:30:54 -07:00
process_simplify_uv_write_int_calls_3519.patch fix: libuv patches to address child_process.spawn slowness (#33337) 2022-03-23 06:30:54 -07:00
refactor_allow_embedder_overriding_of_internal_fs_calls.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
refactor_alter_child_process_fork_to_use_execute_script_with.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
reland_macos_use_posix_spawn_instead_of_fork_3257.patch fix: libuv patches to address child_process.spawn slowness (#33337) 2022-03-23 06:30:54 -07:00
repl_fix_crash_when_sharedarraybuffer_disabled.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
src_allow_embedders_to_provide_a_custom_pageallocator_to.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00
src_update_importmoduledynamically.patch chore: bump chromium to 103.0.5046.0 (main) (#33906) 2022-05-17 12:48:40 -04:00
support_v8_sandboxed_pointers.patch feat: enable v8 sandboxed pointers (#34724) 2022-07-05 11:28:22 -04:00
unix_remove_uv_cloexec_ioctl_3515.patch chore: update libuv patch for event loop integration (#31647) 2022-03-29 19:03:07 +09:00
unix_simplify_uv_cloexec_fcntl_3492.patch chore: update libuv patch for event loop integration (#31647) 2022-03-29 19:03:07 +09:00
worker_thread_add_asar_support.patch chore: bump node to v16.15.0 (main) (#33947) 2022-05-09 18:55:49 -04:00