mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Add gentoo support to glibc detection (#760)
This commit is contained in:
parent
fcf853712c
commit
567e3dd258
@ -73,7 +73,7 @@ module.exports.download_vips = function () {
|
|||||||
// Ensure glibc >= 2.15
|
// Ensure glibc >= 2.15
|
||||||
const lddVersion = process.env.LDD_VERSION;
|
const lddVersion = process.env.LDD_VERSION;
|
||||||
if (lddVersion) {
|
if (lddVersion) {
|
||||||
if (/(glibc|gnu libc)/i.test(lddVersion)) {
|
if (/(glibc|gnu libc|gentoo)/i.test(lddVersion)) {
|
||||||
const glibcVersion = lddVersion ? lddVersion.split(/\n/)[0].split(' ').slice(-1)[0].trim() : '';
|
const glibcVersion = lddVersion ? lddVersion.split(/\n/)[0].split(' ').slice(-1)[0].trim() : '';
|
||||||
if (glibcVersion && semver.lt(glibcVersion + '.0', '2.13.0')) {
|
if (glibcVersion && semver.lt(glibcVersion + '.0', '2.13.0')) {
|
||||||
error('glibc version ' + glibcVersion + ' requires manual installation - please see http://sharp.dimens.io/en/stable/install/');
|
error('glibc version ' + glibcVersion + ' requires manual installation - please see http://sharp.dimens.io/en/stable/install/');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user