[PATCH] gsed.cfg: Add check for gsed

Chris Johns chrisj at rtems.org
Tue Oct 4 21:31:18 UTC 2022


On 5/10/2022 12:52 am, Ryan Long wrote:
> It looks like gcc checks for gsed if sed is not the GNU version.

Thanks for checking this.

> I've installed it on FreeBSD and MacOS. I had to install it via Homebrew on
> MacOS, but that's because it fails to build gsed.

Homebrew complicates your work. I make sure my test Macs have never had Homebrew
or Macports installed. When I played with this a long time ago the install
prefix was /usr/local and after a while I found I had no idea what was installed
and what was provided by the OS and if the base OS versions were overwritten. I
believe Macports is not doing this these days (if it ever did) but I have not
looked.

> The error is "machine `arm64-apple' not recognized".

Does the GNU sed upstream project have a fix?

> So I added this check to get around that, and it built successfully.

Sorry, I see Homebrew and Macports as user options and not a project option. We
need repeatable builds and not builds based on a local checkout of some packages.

Chris


More information about the devel mailing list