[packages/libphonenumber] - force C++17 required by abseil 2021xxxx

qboosh qboosh at pld-linux.org
Tue Feb 8 22:49:27 CET 2022


commit 385015739bbc74348cf6e704ebda3fd3e69fd79c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Feb 8 22:51:00 2022 +0100

    - force C++17 required by abseil 2021xxxx

 libphonenumber-no-fetch.patch | 11 +++++++++++
 libphonenumber.spec           |  2 +-
 2 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/libphonenumber.spec b/libphonenumber.spec
index f63350b..65edff3 100644
--- a/libphonenumber.spec
+++ b/libphonenumber.spec
@@ -23,7 +23,7 @@ BuildRequires:	cmake >= 2.8.5
 BuildRequires:	gtest-devel
 BuildRequires:	jre
 BuildRequires:	libicu-devel >= 4.4
-BuildRequires:	libstdc++-devel
+BuildRequires:	libstdc++-devel >= 6:7
 BuildRequires:	pkgconfig
 BuildRequires:	protobuf-devel >= 2.4
 %{?with_re2:BuildRequires:	re2-devel}
diff --git a/libphonenumber-no-fetch.patch b/libphonenumber-no-fetch.patch
index 044ec45..a76cbd6 100644
--- a/libphonenumber-no-fetch.patch
+++ b/libphonenumber-no-fetch.patch
@@ -41,3 +41,14 @@
  # Safeguarding against any potential link errors as mentioned in
  # https://github.com/abseil/abseil-cpp/issues/225
  set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
+--- libphonenumber-8.12.42/cpp/CMakeLists.txt.orig	2022-02-08 21:57:33.440581630 +0100
++++ libphonenumber-8.12.42/cpp/CMakeLists.txt	2022-02-08 22:20:13.587822822 +0100
+@@ -18,7 +18,7 @@ cmake_minimum_required (VERSION 3.11)
+ 
+ # Pick the C++ standard to compile with.
+ # Abseil currently supports C++11, C++14, and C++17.
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ 
+ project (libphonenumber)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libphonenumber.git/commitdiff/385015739bbc74348cf6e704ebda3fd3e69fd79c



More information about the pld-cvs-commit mailing list