[packages/python3-mysqlx-connector] - rel 6, abseil/protobuf need C++17

baggins baggins at pld-linux.org
Mon Oct 6 09:10:59 CEST 2025


commit 25d9e881bca4450b7bcdcfa0b41fb40a0e8fd65c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 6 11:10:37 2025 +0200

    - rel 6, abseil/protobuf need C++17

 protobuf.patch                | 13 +++++++++++++
 python3-mysqlx-connector.spec |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/python3-mysqlx-connector.spec b/python3-mysqlx-connector.spec
index dc14d75..db7c958 100644
--- a/python3-mysqlx-connector.spec
+++ b/python3-mysqlx-connector.spec
@@ -17,7 +17,7 @@ Name:		python3-%{pname}
 # check documentation to see which version is GA (we don't want devel releases)
 # https://dev.mysql.com/downloads/connector/python/
 Version:	9.3.0
-Release:	5
+Release:	6
 License:	GPL v2
 Group:		Libraries/Python
 Source0:	http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-%{version}-src.tar.gz
diff --git a/protobuf.patch b/protobuf.patch
index a4f391c..1a62406 100644
--- a/protobuf.patch
+++ b/protobuf.patch
@@ -9,3 +9,16 @@
          extras_require={
              "dns-srv": ["dnspython==2.6.1"],
              "compression": ["lz4>=2.1.6,<=4.3.2", "zstandard==0.23.0"],
+--- mysql-connector-python-9.3.0-src/mysqlx-connector-python/cpydist/__init__.py~	2025-10-06 11:08:23.000000000 +0200
++++ mysql-connector-python-9.3.0-src/mysqlx-connector-python/cpydist/__init__.py	2025-10-06 11:08:49.876663704 +0200
+@@ -390,8 +390,8 @@
+             ext.libraries.extend(ABSL_LIBS)
+ 
+             if os.name != "nt":
+-                # Add -std=c++14 needed for Protobuf 4.25.3
+-                ext.extra_compile_args.append("-std=c++14")
++                # Add -std=c++17 needed for Protobuf 4.25.3
++                ext.extra_compile_args.append("-std=c++17")
+             self._run_protoc()
+ 
+             # Suppress unknown pragmas
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-mysqlx-connector.git/commitdiff/25d9e881bca4450b7bcdcfa0b41fb40a0e8fd65c



More information about the pld-cvs-commit mailing list