ark icon indicating copy to clipboard operation
ark copied to clipboard

install_with_make skipping due to action nothing

Open svr7kumar opened this issue 9 years ago • 5 comments

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

svr7kumar avatar Feb 21 '16 17:02 svr7kumar

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)

kmassada avatar Feb 24 '16 01:02 kmassada

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)

kmassada avatar Feb 25 '16 21:02 kmassada

Have the same issue. Does install action get notified later? also how should i enforce the running order if there are dependencies?

PSDhao avatar Apr 12 '16 17:04 PSDhao

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]

PSDhao avatar Apr 13 '16 19:04 PSDhao

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

delta440 avatar Nov 06 '16 09:11 delta440