]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
build-with-container: improve source rpm detection 65188/head
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 19 Aug 2025 23:12:07 +0000 (19:12 -0400)
committerJohn Mulligan <phlogistonjohn@asynchrono.us>
Fri, 22 Aug 2025 15:09:14 +0000 (11:09 -0400)
commit3d490f82719bd8d552c595dc8a40916577b73fb9
treef3e583d73c3c91a3cff8c427e9359c05c6431f88
parentf9e4d59fad596437247caf7044ca030937708b7b
build-with-container: improve source rpm detection

Improve source rpm detection by adding a new detection method that
executes and rpm command in a container to get exactly the version of
the source rpm that the ceph.spec file would have generated.  For
backwards compatibility and that I don't entirely trust myself to have
tested this the old methods are still available.

The old `--rpm-no-match-sha` is now an alias for `--srpm-match=any` to
cause it to build any (unique) ceph srpm it finds.
`--srpm-match=versionglob` retains the previous default behavior of
using a glob matching on the git id or ceph version value.  The new
default of `--srpm-match=auto` implements the rpm command based behavior
described above.

All of this is wrapped in a new step `find-rpm` but that's mostly an
implementation detail and for testing.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 916088a4e7380cd7ac1403fb4416ef91ab07aa52)
src/script/build-with-container.py