Sha256: 19f09fe7b34eb85c17ae9d43ed6855741f8bc1c5563d2f701a4bc22aa32dd948

Contents?: true

Size: 804 Bytes

Versions: 5

Compression:

Stored size: 804 Bytes

Contents

#
# Here, we only want to reduce the verbosity of "warning" 
# outputs during compilation of node.js.
#

bash "compile node.js" do
  cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
  code <<-EOH
    # original:
    #./configure --prefix=#{node['nodejs']['dir']} && \
    #make
    # fixed:
    ./configure --prefix=#{node['nodejs']['dir']} && \
    make | grep -v "warning:"
  EOH
  creates "/usr/local/src/node-v#{node['nodejs']['version']}/node"
end

execute "nodejs make install" do
  # original:
  #command "make install"
  # fixed:
  command "make install | grep -v 'warning:'"
  cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
  not_if {File.exists?("#{node['nodejs']['dir']}/bin/node") && `#{node['nodejs']['dir']}/bin/node --version`.chomp == "v#{node['nodejs']['version']}" }
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cloud-toaster-1.1.6 chef/cookbooks/toaster/recipes/post__cube__default.rb
cloud-toaster-1.1.5 chef/cookbooks/toaster/recipes/post__cube__default.rb
cloud-toaster-1.1.4 chef/cookbooks/toaster/recipes/post__cube__default.rb
cloud-toaster-1.1.3 chef/cookbooks/toaster/recipes/post__cube__default.rb
cloud-toaster-1.1.2 chef/cookbooks/toaster/recipes/post__cube__default.rb