Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package googletest for openSUSE:Factory checked in at 2025-05-06 16:40:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/googletest (Old) and /work/SRC/openSUSE:Factory/.googletest.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "googletest" Tue May 6 16:40:20 2025 rev:23 rq:1274662 version:1.16.0 Changes: -------- --- /work/SRC/openSUSE:Factory/googletest/googletest.changes 2025-02-11 21:23:23.467191776 +0100 +++ /work/SRC/openSUSE:Factory/.googletest.new.30101/googletest.changes 2025-05-06 16:40:25.225639620 +0200 @@ -1,0 +2,7 @@ +Fri May 2 17:02:51 UTC 2025 - Friedrich Haubensak <hs...@mail.de> + +- add googletest-ciso646.patch from upstream to avoid gcc15 + deprecation warnings that result in build failure of dependant + packages + +------------------------------------------------------------------- New: ---- googletest-ciso646.patch BETA DEBUG BEGIN: New: - add googletest-ciso646.patch from upstream to avoid gcc15 deprecation warnings that result in build failure of dependant BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ googletest.spec ++++++ --- /var/tmp/diff_new_pack.FhEibC/_old 2025-05-06 16:40:25.997671886 +0200 +++ /var/tmp/diff_new_pack.FhEibC/_new 2025-05-06 16:40:25.997671886 +0200 @@ -32,6 +32,8 @@ URL: https://github.com/google/googletest Source0: https://github.com/google/googletest/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: googletest-rpmlintrc +# PATCH-FIX-UPSTREAM googletest-ciso646.patch -- avoid deprecation warnings +Patch1: googletest-ciso646.patch BuildRequires: cmake >= 3.10.0 %if 0%{?suse_version} < 1600 BuildRequires: gcc11 @@ -85,7 +87,7 @@ with googlemock. %prep -%autosetup +%autosetup -p1 %build %global optflags %(echo "%{optflags} -Wno-infinite-recursion -Wno-deprecated-declarations") ++++++ googletest-ciso646.patch ++++++ github.com/google/googletest/commit/00b2154 >From 00b2154e8e4bbb1ab0b22580c9f19fbfd3f56c04 Mon Sep 17 00:00:00 2001 From: Derek Mauro <dma...@google.com> Date: Tue, 29 Apr 2025 06:12:50 -0700 Subject: [PATCH] Fix GCC15 warning that <ciso646> is deprecated in C++17 PiperOrigin-RevId: 752706554 Change-Id: I83d35b693efdaabcc63d15169dbf19d63163a563 --- googletest/include/gtest/internal/gtest-port.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 4cfc16c03e..25b7d194db 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -282,10 +282,14 @@ // Detect C++ feature test macros as gracefully as possible. // MSVC >= 19.15, Clang >= 3.4.1, and GCC >= 4.1.2 support feature test macros. -#if GTEST_INTERNAL_CPLUSPLUS_LANG >= 202002L && \ - (!defined(__has_include) || GTEST_INTERNAL_HAS_INCLUDE(<version>)) -#include <version> // C++20 and later -#elif (!defined(__has_include) || GTEST_INTERNAL_HAS_INCLUDE(<ciso646>)) +// +// GCC15 warns that <ciso646> is deprecated in C++17 and suggests using +// <version> instead, even though <version> is not available in C++17 mode prior +// to GCC9. +#if GTEST_INTERNAL_CPLUSPLUS_LANG >= 202002L || \ + GTEST_INTERNAL_HAS_INCLUDE(<version>) +#include <version> // C++20 or <version> support. +#else #include <ciso646> // Pre-C++20 #endif