Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4F0a-0002UV-5t for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Nov 2016 22:36:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c4F0Z-0000Jl-OZ for pgsql-hackers@arkaria.postgresql.org; Tue, 08 Nov 2016 22:36:47 +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 1c4DEK-00072A-47 for pgsql-hackers@postgresql.org; Tue, 08 Nov 2016 20:42:52 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4DEF-0002Oy-Qq for pgsql-hackers@postgresql.org; Tue, 08 Nov 2016 20:42:50 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id B0BFE21C3196; Tue, 8 Nov 2016 23:42:45 +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 9SwS0cj0Gz5l; Tue, 8 Nov 2016 23:42:45 +0300 (MSK) Received: from localhost (0894949280.static.corbina.ru [78.107.237.198]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 7BE9721C1B00; Tue, 8 Nov 2016 23:42:45 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1478637765; bh=bWreb0eNeusKxxO+yJ5EwPzngZirZQz8a3lMPhO4RbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=pV2r3UbvI/rs+80z49H9AZngXhue/MhEUMcBwi1Yip5SiQGIfoQPmLyGR4Tgq2S17 E1xPrrNpFendmp2WISy8Mkstp4HDl/7KlgO51Qi/795wUqRn++ThRIAx+yjAcHU67V PUFnWP/vBs5AEaD0pkxJJxCmvrK8lPJ4I9OvMXg0= From: Yury Zhuravlev To: Cc: Peter Eisentraut Subject: Re: WIP: About CMake v2 Date: Tue, 08 Nov 2016 23:40:57 +0300 MIME-Version: 1.0 Message-ID: <6cd3400f-a1bd-40ac-b2c9-e7e221f548eb@postgrespro.ru> 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> 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.9 (----) 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 Hello. Peter Eisentraut wrote: > I tried this out. Because of some file moves in initdb and > pg_basebackup, the build fails: Yes, I need rebase patch to latest master. I do it as soon as possible.=20 Also I have some new achievements.=20 >I suggest you use git format-patch to produce patches. This is easier >to apply, especially when there are a lot of new files involved. Also >use the git facilities to check for whitespace errors. I agree.=20 >I suggest for now you could put this into a README.cmake file in your >patch. We don't need to commit it that way, but it would help in the >meantime. Good idea, currently I write all documentation on github. I will try to=20 move it to patch.=20 >When I run cmake without options, it seems to do opportunistic feature >checking. For example, it turns on OpenSSL or Python support if it can >find it, otherwise it turns it off. We need this to be deterministic. >Without options, choose the basic feature set, require all other >features to be turned on explicitly, fail if they can't be found. >Whatever the Autoconf-based build does now has been fairly deliberately >tuned, so there should be very little reason to deviate from that. This approach I see only in Postgres project and not fully understood. Can you explain me more what reasons led to this approach? Not big deal to make behavior like postgres Autoconf but I think it's=20 important clear view here.=20 >The Python check appears to be picking up pieces from two different >Python installations: Ooops you right. For Python detecting I use standard CMake module and his behavior depending on CMake version. We should really careful here. >The check results otherwise look OK, but I'm a bit confused about the >order. It checks for some functions before all the header files are >checked for. Is that intentional? I have plans to change order checks.=20 >There are a number of changes in .[ch] and .pl files that are unclear >and not explained. Please explain them. You can also submit separate >preliminary patches if you need to do some refactoring. Ultimately, I >would expect this patch not to require C code changes. I suppose separate patches with comments will be best way. I will do it. I think we can talks about details after that. Big thanks for your remarks it's very important for me and this "small"=20 project. I will try to do all tasks quickly. Best regards.=20 --=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