Until now, the nodejs_abi dependency generator has lived in nodejs-packaging. However, it depends on (an uses only) /usr/bin/node, thus only working and being accurate for the default stream. Moving the generator into a specific stream and modifying it to use the versioned binary should ensure that it is valid for whatever stream is used for compiling the binary extension in question. Related: RHEL-67814 Signed-off-by: Jan Staněk <jstanek@redhat.com>
5 lines
140 B
Bash
5 lines
140 B
Bash
#!/bin/sh
|
|
|
|
# Require ABI version of the current interpreter
|
|
printf 'nodejs(abi) = %s\n' "$(/usr/bin/node-22 -p 'process.versions.modules')"
|