fpm-recipes icon indicating copy to clipboard operation
fpm-recipes copied to clipboard

Allow dynamic setting for gzip

Open petems opened this issue 9 years ago • 1 comments

Was testing the haproxy package for OSX, and was having difficulty with the gzip:

/opt/boxen/rbenv/versions/2.0.0-p451/lib/ruby/gems/2.0.0/gems/fpm-cookery-0.25.0/lib/fpm/cookery/utils.rb:12:in `safesystem': 'system(["/bin/gzip", #<FPM::Cookery::Path:/Users/peterso/Projects/capd-fpm-cookery/haproxy/tmp-dest/usr/share/man/man1/haproxy.1>])' failed with error code: 127 (RuntimeError)
    from /Users/peterso/Projects/capd-fpm-cookery/haproxy/recipe.rb:51:in `install'

Darwin has a different gzip path:

$ which gzip
/usr/bin/gzip

So it'd be nice to change this up so it can find the correct gzip! :+1:

petems avatar Dec 03 '14 18:12 petems