Skip to content
This repository has been archived by the owner on Jul 10, 2022. It is now read-only.

OS X: No such file or directory #11

Closed
hjrnunes opened this issue Aug 15, 2013 · 2 comments
Closed

OS X: No such file or directory #11

hjrnunes opened this issue Aug 15, 2013 · 2 comments

Comments

@hjrnunes
Copy link

When doing

deb-s3 upload --bucket cbox-pkg-repo-test.s3.amazonaws.com cbox-webapp_1.0.5_all.deb --access-key=mykey --secret-key=mysecret

on OSX 10.8 I get:

>> Retrieving existing manifests
>> Examining package file cbox-webapp_1.0.5_all.deb
ar: control.tar.gz: not found in archive
/usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/lib/deb/s3/package.rb:65:in `read': No such file or directory - /var/folders/97/1jdjqycx60xf5vcmc3l2lh740000gn/T/d20130815-37872-fxbt4o/control (Errno::ENOENT)
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/lib/deb/s3/package.rb:65:in `block in extract_control'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/1.9.1/tmpdir.rb:83:in `mktmpdir'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/lib/deb/s3/package.rb:63:in `extract_control'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/lib/deb/s3/package.rb:47:in `parse_file'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/lib/deb/s3/cli.rb:108:in `block in upload'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/lib/deb/s3/cli.rb:106:in `each'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/lib/deb/s3/cli.rb:106:in `upload'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /usr/local/Cellar/ruby/1.9.3-p362/lib/ruby/gems/1.9.1/gems/deb-s3-0.5.1/bin/deb-s3:8:in `<top (required)>'
    from /usr/local/Cellar/ruby/1.9.3-p362/bin/deb-s3:23:in `load'
    from /usr/local/Cellar/ruby/1.9.3-p362/bin/deb-s3:23:in `<main>'

Also, not sure how and if it's related, but the package does contain control.tar.gz (it's built with fpm).

This doesn't seem to happen on Ubuntu 12.04LTS.

@cbarraford
Copy link

i've run into this same issue. Also built the pkg with fpm and running mac os x 10.8.

@tmatilai
Copy link

It seems that (at least some versions of) GNU ar and OS X ar are not compatible.

It is possible to install dpkg from homebrew, but dpkg -f fails too (even if I tried to get GNU tar in the $PATH):

tar: unrecognized option `--warning=no-timestamp'

krobertson added a commit that referenced this issue Mar 4, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants