public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-meson-python] rawhide: RHEL: Only error when patchelf-based rpath fixups would actually be used
@ 2026-11-08 14:10
0 siblings, 0 replies; only message in thread
From: @ 2026-11-08 14:10 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-meson-python
Branch : rawhide
Commit : 22ebaf3b36f26a7f210cc50192defa202d962c90
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-11-06T22:14:02+01:00
Stats : +15/-12 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-meson-python/c/22ebaf3b36f26a7f210cc50192defa202d962c90?branch=rawhide
Log:
RHEL: Only error when patchelf-based rpath fixups would actually be used
The downstream patchelf-removal patch asserted False unconditionally
whenever a native file belonged to the "internal libs" wheel category,
even when meson set no install_rpath/build_rpath on it at all.
dbus-python from https://src.fedoraproject.org/rpms/dbus-python/pull-request/12
trips this merely by installing a pkgconfig file to %{_libdir}/pkgconfig,
which meson-python's manifest classifier treats the same as a bundled shared library,
even though both its extension modules have no rpath to fix.
Only assert False when install_rpath or build_rpath is non-empty,
i.e. when there is actually something for patchelf to do,
merely skip the mesonpy._rpath.fix_rpath() call otherwise.
Assisted-By: Claude Sonnet 5
---
diff --git a/meson-python-0.22.0-remove-patchelf.patch b/meson-python-0.22.0-remove-patchelf.patch
index 946f758..3844bcf 100644
--- a/meson-python-0.22.0-remove-patchelf.patch
+++ b/meson-python-0.22.0-remove-patchelf.patch
@@ -1,18 +1,21 @@
diff -Naur a/mesonpy/__init__.py b/mesonpy/__init__.py
---- a/mesonpy/__init__.py 2026-09-26 09:26:44.000000000 +0100
-+++ b/mesonpy/__init__.py 2026-09-28 08:04:28.882718888 +0100
-@@ -471,8 +471,10 @@
-
- if self._has_internal_libs and _is_native(origin):
- libspath = os.path.relpath(self._libs_dir, destination.parent)
-+ assert False, "Patchelf is not allowed to run on RHEL"
- mesonpy._rpath.fix_rpath(origin, install_rpath, build_rpath, libspath)
- elif install_rpath or build_rpath:
-+ assert False, "Patchelf is not allowed to run on RHEL"
- mesonpy._rpath.fix_rpath(origin, install_rpath, build_rpath, None)
+--- a/mesonpy/__init__.py 2026-11-06 21:59:18.448288733 +0100
++++ b/mesonpy/__init__.py 2026-11-06 22:03:47.994297087 +0100
+@@ -491,11 +491,8 @@
+ install_rpath: List[str], build_rpath: List[str]) -> None:
+ """Add a file to the wheel."""
+
+- if self._has_internal_libs and _is_native(origin):
+- libspath = os.path.relpath(self._libs_dir, destination.parent)
+- mesonpy._rpath.fix_rpath(origin, install_rpath, build_rpath, libspath)
+- elif install_rpath or build_rpath:
+- mesonpy._rpath.fix_rpath(origin, install_rpath, build_rpath, None)
++ if install_rpath or build_rpath:
++ assert False, "Patchelf is not allowed to run on RHEL"
try:
-@@ -1305,9 +1307,6 @@
+ wheel_file.write(origin, destination.as_posix())
+@@ -1327,9 +1324,6 @@
if os.environ.get('NINJA') is None and _env_ninja_command() is None:
dependencies.append(f'ninja >= {_NINJA_REQUIRED_VERSION}')
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-08 14:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 14:10 [rpms/python-meson-python] rawhide: RHEL: Only error when patchelf-based rpath fixups would actually be used
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox