Thursday, May 02, 2024

Re: Ports: micro is broken

I see, thanks for the detailed explanation.
I'll use mg then. :)

Regards,
--ext

Stuart Henderson írta 2024. máj.. 2, Cs-n 11:15 órakor:
> On 2024-05-02, Mizsei Zoltán <zmizsei@extrowerk.com> wrote:
>> I am unsure if this is the correct list for this to report, but there seems to be other mails regarding ports here, so...
>
> ports@openbsd.org is better for ports-related questions.
>
>> I am facing issues with the port of the "micro" editor (written in go) on OBSD 7.5. While the color handling was broken in 7.4, but otherwise the editor used to work, however now it doesn't even start:
>
> This is one of a number of pieces of software written in Go that don't
> work on OpenBSD 7.5 because they try to make system calls directly. These
> can now only be done via libc.
>
> Changing micro to use a newer version of the github.com/mattn/go-isatty
> will fix part of the problem.
>
> Another part is that it uses a fork of github.com/gdamore/tcell which
> doesn't track updates to the original (in particular there's use of
> syscall6 in https://github.com/zyedidia/tcell/blob/master/tscreen_bsd.go
> which needs changing). Perhaps it could move back to the original
> instead of the fork, perhaps the fork could be rebased on a newer
> upstream version, or perhaps it just needs a patch.
>
> There may be other issues but those two stand out. (There's some
> discussion about this on ports@ too).
>
>> In 7.4 i was able to use the official build (which had working colors in terminal), but since 7.5 it doesn1t runs anymore: https://github.com/zyedidia/micro/releases/download/v2.0.13/micro-2.0.13-openbsd64.tar.gz
>
> At the moment, pretty much no upstream-provided binaries for any Go
> software will work on 7.5, unless they were built using a version of Go
> with the patches in the OpenBSD ports tree.
>
> --
> Please keep replies on the mailing list.

--
--Z--

No comments:

Post a Comment