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:
Author: OtacÃlio de AraÃºjo Ramos Neto <firstname.lastname@example.org>
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
sysutils/xosview/Makefile | 4 +-
sysutils/xosview/files/patch-bsd_kernel.cc (new) | 50 ++++++++++++++++++++++++
2 files changed, 51 insertions(+), 3 deletions(-)