Prebuilt libvips v8.10.6 binaries work with musl 1.1.x and 1.2.x

This commit is contained in:
Lovell Fuller 2021-03-08 16:15:47 +00:00
parent d9af897595
commit 4d2784c10c
3 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,8 @@ jobs:
container: node:12-alpine3.11 container: node:12-alpine3.11
- os: ubuntu-20.04 - os: ubuntu-20.04
container: node:14-alpine3.11 container: node:14-alpine3.11
- os: ubuntu-20.04
container: node:14-alpine3.13
- os: ubuntu-20.04 - os: ubuntu-20.04
container: node:15-alpine3.11 container: node:15-alpine3.11
- os: macos-10.15 - os: macos-10.15

View File

@ -18,7 +18,7 @@ Ready-compiled sharp and libvips binaries are provided for use with
Node.js v10+ on the most common platforms: Node.js v10+ on the most common platforms:
* macOS x64 (>= 10.13) * macOS x64 (>= 10.13)
* Linux x64 (glibc >= 2.17, musl >=1.1.24 <1.2.0) * Linux x64 (glibc >= 2.17, musl >= 1.1.24)
* Linux ARM64 (glibc >= 2.29) * Linux ARM64 (glibc >= 2.29)
* Linux ARM64 (musl >= 1.1.24) * Linux ARM64 (musl >= 1.1.24)
* Windows x64 * Windows x64

View File

@ -101,7 +101,7 @@ try {
} }
} }
if (detectLibc.family === detectLibc.MUSL && detectLibc.version) { if (detectLibc.family === detectLibc.MUSL && detectLibc.version) {
if (!semver.satisfies(detectLibc.version, '>=1.1.24 <1.2.0')) { if (semver.lt(detectLibc.version, '1.1.24')) {
throw new Error(`Use with musl ${detectLibc.version} requires manual installation of libvips >= ${minimumLibvipsVersion}`); throw new Error(`Use with musl ${detectLibc.version} requires manual installation of libvips >= ${minimumLibvipsVersion}`);
} }
} }