FS#54246 - [vagrant] Version 1.9.5 cannot install plugins anymore
Attached to Project:
Community Packages
Opened by Julien M'Poy (groovytron) - Wednesday, 31 May 2017, 21:27 GMT
Last edited by Jonathan Steel (jsteel) - Saturday, 15 July 2017, 20:24 GMT
Opened by Julien M'Poy (groovytron) - Wednesday, 31 May 2017, 21:27 GMT
Last edited by Jonathan Steel (jsteel) - Saturday, 15 July 2017, 20:24 GMT
|
Details
Vagrant 1.9.5 actually can't install plugins.
To reproduce the problem: 1. Simply install the package or upgrade it with "pacman -Syu". 2. Try to install a plugin with "vagrant plugin install <plugin-name>". Trying to downgrade with AUR's downgrader package doesn't fix the problem. An issue has been opened on GitHub and details such as debug output can be found here:https://github.com/mitchellh/vagrant/issues/8635 Thank you for you help. |
This task depends upon
Please try vagrant-1.9.7-1 and vagrant-substrate-718.205e64c-1 and report any issues here.
"gcc -E -I/opt/vagrant/embedded/include/ruby-2.3.0/x86_64-linux -I/opt/vagrant/embedded/include/ruby-2.3.0/ruby/backward -I/opt/vagrant/embedded/include/ruby-2.3.0 -I. -I/build/vagrant-substrate/src/vagrant-installers/opt/vagrant/embedded/include/libxml2 -I/build/vagrant-substrate/src/vagrant-installers/opt/vagrant/embedded/include -I/build/vagrant-substrate/src/vagrant-installers/opt/vagrant/embedded/include/libxml2 -I/build/vagrant-substrate/src/vagrant-installers/opt/vagrant/embedded/include -I/build/vagrant-substrate/src/vagrant-installers/opt/vagrant/embedded/include/libxml2 -D_FORTIFY_SOURCE=2 -I/build/vagrant-substrate/src/vagrant-installers/opt/vagrant/embedded/include -O2 -I/build/vagrant-substrate/src/vagrant-installers/opt/vagrant/embedded/include -I/build/vagrant-substrate/src/vagrant-installers/vagrant-substrate/cache/ruby-2.3.4/include -fPIC -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c -o conftest.i"
conftest.c:3:10: fatal error: libxml/xmlversion.h: File o directory non esistente
As you can see there are a lot of include paths prefixed with "/build/vagrant-substrate/src/vagrant-installers/" (the chroot directory).
These issues are a consequence of the incorrect pkg-config files in /opt/vagrant/embedded/lib/pkgconfig.
I was able to build the plugin successfully after patching the pkg-config files with:
sudo sed 's@/build/vagrant-substrate/src/vagrant-installers/@/@g' -i /opt/vagrant/embedded/lib/pkgconfig/*.pc