[packages/python3-mysqlx-connector] - rel 5, modern versions of protobuf should be good too

baggins baggins at pld-linux.org
Tue Sep 2 00:11:24 CEST 2025


commit 810f3498f414c4b42ef19c6fd8316ef51732ab01
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Sep 2 02:11:02 2025 +0200

    - rel 5, modern versions of protobuf should be good too

 protobuf.patch                | 11 +++++++++++
 python3-mysqlx-connector.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/python3-mysqlx-connector.spec b/python3-mysqlx-connector.spec
index ef3ce28..dc14d75 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:	4
+Release:	5
 License:	GPL v2
 Group:		Libraries/Python
 Source0:	http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-%{version}-src.tar.gz
@@ -25,6 +25,7 @@ Source0:	http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-
 #Source0:	https://pypi.debian.net/mysql-connector-python/mysql-connector-python-%{version}.tar.gz
 Patch0:		force-capi.patch
 Patch1:		tests.patch
+Patch2:		protobuf.patch
 URL:		http://dev.mysql.com/doc/connector-python/en/
 BuildRequires:	mysql%{mysql_ver}-devel
 BuildRequires:	protobuf-devel >= 3.0.0
@@ -49,6 +50,7 @@ MySQLX Connector/Python to implementacja protokołu MySQL X DevAPI.
 %setup -q -n mysql-connector-python-%{version}-src
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 export MYSQL_CAPI=%{_bindir}/mysql_config%{mysql_ver}
diff --git a/protobuf.patch b/protobuf.patch
new file mode 100644
index 0000000..a4f391c
--- /dev/null
+++ b/protobuf.patch
@@ -0,0 +1,11 @@
+--- mysql-connector-python-9.3.0-src/mysqlx-connector-python/setup.py~	2025-03-26 08:48:12.000000000 +0100
++++ mysql-connector-python-9.3.0-src/mysqlx-connector-python/setup.py	2025-09-02 02:09:50.383330415 +0200
+@@ -160,7 +160,7 @@
+         ext_modules=EXTENSIONS,
+         cmdclass=COMMAND_CLASSES,
+         python_requires=">=3.9",
+-        install_requires=["protobuf==4.25.3"],
++        install_requires=["protobuf>=4.25.3"],
+         extras_require={
+             "dns-srv": ["dnspython==2.6.1"],
+             "compression": ["lz4>=2.1.6,<=4.3.2", "zstandard==0.23.0"],
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list