libphonenumber/0001-Build-with-C-17.patch
Fabian Vogt d2f7ac0a7b Accepting request 1093080 from home:favogt:branches:devel:libraries:c_c++
- Update to version 8.13.14:
  * Many data changes
  * Removal of unused leading_zero_possible proto field in
    phonemetadata.proto and all generated code
  * https://github.com/google/libphonenumber/blob/v8.13.14/release_notes.txt
- Depends on abseil now
- Turn metadata regeneration off explicitly, wasn't done previously
  either. This allows dropping the java dependency.
- Add patches to fix building:
  * 0001-Build-with-C-17.patch
  * 0001-Revert-Fix-typo-in-arguments-to-add_metadata_gen_tar.patch
- protobuf got fixed, builds fine with 22 now

OBS-URL: https://build.opensuse.org/request/show/1093080
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libphonenumber?expand=0&rev=14
2023-06-14 10:40:48 +00:00

30 lines
983 B
Diff

From 027de3b5d44f6291bd4785ec7530661ac98cbf53 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Wed, 14 Jun 2023 09:06:02 +0200
Subject: [PATCH] Build with C++17
Recent abseil requires C++14 and TW builds it with C++17, so just use 17
directly.
---
cpp/CMakeLists.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
index cdd7a08..bc331aa 100644
--- a/cpp/CMakeLists.txt
+++ b/cpp/CMakeLists.txt
@@ -19,8 +19,8 @@ cmake_minimum_required (VERSION 3.11)
project (libphonenumber VERSION 8.13.0)
# Pick the C++ standard to compile with.
-# Abseil currently supports C++11, C++14, and C++17.
-set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard used to compile this project")
+# Abseil currently supports C++14, and C++17.
+set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard used to compile this project")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
--
2.41.0