Debian Codegraph @

debian/patches/ppc.patch

raw
1 Description: Disable linux_uring backend on 32-bit PowerPC
2 Author: Yuri Konotopov <[email protected]>
3 Forwarded: not-needed
4 Last-Update: 2026-08-29
5 ---
6 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
7 --- caio.orig/setup.py
8 +++ caio/setup.py
9 @@ -7,6 +7,7 @@ module_name = "caio"
10
11
12 OS_NAME = platform.system().lower()
13 +MACHINE = platform.machine().lower()
14 extensions = []
15
16
17 @@ -40,13 +41,14 @@ if "linux" in OS_NAME:
18 extra_compile_args=["-g"],
19 ),
20 )
21 - extensions.append(
22 - Extension(
23 - "{}.linux_uring".format(module_name),
24 - ["{}/linux_uring.c".format(module_name)],
25 - extra_compile_args=["-g"],
26 - ),
27 - )
28 + if MACHINE not in {"ppc", "powerpc"}:
29 + extensions.append(
30 + Extension(
31 + "{}.linux_uring".format(module_name),
32 + ["{}/linux_uring.c".format(module_name)],
33 + extra_compile_args=["-g"],
34 + ),
35 + )
36
37
38 setup(