Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoIwj-000oNk-3H for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Oct 2023 07:38:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qoIwh-00ADc2-19 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Oct 2023 07:38:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoIwg-00ADbl-Np for pgsql-hackers@lists.postgresql.org; Thu, 05 Oct 2023 07:38:55 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qoIwf-0008KV-T7 for pgsql-hackers@lists.postgresql.org; Thu, 05 Oct 2023 07:38:55 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id BCFF35C026E; Thu, 5 Oct 2023 03:38:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 05 Oct 2023 03:38:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm1; t=1696491532; x=1696577932; bh=h4jQFK6f317j86+WAsiTo0kOk h7VkBeL9zVBmz/Svfo=; b=cmyaHNK/Tn6bNGm2QfNX12B91t/g25ceyT2jZt9HE Lo+eJijsJJBae7kVKApaQ9VXZNiN4MGaZxhnoX1t6n7g4fFu+lsbFj2HaPglqw1w sAyx2BTp3/Y51yX9PNFF0tTOMGKjHCZDuRtvJWBo/U/h/GquP+NcObFEjvqoKa1f xvYa0oqJGYZlupexbKqo3InnHygNqE6J35B0dZdKVRy3ehXAs/qXbH4+469By/Fu 34LNtHogme3fGoGcUzMpg6T93+vurlPJpBGFCgMNA58ZWCosmAG+aIA82BSKHAvy Kwmpi4o+rS4/+13zBcFZBs01HCbMVoOk0Hjo9VabNqrtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1696491532; x=1696577932; bh=h4jQFK6f317j86+WAsiTo0kOkh7VkBeL9zV Bmz/Svfo=; b=ISOQBjoygD53B1CHIyDn0Z/40ADmiaTxomrN5ID8tkRNAOK/w0r VQj1GL3NQTsxoaCLPU1gZ4xcZPFYPMjZLkEj9PsO7sSL7l8yFxGFVzEpoCPW4cQx biNZozdXP6RTH6TsVPLNPkZ8Fb/a6OvPwY57pvS3ERnnhCaz1/9QmIR59QhWBeEv ix/uWgeLE34bRDWGCqS0AouxPwFo/va5mTBBA7uUfuVf6PYFRWSyCw026EYQ3Ci4 m2E3bGWv9Li+DkxHRUAMZdHkiukSqNE8aArP8tyIW3eHTiAvB7cjuiShpp8jnkL1 5u0OejCNSaUDZ3DVIaSmEoYYDecNKfQZM5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgeefgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh eqnecuggftrfgrthhtvghrnhepgfejfffgueejvdehleejhfetffdvudejgfelhffhhfdu tedvffeigeehgfehudevnecuffhomhgrihhnpehsghhmlhdrrghsnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhht rhgruhhtrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Oct 2023 03:38:51 -0400 (EDT) Message-ID: Date: Thu, 5 Oct 2023 09:38:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: Remove MSVC scripts from the tree Content-Language: en-US To: Michael Paquier Cc: Postgres hackers References: From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 02.10.23 09:38, Michael Paquier wrote: > Attached is a v2 with these adjustments, for now. General comments: - I think we can't just delete install-windows.sgml. Some of that content needs to be moved over to installation.sgml. As a simple example, install-windows.sgml shows which MSVC versions are supported. That information should surely be kept. - Is src/backend/utils/README.Gen_dummy_probes still correct after this? AFAICT, the Perl-based MSVC build system uses Gen_dummy_probes.pl, but the meson build uses Gen_dummy_probes.sed even on Windows. Is that correct, intended? - src/port/pgstrsignal.c contains a comment that it is not "built in MSVC builds", but AFAICT, that is only correct for the legacy Perl-based build system, not for meson. Again, is that correct, intended? Detail comments: (Btw., whatever orderfile you used for the diff, I find that confusing.) * config/perl.m4: This now contains all the required information, but maybe break the text into paragraphs a bit? * doc/src/sgml/installation.sgml: I think this paragraph should just be removed altogether: If you are building PostgreSQL for Microsoft - Windows, read this chapter if you intend to build with MinGW or Cygwin; - but if you intend to build with Microsoft's Visual - C++, see instead. + Windows, read this chapter if you intend to build with Meson, MinGW or + Cygwin. Here PostgreSQL can be built using Cygwin, a Linux-like environment for Windows, but that method is inferior to the native Windows build - (see ) and - running a server under Cygwin is no longer recommended. + with Meson, and running a server under Cygwin is no longer recommended. I think "with Meson" should be removed. The tradeoff is Cygwin vs. native, it doesn't have anything to do with Meson. Also, I think this paragraph needs a complete revision, along with however install-windows.sgml gets integrated: - PostgreSQL for Windows can be built using MinGW, a Unix-like build [...] * meson.build: I think these comments are unnecessary and can be removed: -# From Project.pm +# MSVC flags + # Preprocessor definitions. * src/bin/pgevent/meson.build: After consideration, I think this comment should just be removed: -# FIXME: copied from Mkvcbuild.pm, but I don't think that's the right approach +# FIXME: this may not not the right approach.. The original site in Mkvcbuild.pm does not contain a comment, so we should accept that as canonical. It doesn't help much if we carry around a comment like "this might be wrong" indefinitely without any further supporting material. * src/common/Makefile and src/common/meson.build: This change is losing the period at the end of the first sentence: # A few files are currently only built for frontend, not server -# (Mkvcbuild.pm has a copy of this list, too). logging.c is excluded -# from OBJS_FRONTEND_SHLIB (shared library) as a matter of policy, -# because it is not appropriate for general purpose libraries such -# as libpq to report errors directly. +# logging.c is excluded from OBJS_FRONTEND_SHLIB (shared library) as +# a matter of policy, because it is not appropriate for general purpose +# libraries such as libpq to report errors directly.