bernd / fpm-cookery

A tool for building software packages with fpm.
Other
460 stars 88 forks source link

Support brew for dependancy resolution #97

Closed petems closed 9 years ago

petems commented 9 years ago

$ sudo fpm-cook install-deps

===> Verifying build_depends and depends with Puppet
===> Verifying package: openssl-devel
===> Verifying package: pcre-devel
===> Verifying package: zlib-devel
===> Verifying package: openssl
===> Verifying package: pcre
===> Verifying package: zlib
===> Verifying package: logrotate
===> Verifying package: chkconfig
===> Verifying package: initscripts
===> Verifying package: shadow-utils
===> Verifying package: setup
===> Missing/wrong version packages: openssl-devel, pcre-devel, zlib-devel, openssl, pcre, zlib, logrotate, chkconfig, initscripts, shadow-utils, setup
===> Running as root; installing missing/wrong version build_depends and depends with Puppet
===> Installing package: openssl-devel
FATAL: While processing depends package 'openssl-devel':
FATAL: Mac OS X PKG DMG's must specify a package source.
FATAL: change from absent to present failed: Mac OS X PKG DMG's must specify a package source.

Boxen has done a lot with brew providers for packages in Puppet. It would be cool if fpm-cookery could use brew to look for the dependancies it needs?

beddari commented 9 years ago

Yup, that would be a pretty useful hack, the easiest route could possibly be to make use of e.g https://github.com/gildas/puppet-homebrew and have brew be the default Puppet package provider when Puppet is called to do the dependency checks.

I'm not in a position where it would be useful for me to work with adding that though, sorry.

petems commented 9 years ago

No worries, if I can get a version of it working would you accept a PR?

beddari commented 9 years ago

I'm not a direct contributor to the project (yet...) but I think sure, it would be accepted and appreciated. Having a way of setting the default package provider, per platform, would have general value and expand possible use cases.

bernd commented 9 years ago

:+1:

bernd commented 9 years ago

It sounds like you try to build a RPM package on Mac OS X? Or are you trying to build a DMG?

Building a RPM on Mac OS X does not work because you have to build on the target platform.

Since this issues is quite old right now I am closing it. Please re-open if you still need help. Thank you!