| 1 |
Description: <short summary of the patch> |
| 2 |
TODO: Put a short summary on the line above and replace this paragraph |
| 3 |
with a longer explanation of this change. Complete the meta-information |
| 4 |
with other relevant fields (see below for details). To make it easier, the |
| 5 |
information below has been extracted from the changelog. Adjust it or drop |
| 6 |
it. |
| 7 |
. |
| 8 |
grpc (1.51.1-7) UNRELEASED; urgency=medium |
| 9 |
. |
| 10 |
* |
| 11 |
Author: Laszlo Boszormenyi (GCS) <[email protected]> |
| 12 |
|
| 13 |
--- |
| 14 |
The information above should follow the Patch Tagging Guidelines, please |
| 15 |
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here |
| 16 |
are templates for supplementary fields that you might want to add: |
| 17 |
|
| 18 |
Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>) |
| 19 |
Bug: <upstream-bugtracker-url> |
| 20 |
Bug-Debian: https://bugs.debian.org/<bugnumber> |
| 21 |
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> |
| 22 |
Forwarded: (no|not-needed|<patch-forwarded-url>) |
| 23 |
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>) |
| 24 |
Reviewed-By: <name and email of someone who approved/reviewed the patch> |
| 25 |
Last-Update: 2026-01-16 |
| 26 |
|
| 27 |
--- grpc-1.51.1.orig/CMakeLists.txt |
| 28 |
+++ grpc-1.51.1/CMakeLists.txt |
| 29 |
@@ -227,12 +227,12 @@ if (NOT DEFINED CMAKE_C_STANDARD) |
| 30 |
set(CMAKE_C_STANDARD 11) |
| 31 |
endif() |
| 32 |
|
| 33 |
-# Add c++14 flags |
| 34 |
+# Add c++17 flags |
| 35 |
if (NOT DEFINED CMAKE_CXX_STANDARD) |
| 36 |
- set(CMAKE_CXX_STANDARD 14) |
| 37 |
+ set(CMAKE_CXX_STANDARD 17) |
| 38 |
else() |
| 39 |
- if (CMAKE_CXX_STANDARD LESS 14) |
| 40 |
- message(FATAL_ERROR "CMAKE_CXX_STANDARD is less than 14, please specify at least SET(CMAKE_CXX_STANDARD 14)") |
| 41 |
+ if (CMAKE_CXX_STANDARD LESS 17) |
| 42 |
+ message(FATAL_ERROR "CMAKE_CXX_STANDARD is less than 14, please specify at least SET(CMAKE_CXX_STANDARD 17)") |
| 43 |
endif() |
| 44 |
endif() |
| 45 |
if (NOT DEFINED CMAKE_CXX_STANDARD_REQUIRED) |
| 46 |
--- grpc-1.51.1.orig/setup.py |
| 47 |
+++ grpc-1.51.1/setup.py |
| 48 |
@@ -206,7 +206,7 @@ def check_linker_need_libatomic(): |
| 49 |
code_test = (b'#include <atomic>\n' + |
| 50 |
b'int main() { return std::atomic<int64_t>{}; }') |
| 51 |
cxx = shlex.split(os.environ.get('CXX', 'c++')) |
| 52 |
- cpp_test = subprocess.Popen(cxx + ['-x', 'c++', '-std=c++14', '-'], |
| 53 |
+ cpp_test = subprocess.Popen(cxx + ['-x', 'c++', '-std=c++17', '-'], |
| 54 |
stdin=PIPE, |
| 55 |
stdout=PIPE, |
| 56 |
stderr=PIPE) |
| 57 |
@@ -216,7 +216,7 @@ def check_linker_need_libatomic(): |
| 58 |
# Double-check to see if -latomic actually can solve the problem. |
| 59 |
# https://github.com/grpc/grpc/issues/22491 |
| 60 |
cpp_test = subprocess.Popen(cxx + |
| 61 |
- ['-x', 'c++', '-std=c++14', '-', '-latomic'], |
| 62 |
+ ['-x', 'c++', '-std=c++17', '-', '-latomic'], |
| 63 |
stdin=PIPE, |
| 64 |
stdout=PIPE, |
| 65 |
stderr=PIPE) |
| 66 |
@@ -234,7 +234,7 @@ def check_linker_need_libatomic(): |
| 67 |
EXTRA_ENV_COMPILE_ARGS = os.environ.get('GRPC_PYTHON_CFLAGS', None) |
| 68 |
EXTRA_ENV_LINK_ARGS = os.environ.get('GRPC_PYTHON_LDFLAGS', None) |
| 69 |
if EXTRA_ENV_COMPILE_ARGS is None: |
| 70 |
- EXTRA_ENV_COMPILE_ARGS = ' -std=c++14' |
| 71 |
+ EXTRA_ENV_COMPILE_ARGS = ' -std=c++17' |
| 72 |
if 'win32' in sys.platform: |
| 73 |
if sys.version_info < (3, 5): |
| 74 |
EXTRA_ENV_COMPILE_ARGS += ' -D_hypot=hypot' |