summaryrefslogtreecommitdiff
path: root/dev-cpp/benchmark
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-03-05 19:19:04 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-03-05 19:19:04 +0000
commite50e3218b4530ca97bdf7975679d11f379ea0753 (patch)
tree0af0c5dd599b8c4536036534111b7ee8b06c2cdd /dev-cpp/benchmark
parentba778678a3e0a996583100c4db8d958b84bc32fe (diff)
downloadbaldeagleos-repo-e50e3218b4530ca97bdf7975679d11f379ea0753.tar.gz
baldeagleos-repo-e50e3218b4530ca97bdf7975679d11f379ea0753.tar.xz
baldeagleos-repo-e50e3218b4530ca97bdf7975679d11f379ea0753.zip
Adding metadata
Diffstat (limited to 'dev-cpp/benchmark')
-rw-r--r--dev-cpp/benchmark/benchmark-1.9.1-r1.ebuild (renamed from dev-cpp/benchmark/benchmark-1.9.1.ebuild)1
-rw-r--r--dev-cpp/benchmark/files/benchmark-1.9.1-fix-pfm-cmake.patch36
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-cpp/benchmark/benchmark-1.9.1.ebuild b/dev-cpp/benchmark/benchmark-1.9.1-r1.ebuild
index 55340d5bc76a..51adf51b7e41 100644
--- a/dev-cpp/benchmark/benchmark-1.9.1.ebuild
+++ b/dev-cpp/benchmark/benchmark-1.9.1-r1.ebuild
@@ -39,6 +39,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/${PN}-1.9.0-fix-documentation-installation.patch"
"${FILESDIR}/${P}-clock-detection-portability.patch"
+ "${FILESDIR}/${P}-fix-pfm-cmake.patch"
)
pkg_setup() {
diff --git a/dev-cpp/benchmark/files/benchmark-1.9.1-fix-pfm-cmake.patch b/dev-cpp/benchmark/files/benchmark-1.9.1-fix-pfm-cmake.patch
new file mode 100644
index 000000000000..c6431056ccce
--- /dev/null
+++ b/dev-cpp/benchmark/files/benchmark-1.9.1-fix-pfm-cmake.patch
@@ -0,0 +1,36 @@
+https://bugs.gentoo.org/950573
+https://github.com/google/benchmark/pull/1942
+
+From d124c771fe507a8eb5bb37697f8b36a7fde19e27 Mon Sep 17 00:00:00 2001
+From: Alfred Wingate <parona@protonmail.com>
+Date: Wed, 5 Mar 2025 00:16:54 +0200
+Subject: [PATCH] Install FindPFM.cmake for bencmarkConfig.cmake
+
+There is no upstream PFM cmake package config file to use, so this has
+to be installed for the benchmark cmake package config file to work.
+
+Bug: https://bugs.gentoo.org/950573
+See-Also: c2146397ac69e6589a50f6b4fc6a7355669caed5
+Signed-off-by: Alfred Wingate <parona@protonmail.com>
+--- a/cmake/Config.cmake.in
++++ b/cmake/Config.cmake.in
+@@ -5,6 +5,7 @@ include (CMakeFindDependencyMacro)
+ find_dependency (Threads)
+
+ if (@BENCHMARK_ENABLE_LIBPFM@)
++ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
+ find_dependency (PFM)
+ endif()
+
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -39,6 +39,9 @@ set_property(
+ if (PFM_FOUND)
+ target_link_libraries(benchmark PRIVATE PFM::libpfm)
+ target_compile_definitions(benchmark PRIVATE -DHAVE_LIBPFM)
++ install(
++ FILES "${PROJECT_SOURCE_DIR}/cmake/Modules/FindPFM.cmake"
++ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
+ endif()
+
+ # pthread affinity, if available