Index | Thread | Search

From:
Matthieu Herrb <matthieu@openbsd.org>
Subject:
[llvm22] fix emulators/xcopilot
To:
ports@openbsd.org
Date:
Mon, 8 Jun 2026 22:36:16 +0200

Download raw body.

Thread
Loook trivial, but another pair of eyes is welcome...

ok?

Index: Makefile
===================================================================
RCS file: /local/cvs/ports/emulators/xcopilot/Makefile,v
diff -u -p -u -r1.26 Makefile
--- Makefile	21 Sep 2023 13:10:27 -0000	1.26
+++ Makefile	8 Jun 2026 20:34:50 -0000
@@ -1,7 +1,7 @@
 COMMENT=	emulator for US Robotics Pilot PDA
 
 DISTNAME=	xcopilot-0.6.6
-REVISION=	3
+REVISION=	4
 CATEGORIES=	emulators
 
 # GPL
Index: patches/patch-mc68k_memory_c
===================================================================
RCS file: /local/cvs/ports/emulators/xcopilot/patches/patch-mc68k_memory_c,v
diff -u -p -u -r1.2 patch-mc68k_memory_c
--- patches/patch-mc68k_memory_c	11 Mar 2022 18:59:43 -0000	1.2
+++ patches/patch-mc68k_memory_c	8 Jun 2026 20:34:50 -0000
@@ -1,5 +1,6 @@
---- mc68k/memory.c.orig	Sun May 23 19:36:04 2010
-+++ mc68k/memory.c	Sun May 23 19:37:33 2010
+Index: mc68k/memory.c
+--- mc68k/memory.c.orig
++++ mc68k/memory.c
 @@ -340,6 +340,7 @@ UWORD *rom_xlate(CPTR addr)
  static int
  verify_entrypoint(const void *rom)
@@ -22,7 +23,7 @@
  
  	memcpy(((char *)rommemory) - offset, rommemory, 256);
 -	((char *)rommemory) -= offset;
-+	rommemory = (char *)rommemory - offset;
++	rommemory = (UWORD *)((char *)rommemory - offset);
        }
      }
    }

-- 
Matthieu Herrb