Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3BDj-0004QX-FC for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Jan 2021 05:12:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l3BDh-000490-KC for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Jan 2021 05:12:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l3BDh-00048t-As for pgsql-hackers@lists.postgresql.org; Sat, 23 Jan 2021 05:12:21 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l3BDe-0001mn-A8 for pgsql-hackers@lists.postgresql.org; Sat, 23 Jan 2021 05:12:20 +0000 Received: from Sergeys-MacBook-Pro.local (unknown [62.217.185.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id F209B21C5E20; Sat, 23 Jan 2021 08:12:16 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1611378737; bh=UlkF2zk5ykXBFSkz410PvOGHIV7bZOIWzfVOPe4m73o=; h=Subject:From:To:Cc:References:Date:In-Reply-To; b=dsRbDwqkaRb8amVAi9hsGTYKSSpG7SMGHhqx5V8XpLnnaHT88bJZ3+QhbYNmrdfQ6 /RZRnfU/en9u2V7u/LGP/vKxAToZHm+oaqG34x9tk6oKPKfO6Fj56Td+DB9xPDRp3E h5oF8I8SVcuBCT2EArcwWJcIWSFTr32tn39qR2dw= Subject: Re: [PATCH 1/1] Fix detection of pwritev support for OSX. From: Sergey Shinderuk To: Tom Lane Cc: James Hilliard , pgsql-hackers@lists.postgresql.org, Thomas Munro References: <20210119111625.20435-1-james.hilliard1@gmail.com> <479372.1611070041@sss.pgh.pa.us> <480660.1611071845@sss.pgh.pa.us> <483800.1611076636@sss.pgh.pa.us> <522433.1611089678@sss.pgh.pa.us> <559755.1611106628@sss.pgh.pa.us> <791992.1611184078@sss.pgh.pa.us> <915981.1611254324@sss.pgh.pa.us> <6d43a157-e51a-6449-0b47-94d133829afc@postgrespro.ru> <1166796.1611335531@sss.pgh.pa.us> <49989a13-49d2-935a-c651-74719ec565e6@postgrespro.ru> Message-ID: <5a274baf-8b68-5249-502a-1c31f45b7cee@postgrespro.ru> Date: Sat, 23 Jan 2021 08:12:16 +0300 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <49989a13-49d2-935a-c651-74719ec565e6@postgrespro.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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