pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: shells/oh-my-posh
I see shells/oh-my-posh has been upgraded and now builds under pkgsrc.
It works OK on amd64, but fails under aarch64 - apparently using
packages assuming that NetBSD works only under amd64. It fails in
finding the location of its own executable:
$ /usr/pkg/bin/oh-my-posh prompt init zsh
echo "Unable to find Oh My Posh executable"
I was able to shunt the corresponding error and got it somewhat
working under aarch64 by running the initializer as above, capturing
the output and replacing the four empty ('') executable locations with
the real file spec, then adding the result to the shell init file.
I presume that it would fail on other architectures and most likely
succeed under i386, but I haven't got a machine right now to confirm.
Just FYI.
Chavdar
On Sat, 8 Apr 2023 at 07:04, pin <voidpin%protonmail.com@localhost> wrote:
>
> -------- Original Message --------
> On Apr 7, 2023, 19:13, Benny Siegert < bsiegert%gmail.com@localhost> wrote:
> On Tue, 21 Mar 2023, pin wrote: > I've done similar things with Rust packages where there was 'target_os=linux'. > Adding 'target_os=netbsd' solved the issues in > 90% of the cases. > > It's a staring point. > I don't know how it works in Go but, in Rust using unix is not a very good idea because macos is also unix. As an update, the newest goutil version correctly supports "unix" OSes that are not Linux. And I have sent a PR for oh-my-posh that makes it build on NetBSD. -- Benny
>
> Cheers Benny :)
>
> Sorry for the format, AFK until Monday and using mobile.
>
> There were a few commits by schmonz as well, https://mail-index.netbsd.org/pkgsrc-changes/2023/04/07/msg271980.html
>
>
--
----
Home |
Main Index |
Thread Index |
Old Index