From edc1c3505b03cf1ab38e284ae341a8670cf153e9 Mon Sep 17 00:00:00 2001 From: sergesanspaille Date: Thu, 31 Jul 2025 10:10:18 +0200 Subject: [PATCH 1/3] Backport PyBind11 3.x compatibility patch Fix rhbz#2383231 --- .gitignore | 1 + sources | 1 + xtensor-python.spec | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a7e0e85..154b264 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /xtensor-python-0.23.1.tar.gz /xtensor-python-0.24.1.tar.gz /xtensor-python-0.26.0.tar.gz +/324.diff diff --git a/sources b/sources index 44c806e..4963f36 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ +SHA512 (324.diff) = 379dd32dbe806a5c2b9351506030cf746950555fa2408401d3a901a1357321fd681cee169b2055e049d52a693a2d4fb743438d99883653aa64a33861330f0136 SHA512 (xtensor-python-0.26.0.tar.gz) = 7a7318fe212e354466175cda4bd264e56da3faf190aa34b6b086373fa08b7181a9356db4d396b8932d0be4738cb33fd4fb378c60bb94b3f8c858178b31acac89 diff --git a/xtensor-python.spec b/xtensor-python.spec index fe47c52..8df333b 100644 --- a/xtensor-python.spec +++ b/xtensor-python.spec @@ -10,6 +10,7 @@ URL: https://xtensor-python.readthedocs.io/ %global github https://github.com/QuantStack/xtensor-python Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz +Patch0: %{github}/pull/324.diff # because xtensor does so for armv7hl, ppc64le and s390x ExcludeArch: armv7hl ppc64le s390x From b91c5e3d0fe1f602134f6b5fbe7341f1ef1bf134 Mon Sep 17 00:00:00 2001 From: sergesanspaille Date: Thu, 31 Jul 2025 16:53:16 +0200 Subject: [PATCH 2/3] Backport PyBind11 3.x compatibility patch again --- .gitignore | 1 + sources | 1 + xtensor-python.spec | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 154b264..d4455ad 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /xtensor-python-0.24.1.tar.gz /xtensor-python-0.26.0.tar.gz /324.diff +/326.diff diff --git a/sources b/sources index 4963f36..eac2983 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ +SHA512 (326.diff) = d2a6110f360ae68e3463d07fcbda5825ab7f41d23fee722216170f42a85c8b3236d3f6df2a4493e3a89ca9eee2bb796df0659d0a59028cc7f2c9d6f521a32493 SHA512 (324.diff) = 379dd32dbe806a5c2b9351506030cf746950555fa2408401d3a901a1357321fd681cee169b2055e049d52a693a2d4fb743438d99883653aa64a33861330f0136 SHA512 (xtensor-python-0.26.0.tar.gz) = 7a7318fe212e354466175cda4bd264e56da3faf190aa34b6b086373fa08b7181a9356db4d396b8932d0be4738cb33fd4fb378c60bb94b3f8c858178b31acac89 diff --git a/xtensor-python.spec b/xtensor-python.spec index 8df333b..76d531a 100644 --- a/xtensor-python.spec +++ b/xtensor-python.spec @@ -11,6 +11,7 @@ URL: https://xtensor-python.readthedocs.io/ %global github https://github.com/QuantStack/xtensor-python Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz Patch0: %{github}/pull/324.diff +Patch1: %{github}/pull/326.diff # because xtensor does so for armv7hl, ppc64le and s390x ExcludeArch: armv7hl ppc64le s390x From de4404ab661568b4b02729a215c6fd1affe4d6f6 Mon Sep 17 00:00:00 2001 From: sergesanspaille Date: Thu, 31 Jul 2025 17:59:00 +0200 Subject: [PATCH 3/3] Backport PyBind11 3.x compatibility patch Again --- .gitignore | 1 + sources | 1 + xtensor-python.spec | 1 + 3 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index d4455ad..5f73308 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /xtensor-python-0.26.0.tar.gz /324.diff /326.diff +/325.diff diff --git a/sources b/sources index eac2983..81812f7 100644 --- a/sources +++ b/sources @@ -1,3 +1,4 @@ +SHA512 (325.diff) = b8665edc81840c8fe247ce75b1224b6ea457748cb28e937f48da919c7f0750b9eeca6e75af087b8f74a748d050dd7f156b570c73e45e98410568616b168d6df0 SHA512 (326.diff) = d2a6110f360ae68e3463d07fcbda5825ab7f41d23fee722216170f42a85c8b3236d3f6df2a4493e3a89ca9eee2bb796df0659d0a59028cc7f2c9d6f521a32493 SHA512 (324.diff) = 379dd32dbe806a5c2b9351506030cf746950555fa2408401d3a901a1357321fd681cee169b2055e049d52a693a2d4fb743438d99883653aa64a33861330f0136 SHA512 (xtensor-python-0.26.0.tar.gz) = 7a7318fe212e354466175cda4bd264e56da3faf190aa34b6b086373fa08b7181a9356db4d396b8932d0be4738cb33fd4fb378c60bb94b3f8c858178b31acac89 diff --git a/xtensor-python.spec b/xtensor-python.spec index 76d531a..9f90240 100644 --- a/xtensor-python.spec +++ b/xtensor-python.spec @@ -12,6 +12,7 @@ URL: https://xtensor-python.readthedocs.io/ Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz Patch0: %{github}/pull/324.diff Patch1: %{github}/pull/326.diff +Patch2: %{github}/pull/325.diff # because xtensor does so for armv7hl, ppc64le and s390x ExcludeArch: armv7hl ppc64le s390x