Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4JrU-00053X-OX for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Nov 2016 03:47:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4JrT-0008TF-Ui for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Nov 2016 03:47:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4JrS-0008T6-D0 for pgsql-hackers@postgresql.org; Wed, 09 Nov 2016 03:47:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c4JrP-0006Be-FW for pgsql-hackers@postgresql.org; Wed, 09 Nov 2016 03:47:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uA93lYcY012173; Tue, 8 Nov 2016 22:47:34 -0500 From: Tom Lane To: Craig Ringer cc: YUriy Zhuravlev , Peter Eisentraut , PostgreSQL Hackers Subject: Re: WIP: About CMake v2 In-reply-to: References: <29526280-50e2-495b-99e1-ccd4e16ffd05@postgrespro.ru> <5a8a9610-722f-49df-b609-35842fe4c8d6@postgrespro.ru> <0d8bf7e7-db42-44d8-aac5-65ff407cb60f@postgrespro.ru> <6cd3400f-a1bd-40ac-b2c9-e7e221f548eb@postgrespro.ru> Comments: In-reply-to Craig Ringer message dated "Wed, 09 Nov 2016 06:54:03 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12171.1478663254.1@sss.pgh.pa.us> Date: Tue, 08 Nov 2016 22:47:34 -0500 Message-ID: <12172.1478663254@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Craig Ringer writes: > On 9 Nov. 2016 06:37, "Yury Zhuravlev" wrote: >> This approach I see only in Postgres project and not fully understood. >> Can you explain me more what reasons led to this approach? > It's predictable. The default has the same result for everyone. I quite > like it myself. It's advantageous from a packaging standpoint, precisely because it's predictable: either you get the set of features you expect, or you get a build failure. Years ago we were more on the "opportunistic" side of things, and we had problems with packages sometimes silently losing features. A pretty-recent example is that OpenSSL changed their APIs in 1.1.0 so that our configure probe failed. With an opportunistic approach, that would have meant builds silently going from "ssl yes" to "ssl no". That's not good. So this is really not open for negotiation. As Peter said upthread, what we are looking for in a CMake reimplementation is that it behaves exactly like the Autoconf version does. To the extent that you are unable or unwilling to duplicate that behavior, you increase the odds that we'll reject this work. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers