fpm-recipes
fpm-recipes copied to clipboard
Unable to build graylog2-server on centos
I've been working on recipies for some of the same things you've got in your repo, so if I can, I'd rather just use the ones you've got, but I can't quite comprehend them fully enough to get them working. Also, I think you're targeting debians, and I'm targeting rpm based, so I'll have to tweak a few dependencies I think. Either way, I'm not sure why this doesn't package. It seems to be a problem within fpm, or maybe fpm-cookery, but I'm not quite certain.
Thanks!
[vagrant@localhost graylog2-server]$ fpm-cook recipe.rb
===> Starting package creation for graylog2-server-0.10.0 (centos, rpm)
===>
===> Fetching source:
######################################################################## 100.0%
===> Building in /vagrant/recipies/additional/graylog2-server/tmp-build/graylog2-server-0.10.0/graylog2-server-0.10.0
===> Installing into /vagrant/recipies/additional/graylog2-server/tmp-dest
===> [FPM] Converting dir to rpm {"file":"fpm/package.rb","method":"convert","line":"189"}
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/package/rpm.rb:124: warning: toplevel constant Gem referenced by FPM::Package::Gem
===> [FPM] Reading template {"file":"fpm/package.rb","method":"template","line":"319","path":"/usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/../../templates/rpm.erb"}
===> [FPM] Running rpmbuild {"file":"fpm/package/rpm.rb","method":"output","line":"266","args":["rpmbuild","-bb","--define","buildroot /tmp/package-rpm-build20130411-17023-1vrf7ew/BUILD","--define","_topdir /tmp/package-rpm-build20130411-17023-1vrf7ew","--define","_sourcedir /tmp/package-rpm-build20130411-17023-1vrf7ew","--define","_rpmdir /tmp/package-rpm-build20130411-17023-1vrf7ew/RPMS","/tmp/package-rpm-build20130411-17023-1vrf7ew/SPECS/graylog2-server.spec"]}
===> [FPM] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.3sq7ZW {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hYdcQB {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.WosNGg {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM] error: Two files on one line: /etc/graylog2.conf {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] Processing files: graylog2-server-0.10.0.aussielunix2-1.x86_64 {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM] error: File must begin with "/": elasticsearch.yml.example {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM] Two files on one line: /etc/graylog2.conf {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
ERROR: [FPM] File must begin with "/": elasticsearch.yml.example {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> [FPM] RPM build errors: {"file":"cabin/mixins/pipe.rb","method":"send","line":"46"}
===> Created package: /vagrant/recipies/additional/graylog2-server/pkg/graylog2-server-0.10.0.aussielunix2-1.x86_64.rpm
/usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/util.rb:42:in `safesystem': rpmbuild failed (exit code 1). Full command was:["rpmbuild", "-bb", "--define", "buildroot /tmp/package-rpm-build20130411-17023-1vrf7ew/BUILD", "--define", "_topdir /tmp/package-rpm-build20130411-17023-1vrf7ew", "--define", "_sourcedir /tmp/package-rpm-build20130411-17023-1vrf7ew", "--define", "_rpmdir /tmp/package-rpm-build20130411-17023-1vrf7ew/RPMS", "/tmp/package-rpm-build20130411-17023-1vrf7ew/SPECS/graylog2-server.spec"] (FPM::Util::ProcessFailed)
from /usr/lib/ruby/gems/1.8/gems/fpm-0.4.31/lib/fpm/package/rpm.rb:267:in `output'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:165:in `build_package'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:124:in `chdir'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:124:in `build_package'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/packager.rb:112:in `dispense'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:122:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:119:in `each'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:119:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/book.rb:8:in `call'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/book.rb:8:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/lib/fpm/cookery/cli.rb:115:in `run'
from /usr/lib/ruby/gems/1.8/gems/fpm-cookery-0.13.0/bin/fpm-cook:7
from /usr/bin/fpm-cook:19:in `load'
from /usr/bin/fpm-cook:19
Have you tried to execute the rpmbuild command directly?