From a643b468a5eb3c47c5e2ade0d1b983f3b15d1729 Mon Sep 17 00:00:00 2001 From: Pavol Sloboda Date: Mon, 21 Jul 2025 13:54:05 +0200 Subject: [PATCH 1/6] Added a patch that removes the addition of RPATH to _mysql_connector.cpython-3XY-%{arch}-linux-gnu.so as it was flagged by rpminspect as an invalid looking rpath. --- mysql-connector-python-rpath.patch | 13 +++++++++++++ mysql-connector-python.spec | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 mysql-connector-python-rpath.patch diff --git a/mysql-connector-python-rpath.patch b/mysql-connector-python-rpath.patch new file mode 100644 index 0000000..7f9e0d0 --- /dev/null +++ b/mysql-connector-python-rpath.patch @@ -0,0 +1,13 @@ +diff -Naur mysql-connector-python-8.0.33-src/cpydist/__init__.py mysql-connector-python_patched/cpydist/__init__.py +--- mysql-connector-python-8.0.33-src/cpydist/__init__.py 2023-03-30 12:58:04.000000000 +0200 ++++ mysql-connector-python_patched/cpydist/__init__.py 2025-07-21 09:21:19.084953101 +0200 +@@ -722,9 +722,6 @@ + # Add extra link args + if self.extra_link_args: + ext.extra_link_args.extend(self.extra_link_args.split()) +- # Add -rpath if the platform is Linux +- if platform.system() == "Linux" and not self.skip_vendor: +- ext.extra_link_args.extend(["-Wl,-rpath,$ORIGIN/mysql/vendor"]) + # Add include dirs + if self.with_openssl_include_dir: + ext.include_dirs.append(self.with_openssl_include_dir) diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec index b1c4eb7..e4bd660 100644 --- a/mysql-connector-python.spec +++ b/mysql-connector-python.spec @@ -37,6 +37,8 @@ URL: http://dev.mysql.com/doc/connector-python/en/index.html # generate-modified-sources.sh script available in this repo Source0: %{name}-%{version}-src-without-fonts.tar.gz +Patch0: %{name}-rpath.patch + BuildRequires: python3-devel >= 3 BuildRequires: gcc-c++ # for building the extension modules @@ -83,6 +85,7 @@ Documentation: http://dev.mysql.com/doc/connector-python/en/index.html %prep %setup -q -n %{name}-%{version}-src chmod -x examples/*py +%patch -P0 -p1 %build export MYSQL_CAPI=%{_prefix} # searches for bin/mysql_config in here, enables the extension module From ddbcd03dca68ba34a7b317279b1c776fa34f1534 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Mon, 21 Jul 2025 14:58:18 +0200 Subject: [PATCH 2/6] Bump release for package rebuild --- mysql-connector-python.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec index e4bd660..c85fb7e 100644 --- a/mysql-connector-python.spec +++ b/mysql-connector-python.spec @@ -21,7 +21,7 @@ Name: mysql-connector-python Version: 8.0.33 -Release: 2%{?dist} +Release: 3%{?dist} Summary: MySQL Connector for Python 3 # Automatically converted from old format: GPLv2 with exceptions - review is highly recommended. @@ -147,6 +147,9 @@ rm -r docs/mysqlx %{_mandir}/man1/%{name}3.1.* %changelog +* Mon Jul 21 2025 Michal Schorm - 8.0.33-3 +- Bump release for package rebuild + * Tue Jul 15 2025 Michal Schorm - 8.0.33-2 - Bump release for package rebuild From 12a2629160dad8f40d3ff947e3c11aa57dd909b9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 22:33:07 +0000 Subject: [PATCH 3/6] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- mysql-connector-python.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec index c85fb7e..cd005f7 100644 --- a/mysql-connector-python.spec +++ b/mysql-connector-python.spec @@ -21,7 +21,7 @@ Name: mysql-connector-python Version: 8.0.33 -Release: 3%{?dist} +Release: 4%{?dist} Summary: MySQL Connector for Python 3 # Automatically converted from old format: GPLv2 with exceptions - review is highly recommended. @@ -147,6 +147,9 @@ rm -r docs/mysqlx %{_mandir}/man1/%{name}3.1.* %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 8.0.33-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Jul 21 2025 Michal Schorm - 8.0.33-3 - Bump release for package rebuild From fc4b2fbfd138116c918f8ac74d6570dd27a41eb8 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Tue, 29 Jul 2025 12:51:18 +0200 Subject: [PATCH 4/6] Disable i686 on Fedora >= 43 MySQL 8.4 is not supported on 32-bit architectures This commit is part of: https://fedoraproject.org/wiki/Changes/switch_distribution_default_MySQL_from_8.0_to_8.4 --- mysql-connector-python.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec index cd005f7..43aa356 100644 --- a/mysql-connector-python.spec +++ b/mysql-connector-python.spec @@ -7,6 +7,10 @@ # Please, preserve the changelog entries # +%if 0%{?fedora} >= 43 +ExcludeArch: %{ix86} +%endif + # Tests only run on manual build --with tests # Tests rely on MySQL version 5.6 %global with_tests %{?_with_tests:1}%{!?_with_tests:0} @@ -21,7 +25,7 @@ Name: mysql-connector-python Version: 8.0.33 -Release: 4%{?dist} +Release: 5%{?dist} Summary: MySQL Connector for Python 3 # Automatically converted from old format: GPLv2 with exceptions - review is highly recommended. @@ -147,6 +151,9 @@ rm -r docs/mysqlx %{_mandir}/man1/%{name}3.1.* %changelog +* Tue Jul 29 2025 Michal Schorm - 8.0.33-5 +- Rebuild without i686 architecture - MySQL 8.4 no longer supports it + * Thu Jul 24 2025 Fedora Release Engineering - 8.0.33-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 3806812cec31f63f527c0b48d8ce3b30e476ffc4 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:01:14 +0200 Subject: [PATCH 5/6] Rebuilt for Python 3.14.0rc2 bytecode --- mysql-connector-python.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec index 43aa356..d40cf9e 100644 --- a/mysql-connector-python.spec +++ b/mysql-connector-python.spec @@ -25,7 +25,7 @@ ExcludeArch: %{ix86} Name: mysql-connector-python Version: 8.0.33 -Release: 5%{?dist} +Release: 6%{?dist} Summary: MySQL Connector for Python 3 # Automatically converted from old format: GPLv2 with exceptions - review is highly recommended. @@ -151,6 +151,9 @@ rm -r docs/mysqlx %{_mandir}/man1/%{name}3.1.* %changelog +* Fri Aug 15 2025 Python Maint - 8.0.33-6 +- Rebuilt for Python 3.14.0rc2 bytecode + * Tue Jul 29 2025 Michal Schorm - 8.0.33-5 - Rebuild without i686 architecture - MySQL 8.4 no longer supports it From b076e4e1950683e4ba067036e4bdd6b553cbf474 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:32:03 +0200 Subject: [PATCH 6/6] Rebuilt for Python 3.14.0rc3 bytecode --- mysql-connector-python.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql-connector-python.spec b/mysql-connector-python.spec index d40cf9e..9edcd5f 100644 --- a/mysql-connector-python.spec +++ b/mysql-connector-python.spec @@ -25,7 +25,7 @@ ExcludeArch: %{ix86} Name: mysql-connector-python Version: 8.0.33 -Release: 6%{?dist} +Release: 7%{?dist} Summary: MySQL Connector for Python 3 # Automatically converted from old format: GPLv2 with exceptions - review is highly recommended. @@ -151,6 +151,9 @@ rm -r docs/mysqlx %{_mandir}/man1/%{name}3.1.* %changelog +* Fri Sep 19 2025 Python Maint - 8.0.33-7 +- Rebuilt for Python 3.14.0rc3 bytecode + * Fri Aug 15 2025 Python Maint - 8.0.33-6 - Rebuilt for Python 3.14.0rc2 bytecode