Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkwD4-0003Vn-Fv for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Sep 2016 16:41:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkwD3-0007dZ-Vk for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Sep 2016 16:41:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkwD3-0007dJ-0P for pgsql-hackers@postgresql.org; Fri, 16 Sep 2016 16:41:53 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkwCz-0000bf-IK for pgsql-hackers@postgresql.org; Fri, 16 Sep 2016 16:41:51 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id C64EF21C2EF9; Fri, 16 Sep 2016 19:41:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C5qwr2PagUG4; Fri, 16 Sep 2016 19:41:48 +0300 (MSK) Received: from localhost (0894949280.static.corbina.ru [78.107.237.198]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 6D1C421C2EEF; Fri, 16 Sep 2016 19:41:48 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1474044108; bh=zuUCaICo+1oTEJKVF7FrnS295SaHU9dzgBFYxKDykGw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WQklFvrt/loi6ZUK2v6PjXCsXznrHLuxgpHtjCbuETSndzpnEyjzj1C/5aJTlHvLH ri/43pIC6esa2YhksR3ngmyEbmJ3VtSWWS6Pg1QyAG41GwJZBporVIJg21gChXveQ6 sii7E3v18hs4U4GcnvuqDSrX7tANcbyzTluZiRCU= From: Yury Zhuravlev To: Cc: Michael Paquier Subject: Re: WIP: About CMake v2 Date: Fri, 16 Sep 2016 19:40:48 +0300 MIME-Version: 1.0 Message-ID: <5a8a9610-722f-49df-b609-35842fe4c8d6@postgrespro.ru> In-Reply-To: References: <29526280-50e2-495b-99e1-ccd4e16ffd05@postgrespro.ru> Organization: postgrespro User-Agent: Trojita/v0.6-216-g795fa33; Qt/5.7.0; xcb; Linux; Gentoo Base System release 2.3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -4.3 (----) 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 Michael Paquier wrote: > Your patch recommends to build with cmake after creating build/, now I > would expect most users to run cmake from the root folder. However > this causes all the Makefiles to get overwritten. As supporting all > platforms at once with cmake is going to be uncommitable, we are going > to need both methods able to live together for a while. Well, they can > coexist with this patch as long as cmake is not run from the root of > the code tree, which is acceptable for me as long as the switch is not > completed. However others may think differently on the matter. It's really a good point. Forbidden run cmake from root it is better=20 decision for me (of course for start).=20 >Instead of getting support for all existing platforms, I would >recommend as well focusing only on one platform for the time being, >Linux, and get the work done correctly for that first. Once there is >something committed, we will be able to patch the buildfarm, and get >machines to switch to cmake one by one. After those are switched, we >could extend that. You mean in first version of patch I can focus on Linux systems? >Another point of contention is support for >extensions. How long should we keep support for the existing PGXS? How >external extensions would compile with the new thing infrastructure? As long as possible. I hope I can make PGXS Makefiles generator. >Which brings me to another point, your patch is focused on features, >meaning that per-OS checks are all grouped by feature, but it may be a >good idea to split checks by OS if necessary, with for example >per-platform files and scripts in cmake/os/. And we could have just >something for Linux now. Currently I do not have a lot OS specific tests. All checks are doing in=20 same manner.=20 >- root's .gitignore needs to add entries for CMakeFiles and >cmake_install.cmake. You need as well to ignore CMakeCache Thanks I done this in last commit.=20 >- A couple of headers are generated, like cubeparse.h (?) Because BISON generate header by default. I suppose author of cube launched= =20 bison by hand but I made it automatic.=20 >- Currently a lot of users do things like that: >cd src/test/regress/ && make check >But this patch breaks that, and that's not cool. Recovery tests in >src/test/regress won't run either. It seems restriction by design because in CMake you have only one enter=20 point.=20 >That's all I have for now. Looking forward to seeing some progress here. I merged master to my branch and I spent time to porting all changes. I=20 hope send patch in the weekend without terrible flaws. --=20 Yury Zhuravlev Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers