diff --git a/node.c b/node.c index ef320ee..74771a8 100644 --- a/node.c +++ b/node.c @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) // if we want default version and not using update-alternatives if (version == default_version) { - return execDefault(argv); + return libalts_exec_default(argv); } #endif diff --git a/nodejs-common.changes b/nodejs-common.changes index b22e606..c58ec45 100644 --- a/nodejs-common.changes +++ b/nodejs-common.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 10 10:27:58 UTC 2021 - Adam Majer + +- Use libalternatives on TW by default + ------------------------------------------------------------------- Mon May 31 16:32:18 UTC 2021 - Adam Majer diff --git a/nodejs-common.spec b/nodejs-common.spec index dc755a9..467558c 100644 --- a/nodejs-common.spec +++ b/nodejs-common.spec @@ -28,7 +28,11 @@ %define NODEJS_LTS 16 %define NODEJS_CURRENT 16 +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else %bcond_with libalternatives +%endif # SLE-12 variants %if 0%{?suse_version} < 1500