Skip to content

consul-ui: fix build - #41268

Merged
7c6f434c merged 1 commit into
NixOS:masterfrom
jbboehr:consul-ui-fix-master-3
May 31, 2018
Merged

7c6f434c merged 1 commit into
NixOS:masterfrom
jbboehr:consul-ui-fix-master-3

Conversation

@jbboehr

@jbboehr jbboehr commented May 30, 2018

Copy link
Copy Markdown
Contributor
Motivation for this change

consul-ui is currently failing to build in 18.03 and master (#41238).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

My previous PR (#41239) was against the 18.03 branch because the fix did not work in master. This newer version works in both master and 18.03.

Update the dependencies used for building consul-ui. therubyracer is no longer required and fails to build. Instead, a nodejs binary is required to build the assets. Patch out unnecessary executions of bundle which can cause failures and also prevents need for patching the Gemfile.lock in the consul source, based on suggestion by @nh2.

Closes #41238

Update the dependencies used for building consul-ui. therubyracer
is no longer required and fails to build. Instead, a nodejs
binary is required to build the assets. Patch out unnecessary
executions of `bundle` which can cause failures.
@jbboehr

jbboehr commented May 30, 2018

Copy link
Copy Markdown
Contributor Author

@7c6f434c

Copy link
Copy Markdown
Member

@GrahamcOfBorg eval

@7c6f434c

Copy link
Copy Markdown
Member

A direct reference stopped on meta.broken before going into loop, so I thought there is no need to double-check… Fixed, sorry

@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 30, 2018
@7c6f434c

Copy link
Copy Markdown
Member

@GrahamcOfBorg build consul-ui

@GrahamcOfBorg

Copy link
Copy Markdown

Success on x86_64-linux (full log)

Attempted: consul-ui

Partial log (click to expand)

  adding: static/apple-touch-icon-60x60.png (stored 0%)
  adding: static/apple-touch-icon-144x144.png (deflated 0%)
  adding: static/mstile-70x70.png (deflated 0%)
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/2d6l2936cr0xddv8y9lgy175dksgwb2v-consul-ui-0.9.3
strip is /nix/store/92d2ifxcni4n3zx9s8wnkcjlvnx5ajlc-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/2d6l2936cr0xddv8y9lgy175dksgwb2v-consul-ui-0.9.3
checking for references to /build in /nix/store/2d6l2936cr0xddv8y9lgy175dksgwb2v-consul-ui-0.9.3...
/nix/store/2d6l2936cr0xddv8y9lgy175dksgwb2v-consul-ui-0.9.3

@GrahamcOfBorg

Copy link
Copy Markdown

Success on x86_64-darwin (full log)

Attempted: consul-ui

Partial log (click to expand)

  adding: static/mstile-150x150.png (deflated 0%)
  adding: static/mstile-310x150.png (deflated 0%)
  adding: static/mstile-310x310.png (deflated 0%)
  adding: static/mstile-70x70.png (deflated 0%)
  adding: static/safari-pinned-tab.svg (deflated 52%)
installing
post-installation fixup
strip is /nix/store/r5mcn9vqq80v5pfqp45d7290cis7dwp4-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/5xhldkd5862y83s8miv3f71z24b0lsfg-consul-ui-0.9.3
/nix/store/5xhldkd5862y83s8miv3f71z24b0lsfg-consul-ui-0.9.3

@GrahamcOfBorg

Copy link
Copy Markdown

Success on aarch64-linux (full log)

Attempted: consul-ui

Partial log (click to expand)

  adding: static/android-chrome-192x192.png (deflated 1%)
  adding: static/base.css (deflated 89%)
  adding: static/application.min.js (deflated 76%)
installing
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/2jkljz1idj7vs7irwhl9c51a5gn8bp15-consul-ui-0.9.3
strip is /nix/store/8yfik687kfccisxnad42j19lfb7ij9b4-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/2jkljz1idj7vs7irwhl9c51a5gn8bp15-consul-ui-0.9.3
checking for references to /build in /nix/store/2jkljz1idj7vs7irwhl9c51a5gn8bp15-consul-ui-0.9.3...
/nix/store/2jkljz1idj7vs7irwhl9c51a5gn8bp15-consul-ui-0.9.3

@7c6f434c
7c6f434c merged commit 5737e1f into NixOS:master May 31, 2018
@jbboehr jbboehr mentioned this pull request Aug 28, 2018
1 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

consul-ui fails to build

3 participants