LP#1683388:Install newer NodeJS binary for Ubuntu Trusty and Debian Wheezy
authorBen Shum <ben@evergreener.net>
Fri, 14 Apr 2017 22:33:31 +0000 (18:33 -0400)
committerKathy Lussier <klussier@masslnc.org>
Mon, 17 Apr 2017 15:23:49 +0000 (11:23 -0400)
We need newer stuff!

Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/extras/Makefile.install
Open-ILS/src/extras/install/Makefile.common
Open-ILS/src/extras/install/Makefile.ubuntu-trusty

index 55f7635..311a2fb 100644 (file)
@@ -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
index 20bdb07..0cc35b1 100644 (file)
@@ -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
 
index 385c342..def3fb6 100644 (file)
@@ -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:
 # package, use the packaged version 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
 
 install_translator: install_developer
        make -f $(DIR)/Makefile.debian DEBS="$(TRANSLATOR_DEBS)"