diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pyruvate/0001-statfs-Exclude-riscv32.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-pyruvate/0001-statfs-Exclude-riscv32.patch | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pyruvate/0001-statfs-Exclude-riscv32.patch b/meta-python/recipes-devtools/python/python3-pyruvate/0001-statfs-Exclude-riscv32.patch new file mode 100644 index 0000000000..b482d7c0db --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyruvate/0001-statfs-Exclude-riscv32.patch | |||
@@ -0,0 +1,108 @@ | |||
1 | From ccdc974dc10c83e29d551492fb2d17a2ff8c2b84 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 5 Mar 2022 22:30:15 -0800 | ||
4 | Subject: [PATCH] statfs: Exclude riscv32 | ||
5 | |||
6 | Upstream-Status: Submitted [https://github.com/nix-rust/nix/pull/1669] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | src/sys/statfs.rs | 20 ++++++++++---------- | ||
10 | 1 file changed, 10 insertions(+), 10 deletions(-) | ||
11 | |||
12 | diff --git a/src/sys/statfs.rs b/src/sys/statfs.rs | ||
13 | index 829be57..6b88dad 100644 | ||
14 | --- a/src/sys/statfs.rs | ||
15 | +++ b/src/sys/statfs.rs | ||
16 | @@ -292,7 +292,7 @@ impl Statfs { | ||
17 | } | ||
18 | |||
19 | /// Total data blocks in filesystem | ||
20 | - #[cfg(all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
21 | + #[cfg(all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
22 | pub fn blocks(&self) -> u64 { | ||
23 | self.0.f_blocks | ||
24 | } | ||
25 | @@ -305,7 +305,7 @@ impl Statfs { | ||
26 | target_os = "freebsd", | ||
27 | target_os = "openbsd", | ||
28 | target_os = "dragonfly", | ||
29 | - all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
30 | + all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
31 | )))] | ||
32 | pub fn blocks(&self) -> libc::c_ulong { | ||
33 | self.0.f_blocks | ||
34 | @@ -330,7 +330,7 @@ impl Statfs { | ||
35 | } | ||
36 | |||
37 | /// Free blocks in filesystem | ||
38 | - #[cfg(all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
39 | + #[cfg(all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
40 | pub fn blocks_free(&self) -> u64 { | ||
41 | self.0.f_bfree | ||
42 | } | ||
43 | @@ -343,7 +343,7 @@ impl Statfs { | ||
44 | target_os = "freebsd", | ||
45 | target_os = "openbsd", | ||
46 | target_os = "dragonfly", | ||
47 | - all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
48 | + all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
49 | )))] | ||
50 | pub fn blocks_free(&self) -> libc::c_ulong { | ||
51 | self.0.f_bfree | ||
52 | @@ -368,7 +368,7 @@ impl Statfs { | ||
53 | } | ||
54 | |||
55 | /// Free blocks available to unprivileged user | ||
56 | - #[cfg(all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
57 | + #[cfg(all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
58 | pub fn blocks_available(&self) -> u64 { | ||
59 | self.0.f_bavail | ||
60 | } | ||
61 | @@ -381,7 +381,7 @@ impl Statfs { | ||
62 | target_os = "freebsd", | ||
63 | target_os = "openbsd", | ||
64 | target_os = "dragonfly", | ||
65 | - all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
66 | + all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
67 | )))] | ||
68 | pub fn blocks_available(&self) -> libc::c_ulong { | ||
69 | self.0.f_bavail | ||
70 | @@ -406,7 +406,7 @@ impl Statfs { | ||
71 | } | ||
72 | |||
73 | /// Total file nodes in filesystem | ||
74 | - #[cfg(all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
75 | + #[cfg(all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
76 | pub fn files(&self) -> libc::fsfilcnt_t { | ||
77 | self.0.f_files | ||
78 | } | ||
79 | @@ -419,7 +419,7 @@ impl Statfs { | ||
80 | target_os = "freebsd", | ||
81 | target_os = "openbsd", | ||
82 | target_os = "dragonfly", | ||
83 | - all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
84 | + all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
85 | )))] | ||
86 | pub fn files(&self) -> libc::c_ulong { | ||
87 | self.0.f_files | ||
88 | @@ -449,7 +449,7 @@ impl Statfs { | ||
89 | } | ||
90 | |||
91 | /// Free file nodes in filesystem | ||
92 | - #[cfg(all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
93 | + #[cfg(all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))))] | ||
94 | pub fn files_free(&self) -> libc::fsfilcnt_t { | ||
95 | self.0.f_ffree | ||
96 | } | ||
97 | @@ -462,7 +462,7 @@ impl Statfs { | ||
98 | target_os = "freebsd", | ||
99 | target_os = "openbsd", | ||
100 | target_os = "dragonfly", | ||
101 | - all(target_os = "linux", any(target_env = "musl", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
102 | + all(target_os = "linux", any(target_env = "musl", target_arch = "riscv32", all(target_arch = "x86_64", target_pointer_width = "32"))) | ||
103 | )))] | ||
104 | pub fn files_free(&self) -> libc::c_ulong { | ||
105 | self.0.f_ffree | ||
106 | -- | ||
107 | 2.35.1 | ||
108 | |||