ark
ark copied to clipboard
install_with_make skipping due to action nothing
I am trying to install ruby from source. The source files are extracting to the /usr/local/ruby-2.1.6 directory but the remaining steps are skipping due to action:nothing.
ark "ruby" do
url 'ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.6.tar.gz'
version '2.1.6'
action :install_with_make
end
Output
Recipe: ark-test::default
ark[ruby] action install_with_make
* directory[/usr/local/ruby-2.1.6] action create (up to date)
* remote_file[/tmp/kitchen/cache/ruby-2.1.6.tar.gz] action create (up to date)
* execute[unpack /tmp/kitchen/cache/ruby-2.1.6.tar.gz] action nothing (skipped due to action :nothing)
* execute[set owner on /usr/local/ruby-2.1.6] action nothing (skipped due to action :nothing)
* execute[autogen /usr/local/ruby-2.1.6] action nothing (skipped due to action :nothing)
* execute[configure /usr/local/ruby-2.1.6] action nothing (skipped due to action :nothing)
* execute[make /usr/local/ruby-2.1.6] action nothing (skipped due to action :nothing)
* execute[make install /usr/local/ruby-2.1.6] action nothing (skipped due to action :nothing)
(up to date)
Please help me on this
dear God I thought it was just me, My behavior is different than yours, It runs through first item in action []. but doesn't fulfill second.
ark "#{name}" do
url "#{node['s3_pkg_url']}/#{url}"
version "#{version}"
checksum "#{checksum}"
prefix_root "#{node['app_user_home']}/py_packages"
owner "#{node['app_user']}"
action [:setup_py_build, :setup_py_install]
end
==> default: - execute python setup.py build
==> default:
==> default:
==> default:
==> default:
==> default:
==> default:
==> default: * ark[ceODBC] action setup_py_install
==> default:
==> default: * directory[/home/usr/py_packages/ceODBC-2.0.1] action create
==> default: (up to date)
==> default:
==> default: * remote_file[/var/chef/cache/ceODBC-2.0.1.tar.gz] action create
==> default: (up to date)
==> default:
==> default: * execute[unpack /var/chef/cache/ceODBC-2.0.1.tar.gz] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: * execute[set owner on /home/usr/py_packages/ceODBC-2.0.1] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: * execute[python setup.py install /home/usr/py_packages/ceODBC-2.0.1] action nothing
==> default: (skipped due to action :nothing)
another day another dollar.
action [:configure, :install_with_make]
==> default: - execute ./configure
==> default:
==> default: * ark[python3] action install_with_make
==> default:
==> default: * directory[/home/usr/python3-3.4.4] action create
==> default: (up to date)
==> default:
==> default: * remote_file[/var/chef/cache/python3-3.4.4.tgz] action create
==> default: (up to date)
==> default:
==> default: * execute[unpack /var/chef/cache/python3-3.4.4.tgz] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: * execute[set owner on /home/usr/python3-3.4.4] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: * execute[autogen /home/usr/python3-3.4.4] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: * execute[configure /home/usr/python3-3.4.4] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: * execute[make /home/usr/python3-3.4.4] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: * execute[make install /home/usr/python3-3.4.4] action nothing
==> default: (skipped due to action :nothing)
==> default:
==> default: (up to date)
Have the same issue. Does install action get notified later? also how should i enforce the running order if there are dependencies?
After reading provider/default.rb, it turns out when having [action :configure :install_with_make], install_with_make action does nothing because the configure action already download and unpack resource, which will not be running again in the install_with_make action and therefore will not notifies make install steps later.
Another interesting thing is that despite stated in README.md: "action install_with_make It does not run the configure step", it actually does. So [action :configure :install_with_make] should be [action :install_with_make]
I had the same problem after trying the following example straight out of the readme
You can also pass multiple actions to ark and supply the file extension in case the file extension can not be determined by the URL:
ark "test_autogen" do
url 'https://github.com/zeromq/libzmq/tarball/master'
extension "tar.gz"
action [ :configure, :install_with_make ]
end