Description of problem: the currently available version of nodejs is two major releases behind the latest stable release (4.x vs 6.x). The tripleo-ui project depends on new features introduced in nodejs for successful builds. Most notably, newer versions of nodejs support es6 syntax; we currently can't use those features because the build wouldn't succeed. Affected versions: openstack-tripleo-ui 7.x, Pike, or trunk/master
EPEL7 has 6.10.2 I'm rebuilding it in RDO Common tag
Scratch build worked: https://cbs.centos.org/koji/taskinfo?taskID=176444 x86_64 only with workaround for missing %{epel} macro: https://github.com/rdo-common/nodejs/commits/common-rdo-6.x TBD if we should include "epel 1" in openstack-macros
> TBD if we should include "epel 1" in openstack-macros I tried to import epel-rpm-macros (which pulls python-rpm-macros) but adding it as BuildRequires: is not enough, we'd need to include it in the initial buildroot for RDO. Instead, I went with small RDO Common fork on top of epel7 branch: https://github.com/rdo-common/nodejs/commits/common-rdo-6.x https://github.com/rdo-common/nodejs/commit/220d8ca5723ddd103b74037005dee46c2bfe7816 Candidate build: https://cbs.centos.org/koji/buildinfo?buildID=16990 Honza, please test it if it is safe to tag for all RDO releases, Newton to Pike.
I downloaded the necessary RPMs but I wasn't able to install them. The nodejs and npm RPMs seem to depend on each other. $ sudo rpm -i nodejs.rpm error: Failed dependencies: npm = 1:3.10.10-1.6.10.2.1.el7 is needed by nodejs-1:6.10.2-1.el7.x86_64 $ sudo rpm -i npm.rpm error: Failed dependencies: nodejs = 1:6.10.2-1.el7 is needed by npm-1:3.10.10-1.6.10.2.1.el7.aarch64
I just figured out that you can use $ sudo rpm -i nodejs.rpm npm.rpm And that works. So, I installed the RPMs, and managed to build the tripleo-ui project without any issues. I think the build works well.
I forgot to mention, easiest way to install a build from CBS Koji is: # cbs download-build -a x86_64 -a noarch nodejs-6.10.2-1.el7 # yum install *.rpm > And that works. So, I installed the RPMs, and managed to build the > tripleo-ui project without any issues. I think the build works well. Does is also work with Newton and Ocata?
For tripleo-ui, the answer is yes. I'm not sure if any other projects are affected.
tagged cloud7-openstack-common-testing
Closing as fixed long ago and mentioned releases are already EOL.