1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
Author: Pino Toscano <pino@debian.org>
Description: Use "node" as executable for nodejs
The upstream code has a logic to use "nodejs" as binary on Debian-based
systems, based on CTTE #614907. In 2017, CTTE #862051 repeals the previous
decision, allowing "node" again. Hence, unconditionally use it.
Last-Update: 2018-03-24
Forwarded: not-needed (at least for now)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,13 +27,7 @@ set(KF5_DEP_VERSION "5.44.0") # handled
find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS CoreAddons I18n Config)
-# Debian is a special snow flake and uses nodejs as binary name
-# https://lists.debian.org/debian-devel-announce/2012/07/msg00002.html
-if(EXISTS "/etc/debian_version") # is debian system?
- set(NODEJS_BINARY "nodejs" CACHE PATH "The binary name for the nodejs interpreter")
-else() # sane system
- set(NODEJS_BINARY "node" CACHE PATH "The binary name for the nodejs interpreter")
-endif()
+set(NODEJS_BINARY "node" CACHE PATH "The binary name for the nodejs interpreter")
ecm_setup_version(${KF5_VERSION} VARIABLE_PREFIX PURPOSE
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/purpose_version.h"
|