From 48e3ea5e29b98d6e9a5ac842782053e9941d5d00 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 26 May 2022 22:58:24 +0100 Subject: [PATCH] Ensure brew-installed vips can be detected #3239 --- docs/changelog.md | 5 +++++ lib/libvips.js | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 449c68b7e..aa23cb510 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -4,6 +4,11 @@ Requires libvips v8.12.2 +### v0.30.6 - TBD + +* Ensure brew-installed `vips` can be detected (regression in 0.30.5). + [#3239](https://github.com/lovell/sharp/issues/3239) + ### v0.30.5 - 23rd May 2022 * Install: pass `PKG_CONFIG_PATH` via env rather than substitution. diff --git a/lib/libvips.js b/lib/libvips.js index 3159a9bc9..b422e74c3 100644 --- a/lib/libvips.js +++ b/lib/libvips.js @@ -68,6 +68,7 @@ const globalLibvipsVersion = function () { const globalLibvipsVersion = spawnSync('pkg-config --modversion vips-cpp', { ...spawnSyncOptions, env: { + ...env, PKG_CONFIG_PATH: pkgConfigPath() } }).stdout;