Bug 274175 - devel/wasmer: Update to 4.2.1
Summary: devel/wasmer: Update to 4.2.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Robert Clausecker
URL: https://github.com/wasmerio/wasmer/bl...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-30 15:16 UTC by Krešimir Jozić
Modified: 2023-09-30 20:05 UTC (History)
1 user (show)

See Also:


Attachments
devel/wasmer: Update to 4.2.1 (86.26 KB, patch)
2023-09-30 15:16 UTC, Krešimir Jozić
kjozic: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krešimir Jozić 2023-09-30 15:16:22 UTC
Created attachment 245334 [details]
devel/wasmer: Update to 4.2.1
Comment 1 Robert Clausecker freebsd_committer freebsd_triage 2023-09-30 16:41:16 UTC
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.
Comment 2 Krešimir Jozić 2023-09-30 19:06:38 UTC
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.
Comment 3 Robert Clausecker freebsd_committer freebsd_triage 2023-09-30 19:30:54 UTC
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?
Comment 4 commit-hook freebsd_committer freebsd_triage 2023-09-30 20:01:25 UTC
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(-)
Comment 5 Robert Clausecker freebsd_committer freebsd_triage 2023-09-30 20:05:00 UTC
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.