Cherry-pick pyo3-ffi fix for Python 3.14 i686 segfaults

This commit is contained in:
Benjamin A. Beasley 2025-06-05 07:41:17 -04:00
commit bb81ac5e19
2 changed files with 36 additions and 0 deletions

View file

@ -20,6 +20,15 @@ Source: %{pypi_source orjson}
# Support Python 3.14
# Updates bundled/forked pyo3-build-config/pyo3-ffi to 0.25.0
Patch: https://github.com/ijl/orjson/pull/570.patch
# Cherry-pick pyo3-ffi fix for Python 3.14 i686 segfaults:
#
# Make PyObjectObRefcnt.refcnt_and_flags 64-bit-only
# https://github.com/PyO3/pyo3/pull/5180
#
# Cherry-picked on top of https://github.com/ijl/orjson/pull/570 (without the
# commit adding a news fragment); see
# https://github.com/ijl/orjson/pull/570#issuecomment-2943844083.
Patch: 0001-Make-PyObjectObRefcnt.refcnt_and_flags-64-bit-only.patch
BuildRequires: tomcli
BuildRequires: python3-devel