git: eb44ce125fb5 - main - devel/py-spy: fix build on ARM / POWER
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Feb 2026 13:12:26 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=eb44ce125fb51f093fa6927f2227b1c4bc761a37
commit eb44ce125fb51f093fa6927f2227b1c4bc761a37
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-02-18 13:02:10 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-02-18 13:12:20 +0000
devel/py-spy: fix build on ARM / POWER
error[E0308]: mismatched types
--> /wrkdirs/usr/ports/devel/py-spy/work/py_spy-0.4.1/cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs:188:52
|
188 | let result = unsafe { ptrace(PT_VM_ENTRY, pid, &vm_entry as *const _ as *mut i8, 0) };
| ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*mut u8`
found raw pointer `*mut i8`
note: function defined here
--> /wrkdirs/usr/ports/devel/py-spy/work/py_spy-0.4.1/cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs:150:8
|
150 | fn ptrace(request: c_int, pid: Pid, vm_entry: caddr_t, data: c_int) -> c_int;
| ^^^^^^ --------
For more information about this error, try `rustc --explain E0308`.
error: could not compile `proc-maps` (lib) due to 1 previous error
---
...h-cargo-crates_proc-maps-0.4.0_src_freebsd__maps_ptrace.rs | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/devel/py-spy/files/patch-cargo-crates_proc-maps-0.4.0_src_freebsd__maps_ptrace.rs b/devel/py-spy/files/patch-cargo-crates_proc-maps-0.4.0_src_freebsd__maps_ptrace.rs
new file mode 100644
index 000000000000..f4e282b3b13a
--- /dev/null
+++ b/devel/py-spy/files/patch-cargo-crates_proc-maps-0.4.0_src_freebsd__maps_ptrace.rs
@@ -0,0 +1,11 @@
+--- cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs.orig 2026-02-18 12:55:35 UTC
++++ cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs
+@@ -185,7 +185,7 @@ pub fn read_vm_entry(pid: Pid, vm_entry: ptrace_vm_ent
+
+ /// Read virtual memory entry
+ pub fn read_vm_entry(pid: Pid, vm_entry: ptrace_vm_entry) -> io::Result<ptrace_vm_entry> {
+- let result = unsafe { ptrace(PT_VM_ENTRY, pid, &vm_entry as *const _ as *mut i8, 0) };
++ let result = unsafe { ptrace(PT_VM_ENTRY, pid, &vm_entry as *const _ as *mut c_char, 0) };
+
+ if result == -1 {
+ Err(io::Error::last_os_error())