From 0cd3fed400c7b69acd2d9af9afb6ac83a733c11c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 10 Mar 2023 10:09:57 -0500 Subject: [PATCH] The Node.js ABI version is now represented by the NODE_MODULE_VERSION Signed-off-by: Stephen Gallagher --- nodejs_abi.req | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/nodejs_abi.req b/nodejs_abi.req index afc6f3d..a33a7b5 100755 --- a/nodejs_abi.req +++ b/nodejs_abi.req @@ -1,14 +1,8 @@ #!/bin/bash -# Get the version from the default Node.js -full_version=$(/usr/bin/node --version) - -# Trim off the leading 'v' -full_version=${full_version:1} - -# Get the different version components -split_version=(${full_version//\./ }) +# Get the ABI version +abi_version=$(/usr/bin/node -p process.versions.modules) # Write out the Virtual Requires -echo "nodejs(abi${split_version[0]}) >= ${split_version[0]}.${split_version[1]}" +echo "nodejs(abi) = ${abi_version}"