Unable to build UI on non-x86 platforms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Unassigned | ||
maas-ui |
Fix Released
|
Unknown
|
Bug Description
While investigating a build failure on PPC64 I noticed that the UI is unable to be built on non-x86 platforms. This is because the UI build scripts always download x86_64 NodeJS. We haven't run into this before because the build manager builds a source tarball which actually builds the UI. Since all of us use x86_64 machine we don't run into it. Like MAAS the UI should be able to be built on any supported architecture.
I was able to produce this by trying to build MAAS on the PPC64 machine in the CI.
$ make package
rm -rf /home/ubuntu/
mkdir -p /home/ubuntu/
make -C src/maasui build
make[1]: Entering directory '/home/
yarn --cwd src build-all
/home/ubuntu/
make[1]: *** [Makefile:37: src/build] Error 2
make[1]: Leaving directory '/home/
make: *** [Makefile:149: src/maasui/build] Error 2
$ uname -a
Linux PPC64 5.4.0-48-generic #52-Ubuntu SMP Thu Sep 10 11:02:31 UTC 2020 ppc64le ppc64le ppc64le GNU/Linux
$ file /home/ubuntu/
/home/ubuntu/
description: | updated |
summary: |
- Unable to build UI on non-x86 platform + Unable to build UI on non-x86 platforms |
Changed in maas-ui: | |
importance: | Undecided → Unknown |
Changed in maas-ui: | |
status: | New → Fix Released |
Changed in maas: | |
status: | Confirmed → Triaged |
Changed in maas: | |
milestone: | 2.9.0b4 → 2.9.0b7 |
Changed in maas: | |
status: | Triaged → Fix Released |
Hey Lee, it looks like there's a tarball provided for PPC LE:
e.g. https:/ /nodejs. org/dist/ v12.18. 4/node- v12.18. 4-linux- ppc64le. tar.xz /nodejs. org/en/ download/
https:/