Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package benchmark for openSUSE:Factory 
checked in at 2021-02-15 23:10:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/benchmark (Old)
 and      /work/SRC/openSUSE:Factory/.benchmark.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "benchmark"

Mon Feb 15 23:10:05 2021 rev:16 rq:870401 version:1.5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/benchmark/benchmark.changes      2020-12-30 
17:12:38.708748778 +0100
+++ /work/SRC/openSUSE:Factory/.benchmark.new.28504/benchmark.changes   
2021-02-15 23:10:06.690841202 +0100
@@ -1,0 +2,6 @@
+Mon Feb  8 21:56:31 UTC 2021 - Christophe Giboudeaux <[email protected]>
+
+- Add upstream patch to fix build with GCC 11 (boo#1181865):
+  * 0001-src-benchmark_register.h-add-missing-limits-inclusio.patch 
+
+-------------------------------------------------------------------

New:
----
  0001-src-benchmark_register.h-add-missing-limits-inclusio.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ benchmark.spec ++++++
--- /var/tmp/diff_new_pack.Ql1kcM/_old  2021-02-15 23:10:07.282842087 +0100
+++ /var/tmp/diff_new_pack.Ql1kcM/_new  2021-02-15 23:10:07.282842087 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package benchmark
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@
 License:        Apache-2.0
 URL:            https://github.com/google/benchmark
 Source:         
https://github.com/google/benchmark/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM
+Patch0:         0001-src-benchmark_register.h-add-missing-limits-inclusio.patch
 BuildRequires:  cmake >= 3.5.1
 BuildRequires:  gcc-c++
 BuildRequires:  git-core
@@ -49,7 +51,7 @@
 Development files for google benchmark library
 
 %prep
-%autosetup
+%autosetup -p1
 
 %build
 sed -e 's|lib_install_dir "lib/"|lib_install_dir "%{_libdir}/"|g' \

++++++ 0001-src-benchmark_register.h-add-missing-limits-inclusio.patch ++++++
>From d333609dccb5fcc6d002da6884712148f1beaf81 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <[email protected]>
Date: Thu, 15 Oct 2020 09:12:40 +0100
Subject: [PATCH] src/benchmark_register.h: add missing <limits> inclusion
 (#1060)

Noticed missing header when was building llvm with gcc-11:

```
llvm-project/llvm/utils/benchmark/src/benchmark_register.h:17:30:
  error: 'numeric_limits' is not a member of 'std'
   17 |   static const T kmax = std::numeric_limits<T>::max();
      |                              ^~~~~~~~~~~~~~
```
---
 src/benchmark_register.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/benchmark_register.h b/src/benchmark_register.h
index 61377d7..204bf1d 100644
--- a/src/benchmark_register.h
+++ b/src/benchmark_register.h
@@ -1,6 +1,7 @@
 #ifndef BENCHMARK_REGISTER_H
 #define BENCHMARK_REGISTER_H
 
+#include <limits>
 #include <vector>
 
 #include "check.h"
-- 
2.30.0

Reply via email to