Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
Re: Fix incorrect default editor path in GDB
To:
Nir Lichtman <nir@lichtman.org>
Cc:
tech@openbsd.org, pascal@openbsd.org
Date:
Fri, 20 Sep 2024 11:45:31 +0200

Download raw body.

Thread
On Fri, Sep 20, 2024 at 11:42:18AM +0200, Theo Buehler wrote:
> > An alternative solution could be to have the installation add a symlink from /bin/ex to /usr/bin/ex, this could save patching GDB which indeed looks to have until today /bin/ex hardcoded in the codebase.
> > It looks to be a pretty standard path across unix likes.
> > 
> > I can work on a patch for the alternative solution if it sounds better
> 
> While that would be easy to do (LINKS in usr.bin/vi/build/Makefile and

Ah sorry that's only for hard links which won't work. Anyway. let's not
go down this road.

> simple adjustments in distrib/sets) it doesn't feel right for many
> reasons: for example, /bin only contains statically linked binaries,
> which ex isn't. After all, it's a quirk of gdb we're talking about...
>