Skip to content
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

new ffi release 1.13 breaks cookbook #44

Open
scalp42 opened this issue Jun 3, 2020 · 1 comment
Open

new ffi release 1.13 breaks cookbook #44

scalp42 opened this issue Jun 3, 2020 · 1 comment

Comments

@scalp42
Copy link

scalp42 commented Jun 3, 2020

Hey @tas50

This cookbook relies on https://rubygems.org/gems/ffi-libarchive/versions/1.0.0, which in turns relies on https://rubygems.org/gems/ffi.

Unfortunately, a new release of ffi is out with v1.13.0.

This is now breaking cookbooks as we can't run build_essential resource before somehow due to the gem dependency being in the metadata. It'll complain that it can't natively build ffi 1.13.0.

As the compatibility of this cookbook is restricted to Chef >= 14 (useless with Chef 15), do you know if we could either move the gem dependency to a chef_gem resource (so we can edit_resource and allow whatever custom sauce) or lock the version to the ffi version Chef 14 shipped with (1.12.2)?

Let me know your thoughts, it's a tricky one.

root@default-ubuntu-1804:~# chef-client --version
Chef: 14.15.6
root@default-ubuntu-1804:~# /opt/chef/embedded/bin/gem list | grep -i '^ffi'
ffi (1.12.2)
ffi-yajl (2.3.3)
@scalp42 scalp42 changed the title new ffi releasee 1.13 breaks cookbook new ffi release 1.13 breaks cookbook Jun 3, 2020
@scalp42
Copy link
Author

scalp42 commented Jun 3, 2020

Workaround in kitchen for now:

driver:
  name: vagrant
  provision: true
  vagrantfiles:
    - build_essential.rb

Then add a new Vagrantfile called build_essential.rb (Debian family only here):

Vagrant.configure(2) do |config|
  config.vm.provision "shell", inline: <<-SHELL
     sudo apt update
     sudo apt install -y build-essential
  SHELL
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant