Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install_with_make skipping due to action nothing #137

Open
svr7kumar opened this issue Feb 21, 2016 · 5 comments
Open

install_with_make skipping due to action nothing #137

svr7kumar opened this issue Feb 21, 2016 · 5 comments

Comments

@svr7kumar
Copy link

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

@kmassada
Copy link

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
Copy link

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)

@PSDhao
Copy link

PSDhao commented Apr 12, 2016

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

@PSDhao
Copy link

PSDhao commented Apr 13, 2016

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]

@delta440
Copy link

delta440 commented Nov 6, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants