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.
This commit is contained in:
Pavol Sloboda 2025-07-21 13:54:05 +02:00
commit a643b468a5
2 changed files with 16 additions and 0 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)