[packages/libu2f-emu] fix build with gtest >= 1.17
atler
atler at pld-linux.org
Sat Oct 4 14:43:18 CEST 2025
commit 339e74712c907d39f5681864fdce2685fd25919c
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Oct 4 14:42:29 2025 +0200
fix build with gtest >= 1.17
libu2f-emu.spec | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libu2f-emu.spec b/libu2f-emu.spec
index cb81709..f68ef81 100644
--- a/libu2f-emu.spec
+++ b/libu2f-emu.spec
@@ -20,6 +20,7 @@ URL: https://github.com/MattGorko/libu2f-emu
%{?with_apidocs:BuildRequires: graphviz}
# for tests
BuildRequires: gtest-devel >= 1.10.0
+BuildRequires: libstdc++-devel >= 6:8
BuildRequires: meson >= 0.52.0
BuildRequires: ninja >= 1.5
BuildRequires: openssl-devel >= 1.1.0
@@ -70,8 +71,8 @@ ln -sf ../src/u2f-emu{,-types}.h tests
# as of 2020 it uses APIs deprecated in openssl 3
%{__sed} -i -e '/werror=true/d' meson.build
-# gtest 1.15 requires C++14
-%{__sed} -i -e 's/cpp_std=c++11/cpp_std=c++14/' meson.build
+# gtest 1.17 requires C++17
+%{__sed} -i -e 's/cpp_std=c++11/cpp_std=c++17/' meson.build
%build
%meson
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libu2f-emu.git/commitdiff/339e74712c907d39f5681864fdce2685fd25919c
More information about the pld-cvs-commit
mailing list