Skip to content

Vagrant 2.2.17 upgrade from Ruby 2.6.7 to 3.0.1 broke vagrant-libvirt #12445

@rgl

Description

@rgl

Vagrant 2.2.17 upgraded Ruby 2.6.7 to 3.0.1 and this brake the vagrant-libvirt provider because it depends on the libvirt-ruby, which has a native extension, which now fails to build.

Does it make sense that the Vagrant release process would also build/smoke-test popular providers before making a release?

Or/and maybe coordinate the upgrades with those authors?

For reference, this is the last bit of the build failure:

checking for libvirt/libvirt-lxc.h... yes
checking for virDomainLxcOpenNamespace() in -lvirt-lxc... yes
checking for virDomainLxcOpenNamespace() in libvirt/libvirt-lxc.h... yes
checking for virDomainLxcEnterNamespace() in libvirt/libvirt-lxc.h... yes
checking for virDomainLxcEnterSecurityLabel() in libvirt/libvirt-lxc.h... yes
creating extconf.h
creating Makefile

current directory: /home/rgl/.vagrant.d/gems/3.0.1/gems/ruby-libvirt-0.7.1/ext/libvirt
make DESTDIR\= clean

current directory: /home/rgl/.vagrant.d/gems/3.0.1/gems/ruby-libvirt-0.7.1/ext/libvirt
make DESTDIR\=
compiling _libvirt.c
compiling common.c
common.c:27:10: fatal error: st.h: No such file or directory
   27 | #include <st.h>
      |          ^~~~~~
compilation terminated.
make: *** [Makefile:245: common.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/rgl/.vagrant.d/gems/3.0.1/gems/ruby-libvirt-0.7.1 for inspection.
Results logged to /home/rgl/.vagrant.d/gems/3.0.1/extensions/x86_64-linux/3.0.0/ruby-libvirt-0.7.1/gem_make.out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions