On 2025/01/27 12:29, Rob Schmersel wrote:
> The micro editor got marked BROKEN last year:
> https://marc.info/?l=openbsd-ports&m=171418988805644
> 
> I saw  the comments in this issue: 
> https://github.com/zyedidia/micro/issues/3557
> 
> And I tried compiling micro again and I can confirm that with the
> changes suggested by George Koehler, micro is now working on my -current
> machine ( #518: Wed Jan 22) using the master branch
> 
> > ZenMaster$ ./micro --version
> > Version: 2.0.15-dev.113
> > Commit hash: c02036e5
> > Compiled on January 27, 2025
> 
> Some questions:
> Do we want a port based on a development branch or should we wait for
> the 2.0.15 release (it's easy enough to compile yourself in the
> meantime :P)? 
> The changes mentioned have not yet been committed so patching in the
> port is still required. How can patches be applied to the downloaded go
> modules in the port? 
> 
> BR/Rob
> 

You can patch go.mod/go.sum to use a different version of a dep,
and you can patch source files in the _main_ distribution (it is a
bit of a nuisance to do this, but it is possible). However you
can't patch source files coming from a dep.

To patch files in the main distribution: since there is already a
"WRKDIST = ${WRKSRC}" you don't need to add that - run "make",
hit ^C partway through build, cd `make show=WRKSRC`, cp $file
$file.orig.port, vi $file, cd -, make update-patches

If patching go.mod/go.sum you also need to make the relevant
changes to modules.inc and "make makesum".

Reply via email to