]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: replace golang github prometheus with promtool binary path 68336/head
authorNizamudeen A <nia@redhat.com>
Sun, 12 Apr 2026 06:06:30 +0000 (11:36 +0530)
committerNizamudeen A <nia@redhat.com>
Mon, 13 Apr 2026 12:42:47 +0000 (18:12 +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>
ceph.spec.in

index d4cabb21cfb9100685c25f04d2d101b6b79f755c..aa7b73eb2813de28aa0a1584ae75673db36cd4a9 100644 (file)
@@ -437,7 +437,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