git: b14d26fc3943 - main - sysutils/reptyr: fix build on powerpc64*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 31 Oct 2026 21:33:51 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b14d26fc3943a3c9e0ce257a30e37a6326b478fc

commit b14d26fc3943a3c9e0ce257a30e37a6326b478fc
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-28 12:45:23 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-31 21:33:01 +0000

    sysutils/reptyr: fix build on powerpc64*
    
    The upstream commit used for powerpc64 support sits on top of a later
    change that passes the registers to arch_fixup_regs(), so it doesn't
    build with 0.10.0. Adjust the new header to the old interface.
---
 .../reptyr/files/patch-platform_freebsd_arch_powerpc64.h   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sysutils/reptyr/files/patch-platform_freebsd_arch_powerpc64.h b/sysutils/reptyr/files/patch-platform_freebsd_arch_powerpc64.h
new file mode 100644
index 000000000000..3e3556e20455
--- /dev/null
+++ b/sysutils/reptyr/files/patch-platform_freebsd_arch_powerpc64.h
@@ -0,0 +1,14 @@
+--- platform/freebsd/arch/powerpc64.h.orig	2026-10-28 12:40:19 UTC
++++ platform/freebsd/arch/powerpc64.h
+@@ -41,9 +41,9 @@ static struct ptrace_personality arch_personality[1] =
+ 
+ #define ptr(regs, off) ((unsigned long*)((void*)(regs)+(off)))
+ 
+-static inline void arch_fixup_regs(struct ptrace_child *child, struct reg *regs) {
++static inline void arch_fixup_regs(struct ptrace_child *child) {
+     /* SRR0 already points past the 4-byte sc instruction. */
+-    regs->pc -= 4;
++    child->regs.pc -= 4;
+ }
+ 
+ static inline void arch_set_register(struct ptrace_child *child, unsigned long oft, unsigned long val)