Closed sepulworld closed 10 years ago
Also tried build from Ruby 1.8.7, output was the same.
I tested recipe builds out from a new CentOS 6 install and getting same error:
ERROR: [FPM] error: line 50: Empty tag: Packager: {}
Attempting to find out where this is happening exactly in the code now...
On a general note I don't think rpm has seen much testing with these recipies. I've seen the same issue but only worked around it. I'm not sure if it is even possible to keep the same kind of versioning format (1:16.b.1) across deb and rpm. I do remember this was discussed at some point in time in the fpm project.
Thank you for the background and info! Yeah, I tested without the epoch value on a few different recipes (16.b.1 for example with Erlang) and it provides a warning about the missing epoch value but also the error:
ERROR: [FPM] error: line 50: Empty tag: Packager: {}
And the fpm package build fails. I'm assuming it is passing an empty value for the epoch that is causing fpm to fail? I will fork and try to uncover the issue and see if there is something I can do to help out. I really like this project, and would like to see it succeed with rpm builds! The deb builds do seem fine, as I tested the Erlang recipe out on Ubuntu fine.
fpm-0.4.42/templates/rpm.erb has a tag for 'maintainer'
If the recipe doesn't specify the maintainer then fpm-cook errors out with
ERROR: [FPM] error: line 50: Empty tag: Packager: {}
Quick fix is to put maintainer value in the recipe.
maintainer 'Zane <sepulworld@gmail.com>'
Real fix would be a default maintainer value set to based upon user/hostname
maintainer = "<#{ENV["USER"]}@#{Socket.gethostname}>"
Any thoughts on that?
@sepulworld I pushed a fix for this and released version 0.16.2 to rubygems. Please test if this works for you and reopen the issue if not.
Thank you for the report!
@sepulworld Also, a default maintainer is set based on your suggestion. Thanks!
Greetings,
Testing with erlang r15.rb recipe from fpm-recipes
When the version is set to
version '1:16.b.1'
I get:
When I change the version to
version '16.b.1'
I get:
I tested with other recipes and (such as the redis recipe) and I get
Running centos5 system for the build.
Ruby 2.0.0
VERSION = '0.16.1'