Created attachment 224993 [details] Patch to port xosview uses APM api to get info from battery. This blocks the compilation under architectures other than amd64 and i386. This patch adds a conditional compilation that enables the compile and run of xosview under others archs than amd64 and i386. Tested under aarch64.
I approve this patch
(In reply to otacilio.neto from comment #0) Thanks for the patch, can you setup your name (at https://bugs.freebsd.org/bugzilla/userprefs.cgi?tab=account ) then we can use it in the author field in the git log?
(In reply to Li-Wen Hsu from comment #2) Ok. Name updated.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=fb4bd742805ad510aa813c322045875e72f05eac commit fb4bd742805ad510aa813c322045875e72f05eac Author: OtacÃlio de Araújo Ramos Neto <otacilio.neto@bsd.com.br> AuthorDate: 2021-05-24 00:46:29 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2021-05-24 00:46:29 +0000 sysutils/xosview: Fix build for aarch64 and other archs PR: 255922 sysutils/xosview/Makefile | 4 +- sysutils/xosview/files/patch-bsd_kernel.cc (new) | 50 ++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 3 deletions(-)