public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/google-benchmark] rawhide: Add Requires: libpfm-devel on google-benchmark-devel
@ 2026-08-06  5:52 Matthew Krupcale
  0 siblings, 0 replies; only message in thread
From: Matthew Krupcale @ 2026-08-06  5:52 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/google-benchmark
            Branch : rawhide
            Commit : 84bfdd9e3590e0c931c0c5fe0d2b284d6e0fb7ac
            Author : Matthew Krupcale <mkrupcale@gmail.com>
            Date   : 2026-08-05T21:14:21-04:00
            Stats  : +3/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/google-benchmark/c/84bfdd9e3590e0c931c0c5fe0d2b284d6e0fb7ac?branch=rawhide

            Log:
            Add Requires: libpfm-devel on google-benchmark-devel

CMake find_package(benchmark) may fail to find benchmark with only
google-benchmark-devel installed:

-- Could NOT find PFM (missing: PFM_LIBRARY PFM_INCLUDE_DIR)
CMake Warning at bench/CMakeLists.txt:1 (find_package):
  Found package configuration file:

    /usr/lib64/cmake/benchmark/benchmarkConfig.cmake

  but it set benchmark_FOUND to FALSE so package "benchmark" is considered to
  be NOT FOUND.  Reason given by package:

  benchmark could not be found because dependency PFM could not be found.

So add Requires: libpfm-devel on google-benchmark-devel as well.

* google-benchmark.spec: add Requires: libpfm-devel on google-benchmark-devel

---
diff --git a/google-benchmark.spec b/google-benchmark.spec
index 19e36c2..266233c 100644
--- a/google-benchmark.spec
+++ b/google-benchmark.spec
@@ -93,6 +93,9 @@ A library to support the benchmarking of functions, similar to unit-tests.
 Summary:        Development files for %{name}
 
 Requires:       %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
+%if %{with libpfm}
+Requires:       libpfm-devel
+%endif
 # Removed for Fedora 43; we can drop the Obsoletes after Fedora 45.
 Obsoletes:      %{name}-doc < 1.9.4-9
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-06  5:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06  5:52 [rpms/google-benchmark] rawhide: Add Requires: libpfm-devel on google-benchmark-devel Matthew Krupcale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox