nodejs22/nodejs22_abi.req
Jan Staněk bb7c0670b2
Use stream-specific ABI dependency generator
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>
2025-02-25 11:52:21 +01:00

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')"