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 44c4247..70c334e 100644 (file)
@@ -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