public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-meson-python] rawhide: RHEL: Only error when patchelf-based rpath fixups would actually be used
Date: Sun, 08 Nov 2026 14:10:18 GMT	[thread overview]
Message-ID: <179414701805.1.16416259858599815117.rpms-python-meson-python-22ebaf3b36f2@fedoraproject.org> (raw)

            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}')
  

                 reply	other threads:[~2026-11-08 14:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179414701805.1.16416259858599815117.rpms-python-meson-python-22ebaf3b36f2@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox