From 316795e835b0af79694d65b2ebe8f99de05ec6ca6be88683b46736ae56e30dac Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Thu, 10 Jun 2021 10:30:57 +0000 Subject: [PATCH] - Use libalternatives on TW by default OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=44 --- node.c | 2 +- nodejs-common.changes | 5 +++++ nodejs-common.spec | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) 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