From f4aa168973832be6730cfca073bd5d1942dddd98 Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 12:05:14 +0000 Subject: [PATCH 1/2] mysql-connector-python: Add version 26.10.0 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/mysql-connector-python.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/packages/mysql-connector-python.yaml b/docs/packages/mysql-connector-python.yaml index 664e32bffd33..844ed59552ea 100644 --- a/docs/packages/mysql-connector-python.yaml +++ b/docs/packages/mysql-connector-python.yaml @@ -21,3 +21,4 @@ versions: gpl-sources: filename: gpl-sources.tar description: gcc, libmysqlclient +- version: 26.10.0 From 32799330a2b5a06e95bbe313bd2987bdbb6483e0 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Fri, 23 Oct 2026 06:27:47 +0800 Subject: [PATCH 2/2] mysql-connector-python: Carry patches over to version 26.10.0 Both patches of 26.7.0 apply unchanged to 26.10.0. --- ...ootstrapped-MySQL-server-run-as-root.patch | 43 ++++++++++++++ ...d-the-Zstandard-licence-to-the-wheel.patch | 56 +++++++++++++++++++ 2 files changed, 99 insertions(+) create mode 100644 patches/mysql-connector-python/26.10.0/0001-tests-let-the-bootstrapped-MySQL-server-run-as-root.patch create mode 100644 patches/mysql-connector-python/26.10.0/0002-add-the-Zstandard-licence-to-the-wheel.patch diff --git a/patches/mysql-connector-python/26.10.0/0001-tests-let-the-bootstrapped-MySQL-server-run-as-root.patch b/patches/mysql-connector-python/26.10.0/0001-tests-let-the-bootstrapped-MySQL-server-run-as-root.patch new file mode 100644 index 000000000000..a4c26474b590 --- /dev/null +++ b/patches/mysql-connector-python/26.10.0/0001-tests-let-the-bootstrapped-MySQL-server-run-as-root.patch @@ -0,0 +1,43 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Wed, 26 Aug 2026 00:00:00 +0000 +Subject: [PATCH] tests: let the bootstrapped MySQL server run as root + +The riscv64 wheels are built and tested inside the manylinux container, +where every command runs as uid 0. mysqld refuses to start as root unless +it is told so explicitly, so tests/mysqld.py never gets past bootstrapping: + + [ERROR] [MY-010123] [Server] Fatal error: Please read "Security" section + of the manual to find out how to run mysqld as root! + +Pass --user=root when bootstrapping and set `user = root` in the generated +option file, which is what the started server reads via --defaults-file. + +Upstream-Status: Inappropriate [test harness only; upstream's CI does not run the suite as root] + +Signed-off-by: Ludovic Henry +--- +diff --git a/mysql-connector-python/tests/mysqld.py b/mysql-connector-python/tests/mysqld.py +index 680caca..7abad0f 100644 +--- a/mysql-connector-python/tests/mysqld.py ++++ b/mysql-connector-python/tests/mysqld.py +@@ -458,6 +458,7 @@ class MySQLServer(MySQLServerBase): + "--default-storage-engine=myisam", + "--net_buffer_length=16K", + "--tmpdir=%s" % self._tmpdir, ++ "--user=root", + ] + + if self._version[0:2] >= (8, 0) or self._version >= (5, 7, 21): +diff --git a/mysql-connector-python/unittests.py b/mysql-connector-python/unittests.py +index 3dddd6f..1a6409e 100644 +--- a/mysql-connector-python/unittests.py ++++ b/mysql-connector-python/unittests.py +@@ -144,6 +144,7 @@ pid-file = {pid_file} + skip_name_resolve + server_id = {serverid} + sql_mode = "" ++user = root + default_time_zone = +00:00 + log-error = mysqld_{name}.err + log-bin = mysqld_{name}_bin diff --git a/patches/mysql-connector-python/26.10.0/0002-add-the-Zstandard-licence-to-the-wheel.patch b/patches/mysql-connector-python/26.10.0/0002-add-the-Zstandard-licence-to-the-wheel.patch new file mode 100644 index 000000000000..c179fd0a0607 --- /dev/null +++ b/patches/mysql-connector-python/26.10.0/0002-add-the-Zstandard-licence-to-the-wheel.patch @@ -0,0 +1,56 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Wed, 26 Aug 2026 00:00:00 +0000 +Subject: [PATCH] add the Zstandard licence to the wheel + +libmysqlclient pulls in libzstd, so the built wheel redistributes Zstandard +binary code - upstream's own wheels link it statically, ours carries it as +mysql_connector_python.libs/libzstd.so.1. LICENSE.txt names every other +bundled component (OpenSSL, zlib, Cyrus SASL, Kerberos5, ...) but not +Zstandard, whose BSD licence requires the copyright notice to travel with +binary redistributions. + +Dropping the notice at the project root is enough: setuptools' default +license_files glob is LICEN[CS]E*, so it lands in dist-info/licenses/ +next to LICENSE.txt with no packaging change. + +Upstream-Status: To upstream [github.com/mysql/mysql-connector-python is a read-only export of Oracle's internal tree and takes no pull requests; to be reported on bugs.mysql.com] + +Signed-off-by: Ludovic Henry +--- +diff --git a/mysql-connector-python/LICENSE.zstd b/mysql-connector-python/LICENSE.zstd +new file mode 100644 +index 0000000..7580028 +--- /dev/null ++++ b/mysql-connector-python/LICENSE.zstd +@@ -0,0 +1,30 @@ ++BSD License ++ ++For Zstandard software ++ ++Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. ++ ++Redistribution and use in source and binary forms, with or without modification, ++are permitted provided that the following conditions are met: ++ ++ * Redistributions of source code must retain the above copyright notice, this ++ list of conditions and the following disclaimer. ++ ++ * Redistributions in binary form must reproduce the above copyright notice, ++ this list of conditions and the following disclaimer in the documentation ++ and/or other materials provided with the distribution. ++ ++ * Neither the name Facebook, nor Meta, nor the names of its contributors may ++ be used to endorse or promote products derived from this software without ++ specific prior written permission. ++ ++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ++ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ++WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ++DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ++ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ++(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ++LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ++ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS ++SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.