[packages/ceph] PySys_SetPath hack from FC

arekm arekm at pld-linux.org
Sun Mar 16 16:36:10 CET 2025


commit aa9175f83d7ec674ef126e776aab6d761bdd9488
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 16 16:01:10 2025 +0100

    PySys_SetPath hack from FC

 0041-src-mgr-PyModule.cc.patch | 19 +++++++++++++++++++
 ceph.spec                      |  4 ++--
 2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/ceph.spec b/ceph.spec
index f6e88e7..e35ae48 100644
--- a/ceph.spec
+++ b/ceph.spec
@@ -75,7 +75,7 @@ Patch9:		long-int-time_t.patch
 Patch10:	%{name}-system-rocksdb.patch
 # https://src.fedoraproject.org/rpms/ceph/blob/rawhide/f/0020-src-arrow-cpp-cmake_modules-ThirdpartyToolchain.cmake.patch
 Patch11:	%{name}-system-xsimd.patch
-
+Patch12:	0041-src-mgr-PyModule.cc.patch
 Patch13:	boost-1.86.patch
 Patch14:	boost-1.87.patch
 Patch15:	x32.patch
@@ -356,7 +356,7 @@ uruchamiania demonów.
 %endif
 %patch -P 10 -p1
 %patch -P 11 -p1
-
+%patch -P 12 -p1
 %patch -P 13 -p1
 %patch -P 14 -p1
 %patch -P 15 -p1
diff --git a/0041-src-mgr-PyModule.cc.patch b/0041-src-mgr-PyModule.cc.patch
new file mode 100644
index 0000000..937a18a
--- /dev/null
+++ b/0041-src-mgr-PyModule.cc.patch
@@ -0,0 +1,19 @@
+--- ceph-18.2.3/src/mgr/PyModule.cc.orig	2024-06-06 16:31:10.340731851 -0400
++++ ceph-18.2.3/src/mgr/PyModule.cc	2024-06-07 12:58:49.913571410 -0400
+@@ -342,6 +342,16 @@
+   return ceph_module;
+ }
+ 
++// FIXME
++// Removed in Python 3.13 API, but kept for the stable ABI
++#ifdef __cplusplus
++extern "C" {
++#endif
++PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
++#ifdef __cplusplus
++}
++#endif
++
+ int PyModule::load(PyThreadState *pMainThreadState)
+ {
+   ceph_assert(pMainThreadState != nullptr);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ceph.git/commitdiff/aa9175f83d7ec674ef126e776aab6d761bdd9488



More information about the pld-cvs-commit mailing list