]> git.openstreetmap.org Git - chef.git/commitdiff
Install the pkg-config gem
authorTom Hughes <tom@compton.nu>
Sat, 30 Jun 2018 15:04:55 +0000 (16:04 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 30 Jun 2018 15:04:55 +0000 (16:04 +0100)
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.

cookbooks/web/resources/rails_port.rb

index 44c42470c20d7443b3ef90654e707b3d4aad7cc7..70c334e1ea232febb4fc4bf0a93146ebb9e94c5a 100644 (file)
@@ -107,6 +107,11 @@ action :create do
     options "--format-executable"
   end
 
     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
   declare_resource :directory, rails_directory do
     owner new_resource.user
     group new_resource.group