public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-meson-python] rawhide: Update to 0.22.0 (close RHBZ#2541790)
@ 2026-09-28 8:05 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-28 8:05 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-meson-python
Branch : rawhide
Commit : 9a44578c1375b79c50cc20431c93aac02c794029
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-28T08:30:01+01:00
Stats : +80/-43 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/python-meson-python/c/9a44578c1375b79c50cc20431c93aac02c794029?branch=rawhide
Log:
Update to 0.22.0 (close RHBZ#2541790)
---
diff --git a/911.patch b/911.patch
new file mode 100644
index 0000000..1109d14
--- /dev/null
+++ b/911.patch
@@ -0,0 +1,23 @@
+From 5c86104b058e74c64767b5d346145493fb3a645b Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Mon, 28 Sep 2026 08:18:05 +0100
+Subject: [PATCH] Fix a minor typo in a test name
+
+Rename `test_uneeded_rpath` to `test_unneeded_rpath`.
+---
+ tests/test_wheel.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_wheel.py b/tests/test_wheel.py
+index a7cb150dc..d74f0f144 100644
+--- a/tests/test_wheel.py
++++ b/tests/test_wheel.py
+@@ -284,7 +284,7 @@ def test_link_against_local_lib_rpath_ldflags(package_link_against_local_lib, tm
+
+
+ @pytest.mark.skipif(sys.platform in {'win32', 'cygwin'}, reason='requires RPATH support')
+-def test_uneeded_rpath(wheel_purelib_and_platlib, tmp_path):
++def test_unneeded_rpath(wheel_purelib_and_platlib, tmp_path):
+ artifact = wheel.wheelfile.WheelFile(wheel_purelib_and_platlib)
+ artifact.extractall(tmp_path)
+
diff --git a/meson-python-0.18.0-remove-patchelf.patch b/meson-python-0.18.0-remove-patchelf.patch
deleted file mode 100644
index 824b8d0..0000000
--- a/meson-python-0.18.0-remove-patchelf.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff -Naur meson_python-0.18.0-original/mesonpy/__init__.py meson_python-0.18.0/mesonpy/__init__.py
---- meson_python-0.18.0-original/mesonpy/__init__.py 2025-05-05 06:07:43.000000000 -0400
-+++ meson_python-0.18.0/mesonpy/__init__.py 2025-05-05 08:19:01.630322169 -0400
-@@ -438,6 +438,7 @@
- # directory, in the form of a relative RPATH entry. meson-python
- # relocates the shared libraries to the $project.mesonpy.libs
- # folder. Rewrite the RPATH to point to that folder instead.
-+ assert False, "Patchelf is not allowed to run on RHEL"
- libspath = os.path.relpath(self._libs_dir, destination.parent)
- mesonpy._rpath.fix_rpath(origin, libspath)
-
-@@ -1166,9 +1167,6 @@
- if os.environ.get('NINJA') is None and _env_ninja_command() is None:
- dependencies.append(f'ninja >= {_NINJA_REQUIRED_VERSION}')
-
-- if sys.platform.startswith('linux') and not shutil.which('patchelf'):
-- dependencies.append('patchelf >= 0.11.0')
--
- return dependencies
-
-
-diff -Naur meson_python-0.18.0-original/mesonpy/_rpath.py meson_python-0.18.0/mesonpy/_rpath.py
---- meson_python-0.18.0-original/mesonpy/_rpath.py 2025-05-05 06:07:43.000000000 -0400
-+++ meson_python-0.18.0/mesonpy/_rpath.py 2025-05-05 08:20:15.209296624 -0400
-@@ -73,10 +73,12 @@
- # Assume that any other platform uses ELF binaries.
-
- def _get_rpath(filepath: Path) -> List[str]:
-+ assert False, "Patchelf is not allowed to run on RHEL"
- r = subprocess.run(['patchelf', '--print-rpath', os.fspath(filepath)], capture_output=True, text=True)
- return r.stdout.strip().split(':')
-
- def _set_rpath(filepath: Path, rpath: Iterable[str]) -> None:
-+ assert False, "Patchelf is not allowed to run on RHEL"
- subprocess.run(['patchelf','--set-rpath', ':'.join(rpath), os.fspath(filepath)], check=True)
-
- def fix_rpath(filepath: Path, libs_relative_path: str) -> None:
diff --git a/meson-python-0.22.0-remove-patchelf.patch b/meson-python-0.22.0-remove-patchelf.patch
new file mode 100644
index 0000000..946f758
--- /dev/null
+++ b/meson-python-0.22.0-remove-patchelf.patch
@@ -0,0 +1,41 @@
+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)
+
+ try:
+@@ -1305,9 +1307,6 @@
+ if os.environ.get('NINJA') is None and _env_ninja_command() is None:
+ dependencies.append(f'ninja >= {_NINJA_REQUIRED_VERSION}')
+
+- if sys.platform.startswith('linux') and not shutil.which('patchelf'):
+- dependencies.append('patchelf >= 0.11.0')
+-
+ return dependencies
+
+
+diff -Naur a/mesonpy/_rpath.py b/mesonpy/_rpath.py
+--- a/mesonpy/_rpath.py 2026-09-26 09:26:44.000000000 +0100
++++ b/mesonpy/_rpath.py 2026-09-28 08:03:40.992990914 +0100
+@@ -139,11 +139,13 @@
+
+ @staticmethod
+ def get_rpath(filepath: Path) -> list[str]:
++ assert False, "Patchelf is not allowed to run on RHEL"
+ r = subprocess.run(['patchelf', '--print-rpath', os.fspath(filepath)], capture_output=True, text=True)
+ return [x for x in r.stdout.strip().split(':') if x]
+
+ @staticmethod
+ def set_rpath(filepath: Path, old: list[str], rpath: list[str]) -> None:
++ assert False, "Patchelf is not allowed to run on RHEL"
+ subprocess.run(['patchelf','--set-rpath', ':'.join(rpath), os.fspath(filepath)], check=True)
+
+
diff --git a/python-meson-python.spec b/python-meson-python.spec
index c131bb2..9c8cf83 100644
--- a/python-meson-python.spec
+++ b/python-meson-python.spec
@@ -12,7 +12,7 @@
Name: python-meson-python
Summary: The Python build backend for Meson projects
-Version: 0.21.1
+Version: 0.22.0
Release: %autorelease
# SPDX
@@ -20,9 +20,13 @@ License: MIT
URL: https://github.com/mesonbuild/meson-python
Source: %{pypi_source meson_python}
+# TST: Fix a minor typo in a test name
+# https://github.com/mesonbuild/meson-python/pull/911
+Patch: %{url}/pull/911.patch
+
# Downstream-only patch to remove the patchelf dependency (and corresponding
# functionality), controlled by the patchelf build conditional
-Patch100: meson-python-0.18.0-remove-patchelf.patch
+Patch100: meson-python-0.22.0-remove-patchelf.patch
BuildSystem: pyproject
BuildOption(generate_buildrequires): --pyproject-dependencies
@@ -103,18 +107,24 @@ k="${k-}${k+ and }not test_use_ansi_escapes"
%endif
%if %{without wheel}
ignore="${ignore-} --ignore=tests/test_editable.py"
+ignore="${ignore-} --ignore=tests/test_rpath.py"
ignore="${ignore-} --ignore=tests/test_wheel.py"
ignore="${ignore-} --ignore=tests/test_wheelfile.py"
%endif
%if %{without patchelf}
+k="${k-}${k+ and }not test_cmake_subproject"
k="${k-}${k+ and }not test_contents"
+k="${k-}${k+ and }not test_get_requires_for_build_wheel"
+# Including test_link_against_local_lib_rpath_ldflags:
+k="${k-}${k+ and }not test_link_against_local_lib_rpath"
k="${k-}${k+ and }not test_local_lib"
k="${k-}${k+ and }not test_rpath"
-k="${k-}${k+ and }not test_get_requires_for_build_wheel"
-k="${k-}${k+ and }not test_uneeded_rpath"
+# Including test_sharedlib_in_package_{legacy,rpath,rpath_ldflags}:
+k="${k-}${k+ and }not test_sharedlib_in_package"
+k="${k-}${k+ and }not test_unneeded_rpath"
%endif
-%pytest ${ignore-} -k "${k-}"
+%pytest ${ignore-} -k "${k-}" --verbose
%endif
diff --git a/sources b/sources
index 68a3249..ef7261f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (meson_python-0.21.1.tar.gz) = edeca170dfe5faca7a0771179b48b4f8cf526fc06371cd22475b37edc5dc960c56584738da645ec9a5983ae7df580f8ad0affca26eb88dd6d0d0fd1d2ec876e3
+SHA512 (meson_python-0.22.0.tar.gz) = ac016ae6056557654a8b65b033829e6512572d33fbc93a3f49c1c5691db6a4baac968b3a3eca77892840960e817704ce9209878ff51d788c618038a3a010f7d7
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-28 8:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 8:05 [rpms/python-meson-python] rawhide: Update to 0.22.0 (close RHBZ#2541790) Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox