@synsci/openscience 2.0.143 → 2.0.144
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 +1 -1
- package/bin/openscience +4 -3
- package/package.json +12 -12
- package/postinstall.mjs +6 -3
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ npm install -g @synsci/openscience
|
|
|
12
12
|
|
|
13
13
|
The command is `openscience`.
|
|
14
14
|
|
|
15
|
-
On Linux, the bundled runtime requires kernel 5.
|
|
15
|
+
On Linux, the bundled runtime requires kernel 3.10 or newer, and 5.6 or newer is recommended. Glibc binaries require glibc 2.17 or newer; separate musl packages are selected automatically. Kernels between 3.10 and 5.5 run it with reduced syscall support, which is runtime guidance rather than a completed CentOS 7 certification. On Linux ARM64, Bun-compiled executables currently require a 4 KB kernel page size; 16 KB and 64 KB page kernels fail early with a clear diagnostic while [upstream support](https://github.com/oven-sh/bun/issues/17627) remains open.
|
|
16
16
|
|
|
17
17
|
## Quick start
|
|
18
18
|
|
package/bin/openscience
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require("fs")
|
|
|
5
5
|
const path = require("path")
|
|
6
6
|
const os = require("os")
|
|
7
7
|
|
|
8
|
-
const MIN_LINUX_KERNEL = { major:
|
|
8
|
+
const MIN_LINUX_KERNEL = { major: 3, minor: 10 }
|
|
9
9
|
|
|
10
10
|
function parseKernelVersion(release) {
|
|
11
11
|
const match = /^(\d+)\.(\d+)/.exec(release)
|
|
@@ -23,7 +23,7 @@ function linuxKernelProblem(platform = os.platform(), release = os.release()) {
|
|
|
23
23
|
) {
|
|
24
24
|
return undefined
|
|
25
25
|
}
|
|
26
|
-
return `Linux kernel ${release} is unsupported. OpenScience's bundled runtime requires kernel
|
|
26
|
+
return `Linux kernel ${release} is unsupported. OpenScience's bundled runtime requires kernel 3.10 or newer.`
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function detectMusl(platform = os.platform()) {
|
|
@@ -131,7 +131,8 @@ function run(target, fallback) {
|
|
|
131
131
|
if (kernelProblem) {
|
|
132
132
|
console.error(kernelProblem)
|
|
133
133
|
console.error(
|
|
134
|
-
"Upgrade the host kernel or run OpenScience on a newer VM.
|
|
134
|
+
"Upgrade the host kernel or run OpenScience on a newer VM. Kernels from 3.10 to 5.5 run the bundled " +
|
|
135
|
+
"runtime with graceful degradation of newer syscalls; 5.6 or newer is recommended.",
|
|
135
136
|
)
|
|
136
137
|
process.exit(1)
|
|
137
138
|
}
|
package/package.json
CHANGED
|
@@ -7,22 +7,22 @@
|
|
|
7
7
|
"preinstall": "node ./preinstall.mjs || exit 0",
|
|
8
8
|
"postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs || exit 0"
|
|
9
9
|
},
|
|
10
|
-
"version": "2.0.
|
|
10
|
+
"version": "2.0.144",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+https://github.com/synthetic-sciences/openscience.git"
|
|
14
14
|
},
|
|
15
15
|
"optionalDependencies": {
|
|
16
|
-
"@synsci/openscience-windows-x64": "2.0.
|
|
17
|
-
"@synsci/openscience-windows-x64-baseline": "2.0.
|
|
18
|
-
"@synsci/openscience-linux-x64": "2.0.
|
|
19
|
-
"@synsci/openscience-darwin-x64": "2.0.
|
|
20
|
-
"@synsci/openscience-linux-x64-baseline-musl": "2.0.
|
|
21
|
-
"@synsci/openscience-linux-arm64": "2.0.
|
|
22
|
-
"@synsci/openscience-linux-arm64-musl": "2.0.
|
|
23
|
-
"@synsci/openscience-linux-x64-musl": "2.0.
|
|
24
|
-
"@synsci/openscience-linux-x64-baseline": "2.0.
|
|
25
|
-
"@synsci/openscience-darwin-arm64": "2.0.
|
|
26
|
-
"@synsci/openscience-darwin-x64-baseline": "2.0.
|
|
16
|
+
"@synsci/openscience-windows-x64": "2.0.144",
|
|
17
|
+
"@synsci/openscience-windows-x64-baseline": "2.0.144",
|
|
18
|
+
"@synsci/openscience-linux-x64": "2.0.144",
|
|
19
|
+
"@synsci/openscience-darwin-x64": "2.0.144",
|
|
20
|
+
"@synsci/openscience-linux-x64-baseline-musl": "2.0.144",
|
|
21
|
+
"@synsci/openscience-linux-arm64": "2.0.144",
|
|
22
|
+
"@synsci/openscience-linux-arm64-musl": "2.0.144",
|
|
23
|
+
"@synsci/openscience-linux-x64-musl": "2.0.144",
|
|
24
|
+
"@synsci/openscience-linux-x64-baseline": "2.0.144",
|
|
25
|
+
"@synsci/openscience-darwin-arm64": "2.0.144",
|
|
26
|
+
"@synsci/openscience-darwin-x64-baseline": "2.0.144"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/postinstall.mjs
CHANGED
|
@@ -91,8 +91,8 @@ function linuxKernelProblem(platform, release = os.release()) {
|
|
|
91
91
|
if (!match) return undefined
|
|
92
92
|
const major = Number(match[1])
|
|
93
93
|
const minor = Number(match[2])
|
|
94
|
-
if (major >
|
|
95
|
-
return `Linux kernel ${release} is unsupported; OpenScience's bundled runtime requires kernel
|
|
94
|
+
if (major > 3 || (major === 3 && minor >= 10)) return undefined
|
|
95
|
+
return `Linux kernel ${release} is unsupported; OpenScience's bundled runtime requires kernel 3.10 or newer`
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
function pageSize(platform) {
|
|
@@ -203,7 +203,10 @@ function main() {
|
|
|
203
203
|
const { platform, arch } = detectPlatformAndArch()
|
|
204
204
|
const kernelProblem = linuxKernelProblem(platform)
|
|
205
205
|
if (kernelProblem) {
|
|
206
|
-
throw new Error(
|
|
206
|
+
throw new Error(
|
|
207
|
+
`${kernelProblem}. Upgrade the host kernel, or run OpenScience on a newer VM. Kernels from 3.10 to 5.5 run ` +
|
|
208
|
+
`the bundled runtime with graceful degradation of newer syscalls; 5.6 or newer is recommended.`,
|
|
209
|
+
)
|
|
207
210
|
}
|
|
208
211
|
const pageSizeProblem = linuxArm64PageSizeProblem(platform, arch, pageSize(platform))
|
|
209
212
|
if (pageSizeProblem) {
|