git: 237bdefeda85 - main - misc/pqrs: fix build on powerpc*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 May 2023 13:46:11 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=237bdefeda8575f63fbdaffdbdf26d85fb421039
commit 237bdefeda8575f63fbdaffdbdf26d85fb421039
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-05-10 13:44:30 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-05-10 13:44:30 +0000
misc/pqrs: fix build on powerpc*
--> /wrkdirs/usr/ports/misc/pqrs/work/pqrs-0.2.2/cargo-crates/parquet-12.0.0/src/util/hash_util.rs:26:37
|
26 | fn hash_(data: &[u8], seed: u32) -> u32 {
| ----- ^^^ expected `u32`, found `()`
| |
| implicitly returns `()` as its body has no tail or `return` expression
|
help: consider returning the local binding `seed`
---
.../patch-cargo-crates_parquet-12.0.0_src_util_hash__util.rs | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/misc/pqrs/files/patch-cargo-crates_parquet-12.0.0_src_util_hash__util.rs b/misc/pqrs/files/patch-cargo-crates_parquet-12.0.0_src_util_hash__util.rs
new file mode 100644
index 000000000000..4a9d1c5c6fab
--- /dev/null
+++ b/misc/pqrs/files/patch-cargo-crates_parquet-12.0.0_src_util_hash__util.rs
@@ -0,0 +1,11 @@
+--- cargo-crates/parquet-12.0.0/src/util/hash_util.rs.orig 2023-05-10 13:42:08 UTC
++++ cargo-crates/parquet-12.0.0/src/util/hash_util.rs
+@@ -36,6 +36,8 @@ fn hash_(data: &[u8], seed: u32) -> u32 {
+ #[cfg(any(
+ target_arch = "aarch64",
+ target_arch = "arm",
++ target_arch = "powerpc",
++ target_arch = "powerpc64",
+ target_arch = "riscv64",
+ target_arch = "wasm32"
+ ))]