From: | Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | James Hilliard <james(dot)hilliard1(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
Subject: | Re: [PATCH 1/1] Fix detection of pwritev support for OSX. |
Date: | 2021-01-23 05:12:16 |
Message-ID: | 5a274baf-8b68-5249-502a-1c31f45b7cee@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 23.01.2021 08:02, Sergey Shinderuk wrote:
> I checked the script [1], and it really requires the CLT. Here is the
> explanation [2] for this:
>
> There is actually no such requirement. However, there are
> formulae that will be forced to build from source if you do not
> have the CLT. They can still be built from source with Xcode
> only, but because the pre-built bottles are compiled in an
> environment that has both Xcode and the CLT installed, there are
> some cases where the bottles end up having a hard dependency on
> the CLT. A major example is gcc. So installing the CLT may help
> you avoid some lengthy source builds.
>
> We ensure that all Homebrew formulae can be built with Xcode.app
> alone. Most formulae can be built with just the CLT, and those
> that require the full Xcode.app have an explicit depends_on
> :xcode => :build. Some users would prefer to use only the CLT
> because it's a much smaller download and takes less time to
> install and upgrade than Xcode.
In the gcc formula [1]:
# The bottles are built on systems with the CLT installed, and do not
work
# out of the box on Xcode-only systems due to an incorrect sysroot.
pour_bottle? do
reason "The bottle needs the Xcode CLT to be installed."
satisfy { MacOS::CLT.installed? }
end
I guess this is the "xcrun --show-sdk-path" thing we've alredy disccussed :)
[1] https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcc.rb#L36
--
Sergey Shinderuk
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2021-01-23 05:24:23 | Re: doc review for v14 |
Previous Message | Sergey Shinderuk | 2021-01-23 05:02:01 | Re: [PATCH 1/1] Fix detection of pwritev support for OSX. |