Created attachment 245334 [details] devel/wasmer: Update to 4.2.1
Is there a changelog for this update? Any chance the build issues can be resolved? It would be great to have this port working on arm64 at least.
Changelog added to an URL field. I tried with arm64 an riscv64 architectures but build fails with errors related to libc::ucontext_t. I think that this is related to a low level context switching which is not implemented well in Rust for FreeBSD for certain architectures.
Will change the ONLY_FOR_ARCHS to BROKEN on aarch64 and riscv64 as the port is supposed to work there, but doesn't due to a bug. This may alert other contributors to see if they can develop patches to fix the issues. Note that similar issues like this (especially related to ucontext_t which is called mcontext_t and has different fields on FreeBSD) have been addressed in many other Rust ports on FreeBSD. Just search for the types involved in the ports tree and you'll find a bunch of patch files. Maybe one of them can be adapted to your use case?
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e537167de5b5c28c9b4980282d1a3a8e614e9ac5 commit e537167de5b5c28c9b4980282d1a3a8e614e9ac5 Author: Krešimir Jozić <kjozic@gmail.com> AuthorDate: 2023-09-30 15:14:35 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-09-30 20:00:02 +0000 devel/wasmer: Update to 4.2.1 Changelog: https://github.com/wasmerio/wasmer/blob/master/CHANGELOG.md#421---28092023 PR: 274175 devel/wasmer/Makefile | 7 +- devel/wasmer/Makefile.crates | 216 ++++++++++----------- devel/wasmer/distinfo | 438 ++++++++++++++++++++++--------------------- 3 files changed, 334 insertions(+), 327 deletions(-)
Thank you for your contribution. If you figure out a way to make the port work on aarch64 and riscv64, please open a new PR.