Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Python Maint
b076e4e195 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:32:03 +02:00
Python Maint
3806812cec Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:01:14 +02:00
fc4b2fbfd1 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
2025-07-29 12:51:18 +02:00
Fedora Release Engineering
12a2629160 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 22:33:07 +00:00
ddbcd03dca Bump release for package rebuild 2025-07-21 14:58:18 +02:00
Pavol Sloboda
a643b468a5 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.
2025-07-21 13:54:05 +02:00
2 changed files with 36 additions and 1 deletions

View file

@ -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)

View file

@ -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: 2%{?dist}
Release: 7%{?dist}
Summary: MySQL Connector for Python 3
# Automatically converted from old format: GPLv2 with exceptions - review is highly recommended.
@ -37,6 +41,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 +89,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
@ -144,6 +151,21 @@ rm -r docs/mysqlx
%{_mandir}/man1/%{name}3.1.*
%changelog
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 8.0.33-7
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 8.0.33-6
- Rebuilt for Python 3.14.0rc2 bytecode
* Tue Jul 29 2025 Michal Schorm <mschorm@redhat.com> - 8.0.33-5
- Rebuild without i686 architecture - MySQL 8.4 no longer supports it
* Thu Jul 24 2025 Fedora Release Engineering <releng@fedoraproject.org> - 8.0.33-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Mon Jul 21 2025 Michal Schorm <mschorm@redhat.com> - 8.0.33-3
- Bump release for package rebuild
* Tue Jul 15 2025 Michal Schorm <mschorm@redhat.com> - 8.0.33-2
- Bump release for package rebuild