Below tested on amd64. It blew up last time on sparc64, perhaps a test build on that platform could be useful before it goes in?
ok? Index: Makefile =================================================================== RCS file: /cvs/ports/devel/acpica/Makefile,v retrieving revision 1.32 diff -u -p -u -r1.32 Makefile --- Makefile 5 Aug 2020 02:18:54 -0000 1.32 +++ Makefile 11 Oct 2020 14:52:35 -0000 @@ -1,9 +1,8 @@ # $OpenBSD: Makefile,v 1.32 2020/08/05 02:18:54 daniel Exp $ COMMENT = reference implementation of ACPI tools -DISTNAME = acpica-unix-20200717 +DISTNAME = acpica-unix-20200925 PKGNAME = ${DISTNAME:S/-unix//} -REVISION = 0 CATEGORIES = devel Index: distinfo =================================================================== RCS file: /cvs/ports/devel/acpica/distinfo,v retrieving revision 1.16 diff -u -p -u -r1.16 distinfo --- distinfo 18 Jul 2020 17:26:43 -0000 1.16 +++ distinfo 11 Oct 2020 14:52:35 -0000 @@ -1,2 +1,2 @@ -SHA256 (acpica-unix-20200717.tar.gz) = y5mQPvJAcy85WvQMI7mxnHiZAz9IhAdDVE7rttpyqCg= -SIZE (acpica-unix-20200717.tar.gz) = 1847795 +SHA256 (acpica-unix-20200925.tar.gz) = 1EOI4h49LkfG056ciXk10/d18E/sdicdy6Byx0+DRYk= +SIZE (acpica-unix-20200925.tar.gz) = 1851343 Index: patches/patch-source_include_platform_aclinux_h =================================================================== RCS file: /cvs/ports/devel/acpica/patches/patch-source_include_platform_aclinux_h,v retrieving revision 1.5 diff -u -p -u -r1.5 patch-source_include_platform_aclinux_h --- patches/patch-source_include_platform_aclinux_h 10 Jun 2019 19:02:21 -0000 1.5 +++ patches/patch-source_include_platform_aclinux_h 11 Oct 2020 14:52:35 -0000 @@ -14,12 +14,11 @@ Index: source/include/platform/aclinux.h #ifdef __KERNEL__ #define ACPI_USE_SYSTEM_INTTYPES -@@ -324,7 +328,7 @@ - +@@ -325,6 +329,7 @@ #if defined(__ia64__) || (defined(__x86_64__) && !defined(__ILP32__)) ||\ defined(__aarch64__) || defined(__PPC64__) ||\ -- defined(__s390x__) -+ defined(__s390x__) || defined(__sparc64__) + defined(__s390x__) ||\ ++ defined(__sparc64__) ||\ + (defined(__riscv) && (defined(__LP64__) || defined(_LP64))) #define ACPI_MACHINE_WIDTH 64 #define COMPILER_DEPENDENT_INT64 long - #define COMPILER_DEPENDENT_UINT64 unsigned long