From: Ben Shum Date: Fri, 14 Apr 2017 22:33:31 +0000 (-0400) Subject: LP#1683388:Install newer NodeJS binary for Ubuntu Trusty and Debian Wheezy X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=317b3c85f08ee658bc7423088079e647f28d616b;p=contrib%2FConifer.git LP#1683388:Install newer NodeJS binary for Ubuntu Trusty and Debian Wheezy We need newer stuff! Signed-off-by: Ben Shum Signed-off-by: Kathy Lussier Conflicts: Open-ILS/src/extras/install/Makefile.ubuntu-trusty Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/extras/Makefile.install b/Open-ILS/src/extras/Makefile.install index 55f7635ee9..311a2fb607 100644 --- a/Open-ILS/src/extras/Makefile.install +++ b/Open-ILS/src/extras/Makefile.install @@ -36,9 +36,12 @@ export LIBDBI=libdbi-0.8.3 export LIBDBI_DRIVERS=libdbi-drivers-0.8.3 export LIBDBI_HOST=http://open-ils.org/~denials/evergreen -# some OSes require a source install of NodeJS. -# NOTE: Deprecate me with wheezy -export NODEJS_SOURCE_VERSION=v0.10.28 +# some OSes require a newer version of NodeJS +# NOTE: Using the LTS binaries for NodeJS +export NODEJS_VERSION=v6.10.1 +export NODEJS_BINDIR=node-$(NODEJS_VERSION)-linux-x64 +export NODEJS_TARBIN=$(NODEJS_BINDIR).tar.xz +export NODEJS_BINARY="https://nodejs.org/dist/$(NODEJS_VERSION)/$(NODEJS_TARBIN)" # As this Makefile is designed to be used by a make process running as # root, this will avoid problems on some systems when tar extracts diff --git a/Open-ILS/src/extras/install/Makefile.common b/Open-ILS/src/extras/install/Makefile.common index 81dd53c7d1..80f7ba056c 100644 --- a/Open-ILS/src/extras/install/Makefile.common +++ b/Open-ILS/src/extras/install/Makefile.common @@ -28,12 +28,10 @@ install_libdbi: --with-pgsql --with-pgsql-incdir=$$(pg_config --includedir) \ --with-pgsql-libdir=$$(pg_config --libdir) && make all install -# NOTE: Deprecate me with wheezy +# NOTE: Use the NodeJS Binary install_nodejs_from_source: - git clone https://github.com/joyent/node.git - cd node; \ - git checkout -b $(NODEJS_SOURCE_VERSION) $(NODEJS_SOURCE_VERSION); \ - ./configure && make && make install + wget -N $(NODEJS_BINARY) + tar -C /usr/local --strip-components 1 -xJf $(NODEJS_TARBIN) npm update npm install -g grunt-cli npm install -g bower diff --git a/Open-ILS/src/extras/install/Makefile.ubuntu-trusty b/Open-ILS/src/extras/install/Makefile.ubuntu-trusty index bcddd7e58e..f977825537 100644 --- a/Open-ILS/src/extras/install/Makefile.ubuntu-trusty +++ b/Open-ILS/src/extras/install/Makefile.ubuntu-trusty @@ -117,9 +117,7 @@ PGSQL_SERVER_DEBS_94 = \ DEVELOPER_DEBS = \ automake \ autoconf \ - libtool \ - nodejs-legacy \ - npm + libtool PACKAGER_DEBS = \ asciidoc \ @@ -156,8 +154,7 @@ install_postgres_server: # packages, use the packaged versions instead. install_developer: make -f $(DIR)/Makefile.debian DEBS="$(DEVELOPER_DEBS)" - npm update - npm install -g grunt-cli + make -f $(DIR)/Makefile.common install_nodejs_from_source npm install -g bower install_translator: install_developer