From: Tom Hughes Date: Sat, 30 Jun 2018 15:04:55 +0000 (+0100) Subject: Install the pkg-config gem X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/935f1ea921ce5fef02f0e6964f4fabf50a10db7f Install the pkg-config gem A combination of silliness in nokogiri (adding -Wextra) and in ruby's mkmf (enabling -Werror for test links) means that the pkg_config function provided by mkmf doesn't work when installing nokogiri using system libraries. --- diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 44c42470c..70c334e1e 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -107,6 +107,11 @@ action :create do options "--format-executable" end + gem_package "bundler#{new_resource.ruby}" do + package_name "pkg-config" + gem_binary "gem#{new_resource.ruby}" + end + declare_resource :directory, rails_directory do owner new_resource.user group new_resource.group