Index | Thread | Search

From:
Rob Schmersel <rob.schmersel@bahnhof.se>
Subject:
Re: micro editor
To:
ports@openbsd.org
Date:
Mon, 8 Sep 2025 11:07:38 +0200

Download raw body.

Thread
  • Stuart Henderson:

    micro editor

  • Sebastien Marie:

    micro editor

    • Rob Schmersel:

      micro editor

On Mon, 08 Sep 2025 09:26:54 +0200
Sebastien Marie <semarie@kapouay.eu.org> wrote:

> Rob Schmersel <rob.schmersel@bahnhof.se> writes:
> 
> > Hi,
> >
> > Since awhile the micro editor nightly release is working on openbsd
> > when manually compiled.
> >
> > Been attempting to update the port with the aim to use a commit
> > hash, but it seems that go-module support requires a released
> > version 
> >
> > Attempting to use nightly (not nice since that is a moving target)
> > or a commit hash does not work
> >
> 
> I tried to update editors/micro to use latest commit at
> https://github.com/zyedidia/micro, but the binary still fail to start
> with the same message:
> 
> $ ./micro
> function not implemented
> Fatal: Micro could not initialize a Screen.
> 
> Below is the diff I used.
> 
> How to do manually compile micro ? I am very poor in go tooling,
> please being explicit :)
> 
> Regards

Hi Sebastian,

It seems I'm really bad at go tooling as well (this just goes to show)
what I used:

rm -rf .cache/go-build
git clone https://github.com/zyedidia/micro.git
cd micro
gmake

after this it was working. What I did not realize that there is ALSO a
pkg cache in ~/go/pkg and I had made changes there to make it work

rm -rf .cache/go-build
rm -rf go
git clone https://github.com/zyedidia/micro.git
cd micro
gmake

and it is no longer working as you showed.

Changes made are described here:
https://marc.info/?l=openbsd-ports&m=171418988805644

Embarrassed greetings
/Rob