Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Configure: add support for Homebrew on Apple Silicon

J Carter
March 07, 2024 09:24AM
On Wed, 6 Mar 2024 19:36:32 +0400
Sergey Kandaurov <pluknet@nginx.com> wrote:

> > On 28 Feb 2024, at 05:24, Piotr Sikora via nginx-devel <nginx-devel@nginx.org> wrote:
> >
> > # HG changeset patch
> > # User Piotr Sikora <piotr@aviatrix.com>
> > # Date 1708977643 0
> > # Mon Feb 26 20:00:43 2024 +0000
> > # Branch patch017
> > # Node ID dd95daa55cf6131a7e845edd6ad3b429bcef6f98
> > # Parent bb99cbe3a343ae581d2369b990aee66e69679ca2
> > Configure: add support for Homebrew on Apple Silicon.
>
> >
> > Signed-off-by: Piotr Sikora <piotr@aviatrix.com>
>
> Well, this is weird to pick up install prefix depending on the device.
> Hopefully, maintainers will rethink. Though given the relevant
> issue #9177 on githab is over 3 years, they would rather not.
>
> An obvious question is why do you need this change. Homebrew seems
> to be quite niche to pay attention. Using appropriate paths in
> --with-cc-opt / --with-ld-opt should work (not tested).
> If it really harms though, I think the change should go in.
>
> >
> > diff -r bb99cbe3a343 -r dd95daa55cf6 auto/lib/geoip/conf
> > --- a/auto/lib/geoip/conf Mon Feb 26 20:00:42 2024 +0000
> > +++ b/auto/lib/geoip/conf Mon Feb 26 20:00:43 2024 +0000
>
> A quick grep for MacPorts search paths suggests that some libraries
> are missing in the change. If this is on purpose, please reflect
> this in the description.
>
> > @@ -64,6 +64,23 @@
> > fi
> >
> >
> > +if [ $ngx_found = no ]; then
> > +
> > + # Homebrew on Apple Silicon
>
> Apple Silicon is something from the marketing language,
> using Apple ARM instead should be fine.
>
> Notably, Homebrew uses Hardware::CPU.arm Ruby language boolean
> to make the distinction.
>
> Further, given the smooth decay on Intel-based hardware,
> I'd reduce this just to "Homebrew".
>

It might be worth it to keep at least 'Apple' distinction in there, if
this will be added; Homebrew also supports Linux too, and installs to
/home/linuxbrew/.linuxbrew as default prefix path...

https://docs.brew.sh/Homebrew-on-Linux

> [..]
>
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Configure: add support for Homebrew on Apple Silicon

Piotr Sikora via nginx-devel 322 February 27, 2024 08:26PM

Re: [PATCH] Configure: add support for Homebrew on Apple Silicon

Roman Arutyunyan 27 March 06, 2024 07:58AM

Re: [PATCH] Configure: add support for Homebrew on Apple Silicon

Sergey Kandaurov 27 March 06, 2024 10:38AM

Re: [PATCH] Configure: add support for Homebrew on Apple Silicon

J Carter 36 March 07, 2024 09:24AM

Re: [PATCH] Configure: add support for Homebrew on Apple Silicon

Piotr Sikora via nginx-devel 31 March 08, 2024 10:32AM

Re: [PATCH] Configure: add support for Homebrew on Apple Silicon

Sergey Kandaurov 36 March 11, 2024 11:16AM

Re: [PATCH] Configure: add support for Homebrew on Apple Silicon

Sergey Kandaurov 46 March 27, 2024 02:00PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready