Recently, Node.js changed the way node modules are installed to allow for better parallel functionality and easier unbundling of certain parts of Node.js.
Previously, Node.js was using a symlink, %{_libdir}/node_modules, which pointed to a versioned path, e.g., %{_libdir}/node_modules_22.
This has changed to using a global %{_libdir}/node_modules static shared folder for generic modules and %{_libdir}/node_modules_XX for version-specific modules.
This change is better described in the Fedora change proposal wiki: https://fedoraproject.org/wiki/Changes/NodejsNodeModulesPath.
This also needed to be reflected in nodejs-packaging macros, which forces a rebuild of dependent packages.
cmake 4 dropped compat with cmake < 3.5, which breaks any code
which uses
cmake_minimum_required(VERSION 3.0.0)
Rather than patching the CMakeLists.txt file, or patching the build
system to pass -DCMAKE_POLICY_VERSION_MINIMUM=3.5, set the env var
which gets inherited by any invokatin of cmake.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>