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

Re: [PATCH v2] config.mak.uname: update settings for FreeBSD

From
Carlo Marcelo Arenas Belón <carenas@gmail.com>
Date
Jun 12, 2025, 21:31 UTC
Message-ID
<p75inuvm6uf4mul7gty4jpwd74namlgfifkqgwuwzf6sqrkit5@zkimsfgxatmc>
In-Reply-To
<aEsE8S90fJSr9Or5@fruit.crustytoothpaste.net>
On Thu, Jun 12, 2025 at 04:48:49PM -0800, brian m. carlson wrote:
Show 21 quoted lines
> On 2025-06-12 at 13:52:03, Carlo Arenas wrote:
> > On Thu, Jun 12, 2025 at 12:36:46AM -0800, Brad Smith wrote:
> > >
> > > FreeBSD 6.0 has memmem().
> > 
> > but AFAIK it was buggy, uncompatible with the "standard" and
> > didn't perform that well, at least until FreeBSD 12.
> > 
> > assuming that the system version is indeed faster than the
> > one provided with git (which should be true but worth testing)
> > then it might be better to only enable this for later versions?
> 
> FreeBSD 11.4 (the last version of FreeBSD 11) went end of life in
> September 2021, so nobody should be using it since it hasn't had
> security support since then.  And it's even been functional (but slow)
> since FreeBSD 11.0, and 10.4 went EOL in 2018.  So users shouldn't
> actually be experiencing any actual functionality problems since then.
> 
> I don't think it's a big deal for people who want to use an obsolete OS
> (which, to be clear, I'm not encouraging) to tweak the Makefile knobs a
> bit.

Note that my concern wasn't about having to tweak the Makefile, but with the fact that the system provided function would behave differently, and there was no attempt to see if by no longer using the git provided compat code, there was actually a performance improvement.

It is true that in our codebase there are no calls to memmem() where the needlelen (the fourth parameter) could be zero, and that would result in some of those old versions returning NULL, but it would seem to be safer to only use the system provided function when those issues are no longer a concern.

Carlo
Previous: brian m. carlsonNext: Junio C Hamano
Message 3 of 11 in “Re: [PATCH v2] config.mak.uname: update settings for FreeBSD”
  1. Carlo ArenasJun 12, 2025
  2. brian m. carlsonJun 12, 2025
  3. Carlo Marcelo Arenas BelónJun 12, 2025
  4. config.mak.uname: update settings for FreeBSDJunio C Hamano, Jun 12, 2025
  5. Carlo Marcelo Arenas BelónJun 12, 2025
  6. Junio C HamanoJun 12, 2025
  7. 0/2 config.mak.uname: update settings for FreeBSDCarlo Marcelo Arenas Belón, Jul 2, 2025
  8. 1/2 config.mak.uname: set NO_MEMMEM only for functional versionCarlo Marcelo Arenas Belón, Jul 2, 2025
  9. 2/2 build: retire NO_UINTMAX_TCarlo Marcelo Arenas Belón, Jul 2, 2025
  10. Junio C HamanoJul 2, 2025
  11. Junio C HamanoJun 12, 2025

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.