joemiller / bunchr

A Ruby/Rake DSL for building and packaging software into omnibus-style packages
86 stars 8 forks source link

Specific FPM version for Suse - how? #3

Open eladroz opened 11 years ago

eladroz commented 11 years ago

Hi, fpm >= 0.4.27 is currently broken for suse (https://github.com/jordansissel/fpm/issues/345) and with 96 open issues on that project, I've got no idea when that's gonna be fixed... didn't go into that hardcore stuff myself yet.

I don't know of any simple, standard way to set gem dependencies by platform. We can either modify https://github.com/sensu/sensu-build/blob/master/build.sh to install fpm in a known-good version just for suse, or modify the bunchr.gemspec - but maybe that would hold you back?

joemiller commented 11 years ago

The simplest solution seems to be locking the fpm version at 0.4.26 in the bunchr.gemspec. Not sure what other effects that would have but probably worth trying it.

joemiller commented 11 years ago

I made the change on master. Do you have any testing you could do to verify it resolves the suse issue?

eladroz commented 11 years ago

Yes, I would test it of course for suse & at least one other distro. It should be fine I think :-)

eladroz commented 11 years ago

Tested with SLES for RPM and Ubuntu 1110-64 for DEB (I built the .gem file & put in the sensu-build folder, so it's picked up). Works as expected and package can be installed, also checked with Sean's latest sensu-build changes from yesterday. Thanks & please bump ;-)

amdprophet commented 9 years ago

@eladroz We're in the process of adding FreeBSD support to Bunchr (which requires updating fog). Do you know if newer versions of fog still cause issues with SLES?