Bug #57893
openmake-dist creates ceph.spec with incorrect Release tag for SUSE-based distros
0%
Description
ceph.spec.in
says:
Name: ceph Version: @PROJECT_VERSION@ Release: @RPM_RELEASE@%{?dist} %if 0%{?fedora} || 0%{?rhel} Epoch: 2 %endif
When the make-dist
script generates the final ceph.spec
file for RPM builds, it will set PROJECT_VERSION to the version from the latest tag (e.g.: 17.0.0), and set RPM_RELEASE to the number of additional commits plus the last commit hash (e.g.: 14883.gc49b81c7d61). This doesn't work properly when building in SUSE's Open Build Service, because OBS overwrites the Release tag with checkin and build counters (see https://en.opensuse.org/openSUSE:Package_versioning_guidelines).
We've long carried a downstream patch for make-dist
to fix this, by putting everything in PROJECT_VERSION, so you end up with something like Version: 17.0.0.14883+gc49b81c7d61
(see https://github.com/SUSE/ceph/commit/9ee636cdca3), so I figure I should really submit that upstream.
Updated by Tim Serong over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 48547
Updated by Tim Serong over 1 year ago
- Status changed from Fix Under Review to Pending Backport
Updated by Backport Bot over 1 year ago
- Copied to Backport #57916: quincy: make-dist creates ceph.spec with incorrect Release tag for SUSE-based distros added