@yao-pkg/pkg-fetch 3.5.4 → 3.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/lib-es5/expected-shas.json +25 -21
- package/lib-es5/places.js +3 -0
- package/lib-es5/verify.js +1 -1
- package/package.json +1 -1
- package/patches/{node.v16.19.1.cpp.patch → node.v16.20.2.cpp.patch} +6 -6
- package/patches/{node.v18.15.0.cpp.patch → node.v18.18.2.cpp.patch} +39 -38
- package/patches/patches.json +2 -2
package/README.md
CHANGED
|
@@ -115,3 +115,18 @@ review.
|
|
|
115
115
|
For example:
|
|
116
116
|
|
|
117
117
|
`yarn start --node-range node18 --arch x64 --output dist`
|
|
118
|
+
|
|
119
|
+
## Environment
|
|
120
|
+
|
|
121
|
+
| Var | Description |
|
|
122
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
123
|
+
| `PKG_BUILD_PATH` | Directory to use to clone and build nodejs binaries. Default to system temporary directory |
|
|
124
|
+
| `PKG_CACHE_PATH` | Path to pkg-cache. Default to `~/.pkg-cache` |
|
|
125
|
+
| `PKG_IGNORE_TAG` | Ignore tag folder when checking local binary path |
|
|
126
|
+
| `PKG_NODE_PATH` | Custom path to the local nodejs binary to use |
|
|
127
|
+
| `HTTPS_PROXY` | Optional HTTPS proxy to use when fetching binaries |
|
|
128
|
+
| `HTTP_PROXY` | Optional HTTP proxy to use when fetching binaries |
|
|
129
|
+
| `MAKE_JOB_COUNT` | Number of parallel jobs when building binaries (value passed to `make -j` option). Default to number of cpus |
|
|
130
|
+
| `CFLAGS` | Flags to use when invoking C compiler |
|
|
131
|
+
| `CXXFLAGS` | Flags to use when invoking C++ compiler |
|
|
132
|
+
| `STRIP` | Path to `strip` command. Default to `strip` |
|
|
@@ -10,26 +10,29 @@
|
|
|
10
10
|
"node-v14.21.3-macos-x64": "4b19a9555807de2119e2fb00f2ba5f04126b35afdb8264d7b2dd8e2e134fa934",
|
|
11
11
|
"node-v14.21.3-win-arm64": "1f9d32c4693893ce4e2e8b340648a12d37cb742866b067b85402078e70151ba7",
|
|
12
12
|
"node-v14.21.3-win-x64": "cb2a0bf3e063a2bc6b66a4894e6a57d334922c4bb3a337157764fd914d616666",
|
|
13
|
-
"node-
|
|
14
|
-
"node-v16.
|
|
15
|
-
"node-v16.
|
|
16
|
-
"node-v16.
|
|
17
|
-
"node-v16.
|
|
18
|
-
"node-v16.
|
|
19
|
-
"node-v16.
|
|
20
|
-
"node-v16.
|
|
21
|
-
"node-v16.
|
|
22
|
-
"node-v16.
|
|
23
|
-
"node-
|
|
24
|
-
"node-
|
|
25
|
-
"node-v18.
|
|
26
|
-
"node-v18.
|
|
27
|
-
"node-v18.
|
|
28
|
-
"node-v18.
|
|
29
|
-
"node-v18.
|
|
30
|
-
"node-v18.
|
|
31
|
-
"node-v18.
|
|
32
|
-
"node-v18.
|
|
13
|
+
"node-v14.21.3-macos-arm64": "1cdd2e5aeea38c909aba5d4565082914370d16f32ca90bb1671f3b9687c62e1d",
|
|
14
|
+
"node-v16.20.2-alpine-arm64": "a30cc9be5472dc0f66bf859669c742c6a47f66973c82bea0e7605c357079c8d5",
|
|
15
|
+
"node-v16.20.2-alpine-x64": "171381ff415321dede24c5883003a1c07301a4d7bf44aeb0ef4e72b7f78c3202",
|
|
16
|
+
"node-v16.20.2-linux-arm64": "12c175838b4e76dabf67f0668dbfa0889ce80aca35a5866635a3a42664cbba22",
|
|
17
|
+
"node-v16.20.2-linux-x64": "b8ad09f0fccf5341dc459056096aa6d413d278ca3e939e42a29e6fbaa149ca50",
|
|
18
|
+
"node-v16.20.2-linuxstatic-arm64": "fa6ecba685dbdd0e1a1e3a9cb7db07dc558f422a0b53baf3834b855c422a2a3a",
|
|
19
|
+
"node-v16.20.2-linuxstatic-armv7": "a8c63fb9523ad44fe59329ba02dba2936da4b9adc7d4238e7180f15031cb1cff",
|
|
20
|
+
"node-v16.20.2-linuxstatic-x64": "1a136b7c97c56a90e48d51683ca9181e53e750928a439a88da185c0d7917e432",
|
|
21
|
+
"node-v16.20.2-macos-x64": "cd60ba35e3305519ce4ce6398897a1c9e9e68a14c170325d9ece8d078775b3f9",
|
|
22
|
+
"node-v16.20.2-win-arm64": "7514915e02aedfbdc9f87ede04f1f251b014e312e3e184d5b94b42aeb28c2485",
|
|
23
|
+
"node-v16.20.2-win-x64": "272729724993ce07b37d328718a0152e50ec5c9d27aa972975c09b75604c0dca",
|
|
24
|
+
"node-v16.20.2-macos-arm64": "3d04eb7ddd8b614b888eeb1caa6e64a068b665ab4a26dd064051973ae5842a85",
|
|
25
|
+
"node-v18.18.2-alpine-arm64": "244a74549a342ed74b531625c02168e1c0e72f328d8b8d53ab143a6813fd9466",
|
|
26
|
+
"node-v18.18.2-alpine-x64": "b9c6d08f510ce15353d9f2441b5b096697c877b1760a6f526c203b47bf3ec83a",
|
|
27
|
+
"node-v18.18.2-linux-arm64": "01676c5420d17a2fa53ddf4573ca21895150ae317cd54a7e26234c26d3603e7a",
|
|
28
|
+
"node-v18.18.2-linux-x64": "d918fd7ad7d9db0cde09c570ada58a6fb9e2bf43c032a9cb87d0e572f06db646",
|
|
29
|
+
"node-v18.18.2-linuxstatic-arm64": "2db35ca7c089fc78a8c6b44804a88aa1035344a7465b038f593cc337198285a6",
|
|
30
|
+
"node-v18.18.2-linuxstatic-armv7": "705c75ab9155069ffb8c3f800f8d49121d2b0d07343e4da9a98477e2962602f9",
|
|
31
|
+
"node-v18.18.2-linuxstatic-x64": "dce8f6c6f3ce48b4bbfb7a8177165c9743dba12458ccd42b9f3da3c9601fc088",
|
|
32
|
+
"node-v18.18.2-macos-x64": "db04d8a9338e1d2f6afd53c99d0a57ec9cc4bca84165ade0d2f5fcf9871bcdb9",
|
|
33
|
+
"node-v18.18.2-win-arm64": "ca08e24dfd5bae1a898d86f3241287e057c14e7fce37da1dff63f1bce6822b62",
|
|
34
|
+
"node-v18.18.2-win-x64": "81b25a5dc71bb3ebc8219f4cd73ad598a1eaff16ccbb2f75cf8f5db94e08149b",
|
|
35
|
+
"node-v18.18.2-macos-arm64": "35deec00661aa042d3557e74281c6742f0184e634da0df055c3c4214360a3070",
|
|
33
36
|
"node-v19.8.1-alpine-arm64": "7d4fc8a17f116d6e77b6011201797897592fa03380e939fa8b49b00ba7ac641b",
|
|
34
37
|
"node-v19.8.1-alpine-x64": "aca5632e1960d763c7b9914ebfeb929c4ca0e8c2112798eca3959ba9a5076ed8",
|
|
35
38
|
"node-v19.8.1-linux-arm64": "4754c852da9e55591d7e54c4b9c5db1db4d52c8452b8533aab73451c1c5797f8",
|
|
@@ -39,5 +42,6 @@
|
|
|
39
42
|
"node-v19.8.1-linuxstatic-x64": "39c5c208347c76d921212d7a0d885c0b54d8c698b01c0e1e4b167b87fbc6ffb1",
|
|
40
43
|
"node-v19.8.1-macos-x64": "7288e53e6afe4d07bc5f32965ca7a051d7e72a67f09979c561dc8dabff88a5b2",
|
|
41
44
|
"node-v19.8.1-win-arm64": "f288732fc5f5493367a5d60d1e227347099de3db26fd651607df07d37fb8222e",
|
|
42
|
-
"node-v19.8.1-win-x64": "98b22116864d72e1ccb4d557dc36785cf731051543c5c876f1bf547872de2d1d"
|
|
45
|
+
"node-v19.8.1-win-x64": "98b22116864d72e1ccb4d557dc36785cf731051543c5c876f1bf547872de2d1d",
|
|
46
|
+
"node-v19.8.1-macos-arm64": "69c1113d1fbcce01e0062af12a4a1b81f6c3746ff32a8b307f8632788109c94a"
|
|
43
47
|
}
|
package/lib-es5/places.js
CHANGED
|
@@ -18,6 +18,9 @@ function tagFromVersion(version) {
|
|
|
18
18
|
function localPlace(_a) {
|
|
19
19
|
var from = _a.from, output = _a.output, version = _a.version, nodeVersion = _a.nodeVersion, platform = _a.platform, arch = _a.arch;
|
|
20
20
|
var binDir;
|
|
21
|
+
if (process.env.PKG_NODE_PATH) {
|
|
22
|
+
return path_1.default.resolve(process.env.PKG_NODE_PATH);
|
|
23
|
+
}
|
|
21
24
|
if (output) {
|
|
22
25
|
binDir = path_1.default.resolve(output);
|
|
23
26
|
}
|
package/lib-es5/verify.js
CHANGED
|
@@ -39,7 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.verify = void 0;
|
|
40
40
|
var child_process_1 = require("child_process");
|
|
41
41
|
var utils_1 = require("./utils");
|
|
42
|
-
var script = "\n var vm = require('vm');\n var assert = require('assert');\n var text = '(function () { return 42; })';\n var cd, fn, result;\n var modules = process.versions.modules | 0;\n var v8 = process.versions.v8.split('.').slice(0, 2).join('.');\n\n var s1 = new vm.Script(text, { filename: 's1', produceCachedData: true, sourceless: true });\n assert(s1.cachedDataProduced);\n cd = s1.cachedData;\n\n var kCpuFeaturesOffset, cpuFeatures;\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 || modules === 51) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 57) {\n if (v8 === '6.2') {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (v8 === '5.8') {\n kCpuFeaturesOffset = 0x0c;\n } else {\n kCpuFeaturesOffset = 0x10;\n }\n } else\n if (modules === 59) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 64) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 72) {\n // no cpu features anymore\n } else\n if (modules === 79) {\n // no cpu features anymore\n } else\n if (modules === 83) {\n // no cpu features anymore\n } else {\n assert(false, modules);\n }\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // non-zero features even in sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures === 0, 'CPU_FEATURES must be zero');\n }\n\n var s2 = new vm.Script(undefined, { filename: 's2', cachedData: cd, sourceless: true });\n fn = s2.runInThisContext();\n result = fn();\n assert.equal(result, 42);\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 ||\n modules === 51 || modules === 57 || modules === 59 || modules === 64) {\n var paddedPayloadOffset = 0x48; // see SerializedCodeData::Payload()\n var index = paddedPayloadOffset + 10;\n cd[index] ^= 0xf0;\n var s3 = new vm.Script(undefined, { filename: 's3', cachedData: cd, sourceless: true });\n assert(s3.cachedDataRejected, 's3.cachedDataRejected must be true');\n } else\n if (modules === 72) {\n } else\n if (modules === 79) {\n } else\n if (modules === 83) {\n } else {\n assert(false, modules);\n }\n\n var s4 = new vm.Script(text, { filename: 's4', produceCachedData: true });\n assert(s4.cachedDataProduced, 's4.cachedDataProduced must be true');\n cd = s4.cachedData;\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // zero features even in non-sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures !== 0, 'CPU_FEATURES must be non-zero');\n }\n\n console.log('ok');\n";
|
|
42
|
+
var script = "\n var vm = require('vm');\n var assert = require('assert');\n var text = '(function () { return 42; })';\n var cd, fn, result;\n var modules = process.versions.modules | 0;\n var v8 = process.versions.v8.split('.').slice(0, 2).join('.');\n\n var s1 = new vm.Script(text, { filename: 's1', produceCachedData: true, sourceless: true });\n assert(s1.cachedDataProduced);\n cd = s1.cachedData;\n\n var kCpuFeaturesOffset, cpuFeatures;\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 || modules === 51) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 57) {\n if (v8 === '6.2') {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (v8 === '5.8') {\n kCpuFeaturesOffset = 0x0c;\n } else {\n kCpuFeaturesOffset = 0x10;\n }\n } else\n if (modules === 59) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 64) {\n kCpuFeaturesOffset = 0x0c;\n } else\n if (modules === 72) {\n // no cpu features anymore\n } else\n if (modules === 79) {\n // no cpu features anymore\n } else\n if (modules === 83) {\n // no cpu features anymore\n } else\n if (modules === 93) {\n // no cpu features anymore\n } else\n if (modules === 108) {\n // no cpu features anymore\n } else\n if (modules === 111) {\n // no cpu features anymore\n } else {\n assert(false, modules);\n }\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // non-zero features even in sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures === 0, 'CPU_FEATURES must be zero');\n }\n\n var s2 = new vm.Script(undefined, { filename: 's2', cachedData: cd, sourceless: true });\n fn = s2.runInThisContext();\n result = fn();\n assert.equal(result, 42);\n\n if (modules === 14) {\n } else\n if (modules === 46 || modules === 48 ||\n modules === 51 || modules === 57 || modules === 59 || modules === 64) {\n var paddedPayloadOffset = 0x48; // see SerializedCodeData::Payload()\n var index = paddedPayloadOffset + 10;\n cd[index] ^= 0xf0;\n var s3 = new vm.Script(undefined, { filename: 's3', cachedData: cd, sourceless: true });\n assert(s3.cachedDataRejected, 's3.cachedDataRejected must be true');\n } else\n if (modules === 72) {\n } else\n if (modules === 79) {\n } else\n if (modules === 83) {\n } else\n if (modules === 93) {\n } else\n if (modules === 108) {\n } else\n if (modules === 111) {\n } else {\n assert(false, modules);\n }\n\n var s4 = new vm.Script(text, { filename: 's4', produceCachedData: true });\n assert(s4.cachedDataProduced, 's4.cachedDataProduced must be true');\n cd = s4.cachedData;\n\n if (modules >= 46 && // no cpu_features field in 0.12\n process.arch !== 'arm' && // zero features even in non-sourceless mode in arm\n modules < 72) { // no cpu_features field in 12+\n cpuFeatures = cd.readUInt32LE(kCpuFeaturesOffset);\n assert(cpuFeatures !== 0, 'CPU_FEATURES must be non-zero');\n }\n\n console.log('ok');\n";
|
|
43
43
|
function verify(local) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function () {
|
|
45
45
|
return __generator(this, function (_a) {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git node/common.gypi node/common.gypi
|
|
2
|
-
index
|
|
2
|
+
index d713ad5586..c6ee5fe47d 100644
|
|
3
3
|
--- node/common.gypi
|
|
4
4
|
+++ node/common.gypi
|
|
5
5
|
@@ -179,7 +179,7 @@
|
|
@@ -12,10 +12,10 @@ index cbf9c3810d..991792324e 100644
|
|
|
12
12
|
'lto': ' -flto ', # Clang
|
|
13
13
|
}],
|
|
14
14
|
diff --git node/configure.py node/configure.py
|
|
15
|
-
index
|
|
15
|
+
index ce41bff4d3..7dd9d14b43 100755
|
|
16
16
|
--- node/configure.py
|
|
17
17
|
+++ node/configure.py
|
|
18
|
-
@@ -
|
|
18
|
+
@@ -1259,10 +1259,6 @@ def configure_node(o):
|
|
19
19
|
|
|
20
20
|
o['variables']['want_separate_host_toolset'] = int(cross_compiling)
|
|
21
21
|
|
|
@@ -251,7 +251,7 @@ index a9f463c4d0..81dd9ce272 100644
|
|
|
251
251
|
const path = require('path');
|
|
252
252
|
try {
|
|
253
253
|
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
|
|
254
|
-
index
|
|
254
|
+
index 3943bd1edb..227cc0d171 100644
|
|
255
255
|
--- node/lib/internal/modules/cjs/loader.js
|
|
256
256
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
257
257
|
@@ -92,7 +92,7 @@ const fs = require('fs');
|
|
@@ -299,10 +299,10 @@ index 1bb199363a..18ad0f86f2 100644
|
|
|
299
299
|
throw e; /* node-do-not-add-exception-line */
|
|
300
300
|
}
|
|
301
301
|
diff --git node/node.gyp node/node.gyp
|
|
302
|
-
index
|
|
302
|
+
index de409a31f3..d26e4366ad 100644
|
|
303
303
|
--- node/node.gyp
|
|
304
304
|
+++ node/node.gyp
|
|
305
|
-
@@ -
|
|
305
|
+
@@ -111,6 +111,9 @@
|
|
306
306
|
},
|
|
307
307
|
|
|
308
308
|
'conditions': [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git node/common.gypi node/common.gypi
|
|
2
|
-
index
|
|
2
|
+
index 94fae06518..e4116f3c82 100644
|
|
3
3
|
--- node/common.gypi
|
|
4
4
|
+++ node/common.gypi
|
|
5
5
|
@@ -174,7 +174,7 @@
|
|
@@ -12,10 +12,10 @@ index 782c871cff..c379e36569 100644
|
|
|
12
12
|
'lto': ' -flto ', # Clang
|
|
13
13
|
}],
|
|
14
14
|
diff --git node/configure.py node/configure.py
|
|
15
|
-
index
|
|
15
|
+
index 7006ee6581..12fb2ac8d1 100755
|
|
16
16
|
--- node/configure.py
|
|
17
17
|
+++ node/configure.py
|
|
18
|
-
@@ -
|
|
18
|
+
@@ -1289,9 +1289,7 @@ def configure_node(o):
|
|
19
19
|
|
|
20
20
|
o['variables']['want_separate_host_toolset'] = int(cross_compiling)
|
|
21
21
|
|
|
@@ -75,7 +75,7 @@ index 8d224bea2e..8402afc0fb 100644
|
|
|
75
75
|
|
|
76
76
|
RegisteredExtension::RegisteredExtension(std::unique_ptr<Extension> extension)
|
|
77
77
|
diff --git node/deps/v8/src/codegen/compiler.cc node/deps/v8/src/codegen/compiler.cc
|
|
78
|
-
index
|
|
78
|
+
index d821913f65..2ec64523f3 100644
|
|
79
79
|
--- node/deps/v8/src/codegen/compiler.cc
|
|
80
80
|
+++ node/deps/v8/src/codegen/compiler.cc
|
|
81
81
|
@@ -3026,7 +3026,7 @@ MaybeHandle<SharedFunctionInfo> GetSharedFunctionInfoForScriptImpl(
|
|
@@ -169,10 +169,10 @@ index 618cf9e975..64a57e8afe 100644
|
|
|
169
169
|
uint32_t max_payload_length = this->size_ - kHeaderSize;
|
|
170
170
|
if (payload_length > max_payload_length) {
|
|
171
171
|
diff --git node/lib/child_process.js node/lib/child_process.js
|
|
172
|
-
index
|
|
172
|
+
index 5bdc474c80..196778e7db 100644
|
|
173
173
|
--- node/lib/child_process.js
|
|
174
174
|
+++ node/lib/child_process.js
|
|
175
|
-
@@ -
|
|
175
|
+
@@ -169,7 +169,7 @@ function fork(modulePath, args = [], options) {
|
|
176
176
|
throw new ERR_CHILD_PROCESS_IPC_REQUIRED('options.stdio');
|
|
177
177
|
}
|
|
178
178
|
|
|
@@ -183,7 +183,7 @@ index 55e6b781cd..2a499d6d5f 100644
|
|
|
183
183
|
function _forkChild(fd, serializationMode) {
|
|
184
184
|
diff --git node/lib/internal/bootstrap/pkg.js node/lib/internal/bootstrap/pkg.js
|
|
185
185
|
new file mode 100644
|
|
186
|
-
index 0000000000..
|
|
186
|
+
index 0000000000..a697294fdf
|
|
187
187
|
--- /dev/null
|
|
188
188
|
+++ node/lib/internal/bootstrap/pkg.js
|
|
189
189
|
@@ -0,0 +1,49 @@
|
|
@@ -237,7 +237,7 @@ index 0000000000..e97e9e524c
|
|
|
237
237
|
+ }());
|
|
238
238
|
+}());
|
|
239
239
|
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
|
|
240
|
-
index
|
|
240
|
+
index 88bb870a8f..22bbdd9058 100644
|
|
241
241
|
--- node/lib/internal/modules/cjs/loader.js
|
|
242
242
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
243
243
|
@@ -94,7 +94,7 @@ const fs = require('fs');
|
|
@@ -250,7 +250,7 @@ index 42e5cc5010..7c4ec56082 100644
|
|
|
250
250
|
const { safeGetenv } = internalBinding('credentials');
|
|
251
251
|
const {
|
|
252
252
|
diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
|
|
253
|
-
index
|
|
253
|
+
index bb175d0df5..07f4834c07 100644
|
|
254
254
|
--- node/lib/internal/modules/package_json_reader.js
|
|
255
255
|
+++ node/lib/internal/modules/package_json_reader.js
|
|
256
256
|
@@ -1,7 +1,7 @@
|
|
@@ -263,10 +263,10 @@ index 09eb12bd15..2d2f196737 100644
|
|
|
263
263
|
const { toNamespacedPath } = require('path');
|
|
264
264
|
|
|
265
265
|
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
|
|
266
|
-
index
|
|
266
|
+
index b4a24bbffb..041ee4c715 100644
|
|
267
267
|
--- node/lib/internal/process/pre_execution.js
|
|
268
268
|
+++ node/lib/internal/process/pre_execution.js
|
|
269
|
-
@@ -
|
|
269
|
+
@@ -36,7 +36,12 @@ const {
|
|
270
270
|
isBuildingSnapshot,
|
|
271
271
|
} = require('v8').startupSnapshot;
|
|
272
272
|
|
|
@@ -279,7 +279,7 @@ index 44a9183d77..3d2268c612 100644
|
|
|
279
279
|
prepareExecution({
|
|
280
280
|
expandArgv1,
|
|
281
281
|
initializeModules,
|
|
282
|
-
@@ -
|
|
282
|
+
@@ -155,7 +160,8 @@ function patchProcessObject(expandArgv1) {
|
|
283
283
|
process.argv[0] = process.execPath;
|
|
284
284
|
|
|
285
285
|
if (expandArgv1 && process.argv[1] &&
|
|
@@ -289,19 +289,19 @@ index 44a9183d77..3d2268c612 100644
|
|
|
289
289
|
// Expand process.argv[1] into a full path.
|
|
290
290
|
const path = require('path');
|
|
291
291
|
try {
|
|
292
|
-
@@ -
|
|
292
|
+
@@ -603,6 +609,7 @@ function loadPreloadModules() {
|
|
293
293
|
// For user code, we preload modules if `-r` is passed
|
|
294
294
|
const preloadModules = getOptionValue('--require');
|
|
295
295
|
if (preloadModules && preloadModules.length > 0) {
|
|
296
296
|
+ assert(false, '--require is not supported');
|
|
297
297
|
const {
|
|
298
298
|
Module: {
|
|
299
|
-
_preloadModules
|
|
299
|
+
_preloadModules,
|
|
300
300
|
diff --git node/lib/vm.js node/lib/vm.js
|
|
301
|
-
index
|
|
301
|
+
index 21acc55e2e..8a128bcb5c 100644
|
|
302
302
|
--- node/lib/vm.js
|
|
303
303
|
+++ node/lib/vm.js
|
|
304
|
-
@@ -
|
|
304
|
+
@@ -77,6 +77,7 @@ class Script extends ContextifyScript {
|
|
305
305
|
produceCachedData = false,
|
|
306
306
|
importModuleDynamically,
|
|
307
307
|
[kParsingContext]: parsingContext,
|
|
@@ -309,7 +309,7 @@ index ec91c8a265..5bb649a377 100644
|
|
|
309
309
|
} = options;
|
|
310
310
|
|
|
311
311
|
validateString(filename, 'options.filename');
|
|
312
|
-
@@ -
|
|
312
|
+
@@ -97,7 +98,8 @@ class Script extends ContextifyScript {
|
|
313
313
|
columnOffset,
|
|
314
314
|
cachedData,
|
|
315
315
|
produceCachedData,
|
|
@@ -320,24 +320,24 @@ index ec91c8a265..5bb649a377 100644
|
|
|
320
320
|
throw e; /* node-do-not-add-exception-line */
|
|
321
321
|
}
|
|
322
322
|
diff --git node/node.gyp node/node.gyp
|
|
323
|
-
index
|
|
323
|
+
index 6b554d75d8..fce4eb4bd5 100644
|
|
324
324
|
--- node/node.gyp
|
|
325
325
|
+++ node/node.gyp
|
|
326
|
-
@@ -
|
|
326
|
+
@@ -113,6 +113,9 @@
|
|
327
327
|
},
|
|
328
328
|
|
|
329
329
|
'conditions': [
|
|
330
330
|
+ ['target_arch=="arm64"', {
|
|
331
331
|
+ 'cflags': ['-msign-return-address=all'], # Pointer authentication.
|
|
332
332
|
+ }],
|
|
333
|
-
['OS
|
|
333
|
+
['OS in "aix os400"', {
|
|
334
334
|
'ldflags': [
|
|
335
335
|
'-Wl,-bnoerrmsg',
|
|
336
336
|
diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
|
|
337
|
-
index
|
|
337
|
+
index b1ba86b7b0..e2478e537c 100644
|
|
338
338
|
--- node/src/inspector_agent.cc
|
|
339
339
|
+++ node/src/inspector_agent.cc
|
|
340
|
-
@@ -
|
|
340
|
+
@@ -703,8 +703,6 @@ bool Agent::Start(const std::string& path,
|
|
341
341
|
StartIoThreadAsyncCallback));
|
|
342
342
|
uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
|
|
343
343
|
start_io_thread_async.data = this;
|
|
@@ -347,10 +347,10 @@ index 91e7beeaa0..43a8a5d7c6 100644
|
|
|
347
347
|
parent_env_->AddCleanupHook([](void* data) {
|
|
348
348
|
Environment* env = static_cast<Environment*>(data);
|
|
349
349
|
diff --git node/src/node.cc node/src/node.cc
|
|
350
|
-
index
|
|
350
|
+
index 96cdcd3064..cef0838d53 100644
|
|
351
351
|
--- node/src/node.cc
|
|
352
352
|
+++ node/src/node.cc
|
|
353
|
-
@@ -
|
|
353
|
+
@@ -314,6 +314,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
|
|
354
354
|
return env->RunSnapshotDeserializeMain();
|
|
355
355
|
}
|
|
356
356
|
|
|
@@ -359,7 +359,7 @@ index 1067dee74c..8b32a10d08 100644
|
|
|
359
359
|
if (env->worker_context() != nullptr) {
|
|
360
360
|
return StartExecution(env, "internal/main/worker_thread");
|
|
361
361
|
}
|
|
362
|
-
@@ -
|
|
362
|
+
@@ -546,14 +548,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
|
|
@@ -375,7 +375,7 @@ index 1067dee74c..8b32a10d08 100644
|
|
|
375
375
|
}
|
|
376
376
|
|
|
377
377
|
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
|
|
378
|
-
index
|
|
378
|
+
index 3da8746e2c..ff60588e77 100644
|
|
379
379
|
--- node/src/node_contextify.cc
|
|
380
380
|
+++ node/src/node_contextify.cc
|
|
381
381
|
@@ -75,6 +75,7 @@ using v8::ScriptOrigin;
|
|
@@ -386,7 +386,7 @@ index ed552ddd55..f757ac3b49 100644
|
|
|
386
386
|
using v8::Value;
|
|
387
387
|
using v8::WeakCallbackInfo;
|
|
388
388
|
using v8::WeakCallbackType;
|
|
389
|
-
@@ -
|
|
389
|
+
@@ -787,11 +788,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
390
390
|
Local<ArrayBufferView> cached_data_buf;
|
|
391
391
|
bool produce_cached_data = false;
|
|
392
392
|
Local<Context> parsing_context = context;
|
|
@@ -400,7 +400,7 @@ index ed552ddd55..f757ac3b49 100644
|
|
|
400
400
|
CHECK(args[2]->IsNumber());
|
|
401
401
|
line_offset = args[2].As<Int32>()->Value();
|
|
402
402
|
CHECK(args[3]->IsNumber());
|
|
403
|
-
@@ -
|
|
403
|
+
@@ -810,6 +812,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
404
404
|
CHECK_NOT_NULL(sandbox);
|
|
405
405
|
parsing_context = sandbox->context();
|
|
406
406
|
}
|
|
@@ -408,7 +408,7 @@ index ed552ddd55..f757ac3b49 100644
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
ContextifyScript* contextify_script =
|
|
411
|
-
@@ -
|
|
411
|
+
@@ -860,6 +863,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
412
412
|
ShouldNotAbortOnUncaughtScope no_abort_scope(env);
|
|
413
413
|
Context::Scope scope(parsing_context);
|
|
414
414
|
|
|
@@ -419,7 +419,7 @@ index ed552ddd55..f757ac3b49 100644
|
|
|
419
419
|
MaybeLocal<UnboundScript> maybe_v8_script =
|
|
420
420
|
ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
|
|
421
421
|
|
|
422
|
-
@@ -
|
|
422
|
+
@@ -873,6 +880,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
423
423
|
"ContextifyScript::New");
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
@@ -433,7 +433,7 @@ index ed552ddd55..f757ac3b49 100644
|
|
|
433
433
|
contextify_script->script_.Reset(isolate, v8_script);
|
|
434
434
|
|
|
435
435
|
std::unique_ptr<ScriptCompiler::CachedData> new_cached_data;
|
|
436
|
-
@@ -
|
|
436
|
+
@@ -897,6 +911,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
437
437
|
.IsNothing())
|
|
438
438
|
return;
|
|
439
439
|
|
|
@@ -445,7 +445,7 @@ index ed552ddd55..f757ac3b49 100644
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
diff --git node/src/node_main.cc node/src/node_main.cc
|
|
448
|
-
index
|
|
448
|
+
index 8099b2a3a1..9cc8a07a55 100644
|
|
449
449
|
--- node/src/node_main.cc
|
|
450
450
|
+++ node/src/node_main.cc
|
|
451
451
|
@@ -22,6 +22,8 @@
|
|
@@ -555,19 +555,20 @@ index d486bbc31c..eb806b1ce4 100644
|
|
|
555
555
|
+ return adjacent(c, nargv);
|
|
556
556
|
+}
|
|
557
557
|
diff --git node/src/node_options.cc node/src/node_options.cc
|
|
558
|
-
index
|
|
558
|
+
index 26f205bc3b..e52a31f487 100644
|
|
559
559
|
--- node/src/node_options.cc
|
|
560
560
|
+++ node/src/node_options.cc
|
|
561
|
-
@@ -
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
561
|
+
@@ -307,7 +307,7 @@ DebugOptionsParser::DebugOptionsParser() {
|
|
562
|
+
#ifndef DISABLE_SINGLE_EXECUTABLE_APPLICATION
|
|
563
|
+
if (sea::IsSingleExecutable()) return;
|
|
564
|
+
#endif
|
|
565
|
+
-
|
|
565
566
|
+ return;
|
|
566
567
|
AddOption("--inspect-port",
|
|
567
568
|
"set host:port for inspector",
|
|
568
569
|
&DebugOptions::host_port,
|
|
569
570
|
diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
|
|
570
|
-
index
|
|
571
|
+
index 2655b9e694..1d951571c7 100644
|
|
571
572
|
--- node/tools/icu/icu-generic.gyp
|
|
572
573
|
+++ node/tools/icu/icu-generic.gyp
|
|
573
574
|
@@ -52,7 +52,7 @@
|
package/patches/patches.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"v19.8.1": ["node.v19.8.1.cpp.patch"],
|
|
3
|
-
"v18.
|
|
4
|
-
"v16.
|
|
3
|
+
"v18.18.2": ["node.v18.18.2.cpp.patch"],
|
|
4
|
+
"v16.20.2": ["node.v16.20.2.cpp.patch"],
|
|
5
5
|
"v14.21.3": ["node.v14.21.3.cpp.patch"],
|
|
6
6
|
"v12.22.11": ["node.v12.22.11.cpp.patch"],
|
|
7
7
|
"v10.24.1": ["node.v10.24.1.cpp.patch"],
|