public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Alexandre Salim <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/cachelib] epel10.3: Fix for finding gtest on EL8; exclude aarch64 instead of %%arm64
Date: Thu, 08 Oct 2026 09:23:08 GMT [thread overview]
Message-ID: <179145138886.1.3465679594447968145.rpms-cachelib-c746c7083be8@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cachelib
Branch : epel10.3
Commit : c746c7083be849a351073a024af30a488d6e076f
Author : Michel Alexandre Salim <salimma@fedoraproject.org>
Date : 2022-02-24T20:35:40-08:00
Stats : +80/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/cachelib/c/c746c7083be849a351073a024af30a488d6e076f?branch=epel10.3
Log:
Fix for finding gtest on EL8; exclude aarch64 instead of %%arm64
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
---
diff --git a/cachelib-find-gtest.patch b/cachelib-find-gtest.patch
new file mode 100644
index 0000000..b9cce71
--- /dev/null
+++ b/cachelib-find-gtest.patch
@@ -0,0 +1,70 @@
+diff '--color=auto' -ruN CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8/cachelib/cmake/FindGTest.cmake CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8-find-gtest/cachelib/cmake/FindGTest.cmake
+--- CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8/cachelib/cmake/FindGTest.cmake 1969-12-31 16:00:00.000000000 -0800
++++ CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8-find-gtest/cachelib/cmake/FindGTest.cmake 2022-02-24 20:08:51.087790319 -0800
+@@ -0,0 +1,54 @@
++# Copyright (c) Facebook, Inc. and its affiliates.
++#
++# Licensed under the Apache License, Version 2.0 (the "License");
++# you may not use this file except in compliance with the License.
++# You may obtain a copy of the License at
++#
++# http://www.apache.org/licenses/LICENSE-2.0
++#
++# Unless required by applicable law or agreed to in writing, software
++# distributed under the License is distributed on an "AS IS" BASIS,
++# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
++# See the License for the specific language governing permissions and
++# limitations under the License.
++
++# Find GTest
++#
++# This will define:
++# GTEST_FOUND
++# GTEST_INCLUDE_DIRS
++# GTEST_LIBRARIES
++# GTEST_MAIN_LIBRARIES
++# GTEST_BOTH_LIBRARIES
++
++find_path(GTEST_INCLUDE_DIRS gtest/gtest.h
++ HINTS
++ $ENV{GTEST_ROOT}/include
++ ${GTEST_ROOT}/include
++)
++
++find_library(GTEST_LIBRARIES
++ NAMES gtest
++ HINTS
++ $ENV{GTEST_ROOT}
++ ${GTEST_ROOT}
++)
++
++find_library(GTEST_MAIN_LIBRARIES
++ NAMES gtest_main
++ HINTS
++ $ENV{GTEST_ROOT}
++ ${GTEST_ROOT}
++)
++
++set(GTEST_BOTH_LIBRARIES ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES})
++
++mark_as_advanced(GTEST_INCLUDE_DIRS GTEST_LIBRARIES GTEST_MAIN_LIBRARIES)
++
++include(FindPackageHandleStandardArgs)
++find_package_handle_standard_args(
++ GTest GTEST_LIBRARIES GTEST_INCLUDE_DIRS GTEST_MAIN_LIBRARIES)
++
++if(GTEST_FOUND AND NOT GTEST_FIND_QUIETLY)
++ message(STATUS "GTEST: ${GTEST_INCLUDE_DIRS}")
++endif()
+diff '--color=auto' -ruN CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8/cachelib/CMakeLists.txt CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8-find-gtest/cachelib/CMakeLists.txt
+--- CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8/cachelib/CMakeLists.txt 2021-12-20 07:22:18.000000000 -0800
++++ CacheLib-c4904ef2524f396eb432392f8308a69dda926bd8-find-gtest/cachelib/CMakeLists.txt 2022-02-24 20:12:39.078602510 -0800
+@@ -93,7 +93,7 @@
+ system filesystem regex context program_options thread)
+ find_package(Gflags REQUIRED)
+ find_package(Glog REQUIRED)
+-find_package(GTest CONFIG REQUIRED)
++find_package(GTest REQUIRED)
+ find_package(folly CONFIG REQUIRED)
+ find_package(fizz CONFIG REQUIRED)
+ find_package(fmt CONFIG REQUIRED)
diff --git a/cachelib.spec b/cachelib.spec
index 449dfcb..fd2cd66 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -31,6 +31,8 @@ Patch0: %{name}-ld_gtest.patch
Patch1: %{name}-install_cachebench_so.patch
# and version them
Patch2: %{name}-versioned_so.patch
+# needed on EL8; its gtest does not come with cmake files
+Patch3: %{name}-find-gtest.patch
# Folly is known not to work on big-endian CPUs
# https://bugzilla.redhat.com/show_bug.cgi?id=1892151
@@ -45,7 +47,7 @@ ExcludeArch: %{arm32}
ExcludeArch: %{ix86}
# build failure on aarch64
# https://bugzilla.redhat.com/show_bug.cgi?id=2036121
-ExcludeArch: %{arm64}
+ExcludeArch: aarch64
BuildRequires: cmake
BuildRequires: gcc-c++
@@ -86,7 +88,13 @@ applications that use %{name}.
%prep
-%forgeautosetup -p1
+%forgesetup
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%if 0%{?el8}
+%patch3 -p1
+%endif
%build
reply other threads:[~2026-10-08 9:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179145138886.1.3465679594447968145.rpms-cachelib-c746c7083be8@fedoraproject.org \
--to=salimma@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox