-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mattermost: 4.8.0 -> 4.9.1 #39876
mattermost: 4.8.0 -> 4.9.1 #39876
Conversation
Success on x86_64-linux (full log) Attempted: mattermost Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: mattermost Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Attempted: mattermost Partial log (click to expand)
|
Darwin doesn't build because it wants patchelf, I wonder if the interpreter was working correctly on darwin when it used to build successfully #37200 (comment) |
postInstall = '' | ||
ln -s $bin/bin/platform $bin/bin/mattermost-platform | ||
postFixup = '' | ||
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $bin/bin/platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this necessary?
$ /nix/store/6b0jynb0szqj81cxsl8y1ivhswxw3wn9-mattermost-4.9.1-bin/bin/mattermost-platform --help
works for me
$ ldd /nix/store/6b0jynb0szqj81cxsl8y1ivhswxw3wn9-mattermost-4.9.1-bin/bin/mattermost-platform
linux-vdso.so.1 (0x00007f866dfe6000)
libpthread.so.0 => /nix/store/27x7pinqdsl9f3rpbm8bsszd9fhwq266-glibc-2.27/lib/libpthread.so.0 (0x00007f866dba5000)
libc.so.6 => /nix/store/27x7pinqdsl9f3rpbm8bsszd9fhwq266-glibc-2.27/lib/libc.so.6 (0x00007f866d7f1000)
/lib64/ld-linux-x86-64.so.2 => /nix/store/27x7pinqdsl9f3rpbm8bsszd9fhwq266-glibc-2.27/lib64/ld-linux-x86-64.so.2 (0x00007f866ddc4000)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm glad it works for you, but it doesn't for me:
$ ldd /nix/store/ph0pc99dkpsiz72lwcz173icylzvphkg-mattermost-4.9.1-bin/bin/mattermost-platform
linux-vdso.so.1 => (0x00007fff81928000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6c5f3fd000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6c5f033000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6c5f61a000)
I assume you are building it on NixOS? I'm building it on Ubuntu 16.04 with nix-build version 1.11.13.
@Mic92 Removing the postFixup phase did not work for me on NixOS either:
ldd fails to run on the binary with "No such file or directory". With the postFixup phase:
|
I tried deleting the postFixup-removed instantiation and rebuilding it with |
I had for reasons a symlink in /lib64 for the glibc link loader. That's why I was confused it worked on my machine. The problem is that the |
Ah, so I thought my changes were building the platform from the src, but it must have just been getting it from the webApp instead. I'll close this and work on fixing it. There's also a version 4.9.2 now anyway. |
They changed the location of the main command, and it looks like you can build it directly from the top-level, so that simplifies things. Also, they changed how versions are displayed, so we don't need to pass the version number anymore. Unfortunately, it looks like I had to add back in the thing setting the interpreter of the output binary. I haven't had the time to track down why that is necessary again, maybe @Mic92 would know.