Open jparrish opened 7 years ago
Ah, good catch.
rpmbuild says this:
error: line 38: Illegal char '-' (0x2d) in: Release: 1-2
We can make the automatic correction for this like we do with other parts of package metadata. Thank you for filing!
@jparrish I find a another workaround.
Replace --iteration 0-2
with --iteration 0 --dist-tag 2
.
Thank you, @jordansissel and @yuokada for your attention and insight.
@yuokada Nice find! Thank you for sharing :)
I tried this just to see what happens in rpmbuild --
It appears that the following two fpm usages are identical:
--iteration 0.2
--iteration 0 --rpm-dist 2
Both produce an rpm with a Release
tag of "0.2":
% rpm -qip example-1.0-0.2.x86_64.rpm | grep Release
Release : 0.2
This also comes up when converting a debian package to an rpm package, in particular when the version is taken from git describe --tags
: The version field has a form of 1.1-32-d7b4667
, where fpm chooses 32-d7b4667
as the Release
value.
Execution of
fails with error:
The work around is to replace the '-' in the iteration with some other character, e.g. '_'. The issue does not manifest when building .deb packages.