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

Re: meson -Drust=enabled fails on macOS without GNU sed

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Dec 15, 2025, 17:51 UTC
Message-ID
<CAPig+cTrLkEPGb=7dU1pnB9ir+vMaJ2W=J3R6+9kLuHkubtS_g@mail.gmail.com>
In-Reply-To
<aUApKxjYHMPHNIac@pks.im>
On Mon, Dec 15, 2025 at 10:28 AM Patrick Steinhardt <ps@pks.im> wrote:
Show 16 quoted lines
> On Fri, Dec 12, 2025 at 03:32:30PM -0500, Eric Sunshine wrote:
> > On Fri, Dec 12, 2025 at 3:01 PM D. Ben Knoble
> > <ben.knoble+github@gmail.com> wrote:
> > > I think it's due to e509b5b8be (rust: support for Windows, 2025-10-15)
> > > [relevant folks CC'd], where we assume sed can take "-s" (which AFAICT
> > > is a GNU extension). But perhaps "-n" was intended with a "p" flag on
> > > the substitution?
> >
> > Yup, that's a strange one. Indeed:
> >
> >     sed -n 's/^host: \(.*\)$/\1/p'
> >
> > would be the correct way to do it, while also being compatible with
> > BSD-lineage `sed` (such as `sed` on macOS).
>
> Ah, indeed. Would one of you want to turn this into a patch?

I'm not likely to have the time, presently. Ben is welcome to attack the task if he desires.

Previous: Patrick SteinhardtNext: Ben Knoble
Message 4 of 7 in “meson -Drust=enabled fails on macOS without GNU sed”
  1. D. Ben KnobleDec 12, 2025
  2. Eric SunshineDec 12, 2025
  3. Patrick SteinhardtDec 15, 2025
  4. Eric SunshineDec 15, 2025
  5. Ben KnobleDec 18, 2025
  6. Patrick SteinhardtDec 18, 2025
  7. D. Ben KnobleDec 18, 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.