Skip to content

Commit 654ff06

Browse files
electron-roller[bot]codebytere
authored andcommitted
chore: bump node to v18.18.1 (main) (electron#40174)
* chore: bump node in DEPS to v18.18.1 * Revert "deps: upgrade to libuv 1.46.0" nodejs/node#50036 * chore: fixup patch indices --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <[email protected]>
1 parent 0b847b0 commit 654ff06

5 files changed

+48
-44
lines changed

DEPS

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ vars = {
44
'chromium_version':
55
'120.0.6099.5',
66
'node_version':
7-
'v18.18.0',
7+
'v18.18.1',
88
'nan_version':
99
'e14bdcd1f72d62bca1d541b66da43130384ec213',
1010
'squirrel.mac_version':

patches/node/build_add_gn_build_files.patch

+11-7
Original file line numberDiff line numberDiff line change
@@ -929,10 +929,10 @@ index 0000000000000000000000000000000000000000..bfbd4e656db1a6c73048443f96f1d576
929929
+}
930930
diff --git a/deps/uv/BUILD.gn b/deps/uv/BUILD.gn
931931
new file mode 100644
932-
index 0000000000000000000000000000000000000000..ae4d3bf68882f1aa6d7440448050fbdd9a17dca7
932+
index 0000000000000000000000000000000000000000..29e66144dbb67704bad0d78c4b3f5713537c7987
933933
--- /dev/null
934934
+++ b/deps/uv/BUILD.gn
935-
@@ -0,0 +1,194 @@
935+
@@ -0,0 +1,197 @@
936936
+config("libuv_config") {
937937
+ include_dirs = [ "include" ]
938938
+
@@ -1005,7 +1005,6 @@ index 0000000000000000000000000000000000000000..ae4d3bf68882f1aa6d7440448050fbdd
10051005
+ "src/strscpy.h",
10061006
+ "src/strtok.c",
10071007
+ "src/strtok.h",
1008-
+ "src/thread-common.c",
10091008
+ "src/threadpool.c",
10101009
+ "src/timer.c",
10111010
+ "src/uv-common.c",
@@ -1110,7 +1109,11 @@ index 0000000000000000000000000000000000000000..ae4d3bf68882f1aa6d7440448050fbdd
11101109
+ if (is_linux) {
11111110
+ defines += [ "_GNU_SOURCE" ]
11121111
+ sources += [
1113-
+ "src/unix/linux.c",
1112+
+ "src/unix/epoll.c",
1113+
+ "src/unix/linux-core.c",
1114+
+ "src/unix/linux-inotify.c",
1115+
+ "src/unix/linux-syscalls.c",
1116+
+ "src/unix/linux-syscalls.h",
11141117
+ "src/unix/procfs-exepath.c",
11151118
+ "src/unix/random-getrandom.c",
11161119
+ "src/unix/random-sysctl-linux.c",
@@ -1173,10 +1176,10 @@ index 0000000000000000000000000000000000000000..2c9d2826c85bdd033f1df1d6188df636
11731176
+}
11741177
diff --git a/filenames.json b/filenames.json
11751178
new file mode 100644
1176-
index 0000000000000000000000000000000000000000..12d4706fae0d8253db8de1fc2c4e31a6380cc122
1179+
index 0000000000000000000000000000000000000000..7d86765bf229275ba55d37a452ef24832a7afadb
11771180
--- /dev/null
11781181
+++ b/filenames.json
1179-
@@ -0,0 +1,663 @@
1182+
@@ -0,0 +1,664 @@
11801183
+// This file is automatically generated by generate_gn_filenames_json.py
11811184
+// DO NOT EDIT
11821185
+{
@@ -1290,6 +1293,7 @@ index 0000000000000000000000000000000000000000..12d4706fae0d8253db8de1fc2c4e31a6
12901293
+ "deps/uv/include/uv/linux.h",
12911294
+ "deps/uv/include/uv/os390.h",
12921295
+ "deps/uv/include/uv/posix.h",
1296+
+ "deps/uv/include/uv/stdint-msvc2008.h",
12931297
+ "deps/uv/include/uv/sunos.h",
12941298
+ "deps/uv/include/uv/threadpool.h",
12951299
+ "deps/uv/include/uv/tree.h",
@@ -2100,7 +2104,7 @@ index 0000000000000000000000000000000000000000..4ab828dcbf322a9e28674e48c4a6868b
21002104
+ args = rebase_path(inputs + outputs, root_build_dir)
21012105
+}
21022106
diff --git a/src/node_version.h b/src/node_version.h
2103-
index 7e90c796f3bd076048a2114a1ba31db7ee876440..60a17104e0b1b19038efc1a1468ee92642d3ffd6 100644
2107+
index ac1fc294a412b1a63b6f6bb4c49cd5ce34fb8ad7..eaa480cd63217dc9cd6868dff411932adef4ef08 100644
21042108
--- a/src/node_version.h
21052109
+++ b/src/node_version.h
21062110
@@ -89,7 +89,10 @@

patches/node/feat_add_uv_loop_interrupt_on_io_change_option_to_uv_loop_configure.patch

+29-29
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ index 0f5ddfb3ca21b7e5b38d0a4ce4b9e77387597199..ba815202fb157aa82859ec0518523cf6
2626
.. c:function:: int uv_loop_close(uv_loop_t* loop)
2727

2828
diff --git a/deps/uv/include/uv.h b/deps/uv/include/uv.h
29-
index 02397dd0fdd43d51f86c0dde9a62046702f12bdb..3375600023e39ddacf62cc17deb4f206db942084 100644
29+
index ee1c94ccd389915ea7572cce044256a7788025ad..d31abf714d5d1433ec8473ccb1aae3b6615c477a 100644
3030
--- a/deps/uv/include/uv.h
3131
+++ b/deps/uv/include/uv.h
32-
@@ -260,7 +260,8 @@ typedef struct uv_metrics_s uv_metrics_t;
32+
@@ -252,7 +252,8 @@ typedef struct uv_statfs_s uv_statfs_t;
3333

3434
typedef enum {
3535
UV_LOOP_BLOCK_SIGNAL = 0,
@@ -40,7 +40,7 @@ index 02397dd0fdd43d51f86c0dde9a62046702f12bdb..3375600023e39ddacf62cc17deb4f206
4040

4141
typedef enum {
4242
diff --git a/deps/uv/src/unix/async.c b/deps/uv/src/unix/async.c
43-
index 0ff2669e30a628dbb2df9e28ba14b38cf14114e5..679b17bda476d2a9c072ce8261234f837b56422f 100644
43+
index e1805c323795e5b0c465d80100eebeb7bf838caa..dd4358c0cdaa97ba8fadf4d9755993803beddd18 100644
4444
--- a/deps/uv/src/unix/async.c
4545
+++ b/deps/uv/src/unix/async.c
4646
@@ -38,7 +38,6 @@
@@ -49,18 +49,18 @@ index 0ff2669e30a628dbb2df9e28ba14b38cf14114e5..679b17bda476d2a9c072ce8261234f83
4949

5050
-static void uv__async_send(uv_loop_t* loop);
5151
static int uv__async_start(uv_loop_t* loop);
52-
static void uv__cpu_relax(void);
5352

54-
@@ -78,7 +77,7 @@ int uv_async_send(uv_async_t* handle) {
53+
54+
@@ -70,7 +69,7 @@ int uv_async_send(uv_async_t* handle) {
55+
return 0;
5556

5657
/* Wake up the other thread's event loop. */
57-
if (atomic_exchange(pending, 1) == 0)
58-
- uv__async_send(handle->loop);
59-
+ uv__loop_interrupt(handle->loop);
58+
- uv__async_send(handle->loop);
59+
+ uv__loop_interrupt(handle->loop);
6060

61-
/* Set the loop to not-busy. */
62-
atomic_fetch_add(busy, -1);
63-
@@ -178,40 +177,6 @@ static void uv__async_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
61+
/* Tell the other thread we're done. */
62+
if (cmpxchgi(&handle->pending, 1, 2) != 1)
63+
@@ -165,40 +164,6 @@ static void uv__async_io(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
6464
}
6565

6666

@@ -102,10 +102,10 @@ index 0ff2669e30a628dbb2df9e28ba14b38cf14114e5..679b17bda476d2a9c072ce8261234f83
102102
int pipefd[2];
103103
int err;
104104
diff --git a/deps/uv/src/unix/core.c b/deps/uv/src/unix/core.c
105-
index 25c5181f370e94983e8a5f797f02f7a8dc207e00..f4d9059796d2c65339a5d48ecb273b09d9364d21 100644
105+
index 54c769f37f2331136c87a37c13fb4e3f9a8f22f9..ac52ab79a5fc3050effd2b1f2f605cee9b1ab336 100644
106106
--- a/deps/uv/src/unix/core.c
107107
+++ b/deps/uv/src/unix/core.c
108-
@@ -926,6 +926,9 @@ void uv__io_start(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
108+
@@ -900,6 +900,9 @@ void uv__io_start(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
109109
loop->watchers[w->fd] = w;
110110
loop->nfds++;
111111
}
@@ -115,28 +115,28 @@ index 25c5181f370e94983e8a5f797f02f7a8dc207e00..f4d9059796d2c65339a5d48ecb273b09
115115
}
116116

117117

118-
@@ -957,6 +960,9 @@ void uv__io_stop(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
118+
@@ -931,6 +934,9 @@ void uv__io_stop(uv_loop_t* loop, uv__io_t* w, unsigned int events) {
119119
}
120-
else if (uv__queue_empty(&w->watcher_queue))
121-
uv__queue_insert_tail(&loop->watcher_queue, &w->watcher_queue);
120+
else if (QUEUE_EMPTY(&w->watcher_queue))
121+
QUEUE_INSERT_TAIL(&loop->watcher_queue, &w->watcher_queue);
122122
+
123123
+ if (uv__get_internal_fields(loop)->flags & UV_LOOP_INTERRUPT_ON_IO_CHANGE)
124124
+ uv__loop_interrupt(loop);
125125
}
126126

127127

128-
@@ -973,6 +979,9 @@ void uv__io_close(uv_loop_t* loop, uv__io_t* w) {
128+
@@ -947,6 +953,9 @@ void uv__io_close(uv_loop_t* loop, uv__io_t* w) {
129129
void uv__io_feed(uv_loop_t* loop, uv__io_t* w) {
130-
if (uv__queue_empty(&w->pending_queue))
131-
uv__queue_insert_tail(&loop->pending_queue, &w->pending_queue);
130+
if (QUEUE_EMPTY(&w->pending_queue))
131+
QUEUE_INSERT_TAIL(&loop->pending_queue, &w->pending_queue);
132132
+
133133
+ if (uv__get_internal_fields(loop)->flags & UV_LOOP_INTERRUPT_ON_IO_CHANGE)
134134
+ uv__loop_interrupt(loop);
135135
}
136136

137137

138138
diff --git a/deps/uv/src/unix/loop.c b/deps/uv/src/unix/loop.c
139-
index a9468e8e19cbede795032980c47eb83aee1e0c68..2d28cf48efc3718de19b901b7e08b8a857d20740 100644
139+
index a88e71c339351f2ebcdd6c3f933fc3b1122910ed..46fc03264b6cc1a3a4d8faf5ec5a754fc07c9b6d 100644
140140
--- a/deps/uv/src/unix/loop.c
141141
+++ b/deps/uv/src/unix/loop.c
142142
@@ -217,6 +217,11 @@ int uv__loop_configure(uv_loop_t* loop, uv_loop_option option, va_list ap) {
@@ -193,10 +193,10 @@ index a9468e8e19cbede795032980c47eb83aee1e0c68..2d28cf48efc3718de19b901b7e08b8a8
193193
+ abort();
194194
+}
195195
diff --git a/deps/uv/src/uv-common.h b/deps/uv/src/uv-common.h
196-
index cd57e5a35153d0557351b60cce0c5be7a4468b60..660caef30b1637b8009de5e55ee34f48d17e4dd0 100644
196+
index 6001b0cf68d0b0268b578218b664a737f43c9521..5d2212571f4bcb648ab332f0c5650d0fdb37c03a 100644
197197
--- a/deps/uv/src/uv-common.h
198198
+++ b/deps/uv/src/uv-common.h
199-
@@ -144,6 +144,8 @@ int uv__loop_configure(uv_loop_t* loop, uv_loop_option option, va_list ap);
199+
@@ -140,6 +140,8 @@ int uv__loop_configure(uv_loop_t* loop, uv_loop_option option, va_list ap);
200200

201201
void uv__loop_close(uv_loop_t* loop);
202202

@@ -205,7 +205,7 @@ index cd57e5a35153d0557351b60cce0c5be7a4468b60..660caef30b1637b8009de5e55ee34f48
205205
int uv__read_start(uv_stream_t* stream,
206206
uv_alloc_cb alloc_cb,
207207
uv_read_cb read_cb);
208-
@@ -280,6 +282,10 @@ void uv__threadpool_cleanup(void);
208+
@@ -268,6 +270,10 @@ void uv__threadpool_cleanup(void);
209209
if (((h)->flags & UV_HANDLE_ACTIVE) != 0) break; \
210210
(h)->flags |= UV_HANDLE_ACTIVE; \
211211
if (((h)->flags & UV_HANDLE_REF) != 0) uv__active_handle_add(h); \
@@ -217,7 +217,7 @@ index cd57e5a35153d0557351b60cce0c5be7a4468b60..660caef30b1637b8009de5e55ee34f48
217217
while (0)
218218

219219
diff --git a/deps/uv/src/win/core.c b/deps/uv/src/win/core.c
220-
index e9885a0f1ff3890a8d957c8793e22b01cedc0e97..ae3d09878253fe7169ad7b74b3faea0223f89de5 100644
220+
index 67af93e6571ed4324d80b6dfb2ff93db7b9cd9b1..e88008b6a288d1508c5c117d814000d63cab81c3 100644
221221
--- a/deps/uv/src/win/core.c
222222
+++ b/deps/uv/src/win/core.c
223223
@@ -384,10 +384,20 @@ int uv__loop_configure(uv_loop_t* loop, uv_loop_option option, va_list ap) {
@@ -242,7 +242,7 @@ index e9885a0f1ff3890a8d957c8793e22b01cedc0e97..ae3d09878253fe7169ad7b74b3faea02
242242
return -1;
243243
}
244244
diff --git a/deps/uv/test/test-embed.c b/deps/uv/test/test-embed.c
245-
index bbe56e176db17a502d7f3864ba529212f553590a..b0da9d1cddc69428e9fb3379d1338cf893ab93d2 100644
245+
index 1d3355fdc67310feb63738c9e30724f0e77f7895..77a63dbb4d188b2ad571c814dbc6cbc6fe5fa205 100644
246246
--- a/deps/uv/test/test-embed.c
247247
+++ b/deps/uv/test/test-embed.c
248248
@@ -25,54 +25,184 @@
@@ -463,21 +463,21 @@ index bbe56e176db17a502d7f3864ba529212f553590a..b0da9d1cddc69428e9fb3379d1338cf8
463463
+ run_loop();
464464
+ ASSERT_EQ(main_timer_called, 1);
465465

466-
MAKE_VALGRIND_HAPPY(loop);
466+
MAKE_VALGRIND_HAPPY();
467467
return 0;
468468
diff --git a/deps/uv/test/test-list.h b/deps/uv/test/test-list.h
469-
index 78ff9c2d1621676feab5d357609970cdf1ba5864..204160f324ad1a80c9b042e62c4bedcb745666ba 100644
469+
index b19c10c7e40c77061337416fd623c53d0863d276..1f54ac21c36902bccb35c64cefa8bb14dd675bb0 100644
470470
--- a/deps/uv/test/test-list.h
471471
+++ b/deps/uv/test/test-list.h
472-
@@ -273,6 +273,7 @@ TEST_DECLARE (process_priority)
472+
@@ -265,6 +265,7 @@ TEST_DECLARE (process_priority)
473473
TEST_DECLARE (has_ref)
474474
TEST_DECLARE (active)
475475
TEST_DECLARE (embed)
476476
+TEST_DECLARE (embed_with_external_timer)
477477
TEST_DECLARE (async)
478478
TEST_DECLARE (async_null_cb)
479479
TEST_DECLARE (eintr_handling)
480-
@@ -894,6 +895,7 @@ TASK_LIST_START
480+
@@ -867,6 +868,7 @@ TASK_LIST_START
481481
TEST_ENTRY (active)
482482

483483
TEST_ENTRY (embed)

patches/node/fix_suppress_clang_-wdeprecated-declarations_in_libuv.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Subject: fix: suppress clang -Wdeprecated-declarations in libuv
66
Should be upstreamed.
77

88
diff --git a/deps/uv/src/win/util.c b/deps/uv/src/win/util.c
9-
index f6ec79cd57b5010ed5fd6829d952bcdacc8b7671..5cda078a55f7825d135a107fa98e1aa3527dd147 100644
9+
index 99432053cc3b242e514268b7aba2e2d83a9e64f2..750a5424953aad104ba1e865fefd55d316485917 100644
1010
--- a/deps/uv/src/win/util.c
1111
+++ b/deps/uv/src/win/util.c
12-
@@ -1685,10 +1685,17 @@ int uv_os_uname(uv_utsname_t* buffer) {
12+
@@ -1743,10 +1743,17 @@ int uv_os_uname(uv_utsname_t* buffer) {
1313
#ifdef _MSC_VER
1414
#pragma warning(suppress : 4996)
1515
#endif

patches/node/win_process_avoid_assert_after_spawning_store_app_4152.patch

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ as launch more jobs or exit).
1818
Fixes: https://github.com/JuliaLang/julia/issues/51461
1919

2020
diff --git a/deps/uv/src/win/process.c b/deps/uv/src/win/process.c
21-
index 3e451e2291d6ed200ec258e874becbbea22bbc27..a71a08bdd60166ef1d4ef490ff3e083b44188852 100644
21+
index 24c633393fd15dcf87726b174d6b027a969e0f0d..4ad9fec900fa66b0e8c6894701e94f420de903a8 100644
2222
--- a/deps/uv/src/win/process.c
2323
+++ b/deps/uv/src/win/process.c
24-
@@ -105,6 +105,21 @@ static void uv__init_global_job_handle(void) {
24+
@@ -102,6 +102,21 @@ static void uv__init_global_job_handle(void) {
2525
&info,
2626
sizeof info))
2727
uv_fatal_error(GetLastError(), "SetInformationJobObject");
@@ -43,15 +43,15 @@ index 3e451e2291d6ed200ec258e874becbbea22bbc27..a71a08bdd60166ef1d4ef490ff3e083b
4343
}
4444

4545

46-
@@ -1102,6 +1117,7 @@ int uv_spawn(uv_loop_t* loop,
46+
@@ -1098,6 +1113,7 @@ int uv_spawn(uv_loop_t* loop,
4747
* breakaway.
4848
*/
4949
process_flags |= DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP;
5050
+ process_flags |= CREATE_SUSPENDED;
5151
}
5252

5353
if (!CreateProcessW(application_path,
54-
@@ -1119,11 +1135,6 @@ int uv_spawn(uv_loop_t* loop,
54+
@@ -1115,11 +1131,6 @@ int uv_spawn(uv_loop_t* loop,
5555
goto done;
5656
}
5757

@@ -63,7 +63,7 @@ index 3e451e2291d6ed200ec258e874becbbea22bbc27..a71a08bdd60166ef1d4ef490ff3e083b
6363
/* If the process isn't spawned as detached, assign to the global job object
6464
* so windows will kill it when the parent process dies. */
6565
if (!(options->flags & UV_PROCESS_DETACHED)) {
66-
@@ -1146,6 +1157,19 @@ int uv_spawn(uv_loop_t* loop,
66+
@@ -1142,6 +1153,19 @@ int uv_spawn(uv_loop_t* loop,
6767
}
6868
}
6969

0 commit comments

Comments
 (0)