]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: replace golang github prometheus with promtool binary path 68420/head
authorNizamudeen A <nia@redhat.com>
Sun, 12 Apr 2026 06:06:30 +0000 (11:36 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 16 Apr 2026 10:08:01 +0000 (15:38 +0530)
i don't see golang-github-prometheus available for centos anymore and
other distro's as well. And different package provides the promtool in
different distro's so instead of identifying all the corresponding
packages and its name, replacing the package name with binary path so it
works across distros without distro specific conditions

Some build failures are captured in our internal runs recently
https://github.com/rhcs-dashboard/ceph-dev/actions/runs/24298848427/job/70949666821

Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit d9c5358206a72295545252c6a0527db1b47aa559)

ceph.spec.in

index 07680708494d53217554d59139b358ef3a9d2d7d..4e6dd7cc5621e7759b888f2cf566186f4a9b769e 100644 (file)
@@ -435,7 +435,7 @@ BuildRequires:      lz4-devel >= 1.7
 %if 0%{with make_check}
 BuildRequires: golang
 %if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
-BuildRequires: golang-github-prometheus
+BuildRequires: /usr/bin/promtool
 BuildRequires: libtool-ltdl-devel
 BuildRequires: xmlsec1
 BuildRequires: xmlsec1-devel