git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] exec_cmd: RUNTIME_PREFIX on OpenBSD systems

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 21, 2026, 16:57 UTC
Message-ID
<xmqq4ifio83d.fsf@gitster.g>
In-Reply-To
<de116c51-b538-44b7-87d9-653b84a55088@comstyle.com>
Brad Smith <brad@comstyle.com> writes:
Show 22 quoted lines
> On 2026-09-17 9:45 a.m., Junio C Hamano wrote:
>> Brad Smith <brad@comstyle.com> writes:
>>
>>> Enable Git to resolve its own binary location using getexecpath().
>> That may not be incorrect information per-se, but lacks critical
>> bits.  Natural initial questions that come to my mind are...
>>
>>      Why would one want to use getexecpath() over whatever OpenBSD
>>      ports of Git have been using happily?  Is the old way being
>>      removed?  Is the new way being more accurate?  In what
>>      situations does the difference matter?  Is everybody on OpenBSD
>>      able to use this new function?  Do only certain, and/or
>>      presumably later, verions of OpenBSD have it?  How widely is it
>>      available?  How long has it been available?
>
> It's a long awaited API for such functionality on OpenBSD. Otherwise there
> hasn't really been a means of doing so and one which has been using happily.
> The proper API I would say is one which works and is more accurate. One
> which works the same everywhere where as the pile of hacks has different
> results and not happily either.
>
> The API is new. The config.mak.uname check looks for 8.0 and newer.

OK, all of the above were missing from the proposed log message that should be placed when v2 patch is prepared. They've happily been using argv[0] as an approximate (which may be OK as long as we do not lie to ourselves but not as nice), and now they are going to have a proper syscall for the information, finally. You would also need to answer the last few questions I asked in the proposed log message of v2, but I thought 8.0 is not yet released?

Thanks.
Previous: Brad Smith
Message 4 of 4 in “exec_cmd: RUNTIME_PREFIX on OpenBSD systems”
  1. exec_cmd: RUNTIME_PREFIX on OpenBSD systemsBrad Smith, Sep 17, 2026
  2. Junio C HamanoSep 17, 2026
  3. Brad SmithSep 21, 2026
  4. Junio C HamanoSep 21, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.