From e74fb0138170b0eb331383e616249c358229d9e3 Mon Sep 17 00:00:00 2001 From: Dominic Pelini <111786059+DomPeliniAerospike@users.noreply.github.com> Date: Tue, 16 Jan 2024 10:03:05 -0700 Subject: [PATCH] Change prebuiltBinding.js script to check for GLIBC version rather than openssl version --- scripts/prebuiltBinding.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/prebuiltBinding.js b/scripts/prebuiltBinding.js index 8a7d250b1..c37c76070 100644 --- a/scripts/prebuiltBinding.js +++ b/scripts/prebuiltBinding.js @@ -45,17 +45,16 @@ const rm = util.promisify(fs.rm) rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true }) rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true }) - const output = await exec('ldd --version | awk 'NR==1{print $NF}'') - const version = Number(output) + const output = await exec("ldd --version | awk 'NR==1{print $NF}'") + const version = Number(output.stdout) let openssl if(version < 2.33){ - openssl = 1 + openssl = '1' } else{ - openssl = 3 + openssl = '3' } - console.log(openssl) if (arch === 'x64') { await rename('lib/binding/openssl@' + openssl + '/node-v120-linux-x64', 'lib/binding/node-v120-linux-x64')