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
vagrant: 1.9.5 -> 2.0.0 #30017
vagrant: 1.9.5 -> 2.0.0 #30017
Conversation
Upgrade to latest version of Vagrant. After installation, the following messages appear whenever vagrant runs. These were already present in previous versions, I'm not sure if/what to do about them: Ignoring ffi-1.9.18 because its extensions are not built. Try: gem pristine ffi --version 1.9.18 Ignoring unf_ext-0.0.7.4 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.4 Ignoring wdm-0.1.1 because its extensions are not built. Try: gem pristine wdm --version 0.1.1
I don't see those message with vagrant 1.9.5 on NixOS, but I do with 2.0.0. |
Is it possible that those extensions have shared libraries, which are needed to be patched with patchelf? |
It looks like ruby 2.3 is now required as the gems are built against |
Now the warning messages are gone. |
Thanks for merging - unfortunately I still see the warnings. I am testing this on Darwin (macOS 10.12.6). There seems to be some problem with linking some of the libraries. For example, the symlink created for libffi is broken:
Library files in Darwin have extension
However, simply changing the Any ideas? I'm afraid I'm still too inexperienced at writing Nix packages to be able to debug this. |
For reference, I saw some similar messages being reported in #27293. |
Yeah, this symlink is non-sense on darwin because darwin does use a different library extension. I think the root cause on os x is a different one. |
@Mic92 I realized that if we just use the libraries and binaries included with Vagrant instead of replacing them with Nix's (i.e. comment out https://github.com/zzamboni/nixpkgs/blob/master/pkgs/development/tools/vagrant/default.nix#L69-L120), then all the errors go away. Is there a good reason not to do this? Since Vagrant is distributed with all the tools it needs, as long as they are contained within its own installation and used only by itself, why not leave them like this? |
@zzamboni you could probably make this assumption on os x to get it working. On NixOS we have to patch libraries anyway, so replacing seems the better choice since we get a control regarding security updates and a smaller package. |
Upgrade to latest version of Vagrant.
After installation, the following messages appear whenever vagrant runs.
These were already present in previous versions, I'm not sure if/what
to do about them:
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)