From dacda77b562d3e02629ebceaedb25c09215b66967e23011f872cc22d2ca44637 Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Date: Wed, 23 Jun 2021 10:09:13 +0000 Subject: [PATCH] Accepting request 896597 from home:cgiboudeaux:branches:devel:libraries:c_c++ - Add GCC 11 build fix: * 0001-g-11-requires-limits-header.patch OBS-URL: https://build.opensuse.org/request/show/896597 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpptoml?expand=0&rev=5 --- 0001-g-11-requires-limits-header.patch | 24 ++++++++++++++++++++++++ cpptoml.changes | 6 ++++++ cpptoml.spec | 7 +++++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 0001-g-11-requires-limits-header.patch diff --git a/0001-g-11-requires-limits-header.patch b/0001-g-11-requires-limits-header.patch new file mode 100644 index 0000000..88318db --- /dev/null +++ b/0001-g-11-requires-limits-header.patch @@ -0,0 +1,24 @@ +From 3d1ff754f1588a72c179ad5c088debc5fea4b02f Mon Sep 17 00:00:00 2001 +From: Dirk Eddelbuettel +Date: Mon, 30 Nov 2020 09:41:49 -0600 +Subject: [PATCH] g++-11 requires limits header + +--- + include/cpptoml.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/cpptoml.h b/include/cpptoml.h +index 5a00da3..1dc9fd1 100644 +--- a/include/cpptoml.h ++++ b/include/cpptoml.h +@@ -14,6 +14,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +2.31.1 + diff --git a/cpptoml.changes b/cpptoml.changes index 1595ab3..6e4cf68 100644 --- a/cpptoml.changes +++ b/cpptoml.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 1 08:02:28 UTC 2021 - Christophe Giboudeaux + +- Add GCC 11 build fix: + * 0001-g-11-requires-limits-header.patch + ------------------------------------------------------------------- Fri May 14 08:38:18 UTC 2021 - Simon Lees diff --git a/cpptoml.spec b/cpptoml.spec index 21fefae..0ac0ea3 100644 --- a/cpptoml.spec +++ b/cpptoml.spec @@ -24,6 +24,8 @@ License: MIT Group: Development/Languages/C and C++ URL: https://github.com/skystrife/%{name} Source: https://github.com/skystrife/%{name}/archive/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/skystrife/cpptoml/pull/123 +Patch0: 0001-g-11-requires-limits-header.patch BuildRequires: cmake >= 3.1 BuildRequires: gcc-c++ @@ -40,10 +42,11 @@ cpptoml is a header-only c++ library for parsing TOML configuration files. This package contains development headers for the cpptoml library %prep -%setup -q -sed -ie "s,lib/cmake/cpptoml,%{_libdir}/cmake/%{name}," CMakeLists.txt +%autosetup -p1 %build +sed -ie "s,lib/cmake/cpptoml,%{_libdir}/cmake/%{name}," CMakeLists.txt + %cmake %cmake_build