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 1r0e7u-006y21-1q for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 08:41:30 +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 1r0e7s-000oB1-Cf for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Nov 2023 08:41:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0e7r-000o6R-FW for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 08:41:28 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0e7o-004XCW-9O for pgsql-hackers@lists.postgresql.org; Wed, 08 Nov 2023 08:41:26 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 2ECBD3200947; Wed, 8 Nov 2023 03:41:22 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 08 Nov 2023 03:41:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc: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=fm2; t=1699432881; x= 1699519281; bh=FWwAi4izo8dMpJDkAV2NUpaDjwe5beUbMxAWZPUsr64=; b=f DffGJ+esFVOIIlSe63oGnvE7V4dU2szUAZrqHMW8QfD4wjtY9yrkidcVNVrEG4LP Rou+OkKEaJK1qvXWTKF6QwEZd0ZelcUCBm+BOROTz7ZiJfUSICqScSgvFqxHMptB E6EPvwkfOMnlmMD9QL8+EIdoqFy7d5bPbjgsEqGIQZRZPmS84wzBNzyzte4xE8/7 NI8K6TrinTWyB6skkeGDl6FgZjFzLH6tHPmBi9Iw30KmVHjgJOx4ZXJTGJSJxMJV WKBknDewIOAMWd3DmUYfPTH8dkB1BVe+Uqx9C1KHUQP7eU27XvDM7M1RuvDLQrNx 7QpgymFrrVE7QeaIssFbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=fm3; t=1699432881; x=1699519281; bh=FWwAi4izo8dMp JDkAV2NUpaDjwe5beUbMxAWZPUsr64=; b=OdW8txWJRWZhObNidHRrU1ZdS90bE NU327E9jPf1WustVVdJVIDCD9zzVvWAFHm0g2c9YMCUEXRAtIBsG9MjQBT/zdoGm dhVpRGI/vZ3DqGHTj1+Nq4rK7M8YXNqZGZ+uH58CX9wZGCVdwy3lLqN2IW9rxlvt uC5GsZ2jk7WzHY3X3sKBu67niHaciQl1dUD4DkEZ8op1BnRRU6TV/3go3n015RFf yOk+Z7mYmqLqlEb4kcu0EjWG4sEQjcySbLkWWq3U/qF92VpMyKyrRif+Ou/lDyxl Qq6tLePq5Hjc3I0wIQ+KU8K832P+inrZVwKDnQS3+Z9DtU6r9DcV6R7Kw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddukedguddvudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtkfffgggfuffvvehfhfgjsehmtderredtvdejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgh eqnecuggftrfgrthhtvghrnhepgffhfefghfeiueegjefhleeutdfgffetheekuddtteeg vefhvedtvdeuvddvieeinecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghr segvihhsvghnthhrrghuthdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Nov 2023 03:41:20 -0500 (EST) Content-Type: multipart/mixed; boundary="------------Q088AlRpXuzlETDPQ8jl4Bgl" Message-ID: <3fd0f1bc-4483-4ba9-8aa0-64765b052039@eisentraut.org> Date: Wed, 8 Nov 2023 09:41:19 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird 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: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------Q088AlRpXuzlETDPQ8jl4Bgl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12.10.23 07:23, Michael Paquier wrote: >> - 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? > Interesting point. This may depend on the environment at the end? As > far as I can see, sed is currently a hard requirement in the meson > build and we'd fail if the command cannot be used. The buildfarm > machines that test meson are able to find sed, making > Gen_dummy_probes.pl not necessary: > https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=drongo&dt=2023-10-11%2020%3A21%3A17&stg=configure > > So the $1000 question is: could there be a point in keeping the perl > script around if sed cannot be found? The buildfarm coverage is > currently saying no thanks to chocolatey, at least. The VM images > compiled by Andres for the CI seem to have the same opinion. I don't think we should rely on sed being there on Windows. Maybe it's true now on the handful of buildfarm/CI machines and early adopters, but do we have any indication that that is systematic or just an accident? Since we definitely require Perl now, we could just as well use the Perl script and avoid this issue. Attached is a Perl version of the sed script, converted by hand (so not the super-verbose s2p thing). It's basically just the sed script with semicolons added and the backslashes in the regular expressions moved around. I think we could use something like that for all platforms now. --------------Q088AlRpXuzlETDPQ8jl4Bgl Content-Type: text/x-perl-script; charset=UTF-8; name="Gen_dummy_probes2.pl" Content-Disposition: attachment; filename="Gen_dummy_probes2.pl" Content-Transfer-Encoding: base64 Iy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0KIyBQZXJsIHNjcmlwdCB0byBjcmVhdGUgZHVtbXkgcHJv YmVzLmggZmlsZSB3aGVuIGR0cmFjZSBpcyBub3QgYXZhaWxhYmxlCiMKIyBDb3B5cmlnaHQg KGMpIDIwMDgtMjAyMywgUG9zdGdyZVNRTCBHbG9iYWwgRGV2ZWxvcG1lbnQgR3JvdXAKIwoj IHNyYy9iYWNrZW5kL3V0aWxzL0dlbl9kdW1teV9wcm9iZXMucGwKIy0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0KCnVzZSBzdHJpY3Q7CnVzZSB3YXJuaW5nczsKCm0vXlsgCV0qcHJvYmUgLyB8fCBu ZXh0OwpzL15bIAldKnByb2JlIChbXihdKikoLiopOy8kMSQyLzsKcy9fXy9fL2c7CnkvYWJj ZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXovQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVovOwpz L14vI2RlZmluZSBUUkFDRV9QT1NUR1JFU1FMXy87CnMvXChbXiwpXXsxLH1cKS8oSU5UMSkv OwpzL1woW14sKV17MSx9LCBbXiwpXXsxLH1cKS8oSU5UMSwgSU5UMikvOwpzL1woW14sKV17 MSx9LCBbXiwpXXsxLH0sIFteLCldezEsfVwpLyhJTlQxLCBJTlQyLCBJTlQzKS87CnMvXChb XiwpXXsxLH0sIFteLCldezEsfSwgW14sKV17MSx9LCBbXiwpXXsxLH1cKS8oSU5UMSwgSU5U MiwgSU5UMywgSU5UNCkvOwpzL1woW14sKV17MSx9LCBbXiwpXXsxLH0sIFteLCldezEsfSwg W14sKV17MSx9LCBbXiwpXXsxLH1cKS8oSU5UMSwgSU5UMiwgSU5UMywgSU5UNCwgSU5UNSkv OwpzL1woW14sKV17MSx9LCBbXiwpXXsxLH0sIFteLCldezEsfSwgW14sKV17MSx9LCBbXiwp XXsxLH0sIFteLCldezEsfVwpLyhJTlQxLCBJTlQyLCBJTlQzLCBJTlQ0LCBJTlQ1LCBJTlQ2 KS87CnMvXChbXiwpXXsxLH0sIFteLCldezEsfSwgW14sKV17MSx9LCBbXiwpXXsxLH0sIFte LCldezEsfSwgW14sKV17MSx9LCBbXiwpXXsxLH1cKS8oSU5UMSwgSU5UMiwgSU5UMywgSU5U NCwgSU5UNSwgSU5UNiwgSU5UNykvOwpzL1woW14sKV17MSx9LCBbXiwpXXsxLH0sIFteLCld ezEsfSwgW14sKV17MSx9LCBbXiwpXXsxLH0sIFteLCldezEsfSwgW14sKV17MSx9LCBbXiwp XXsxLH1cKS8oSU5UMSwgSU5UMiwgSU5UMywgSU5UNCwgSU5UNSwgSU5UNiwgSU5UNywgSU5U OCkvOwpzLyQvIGRvIHt9IHdoaWxlICgwKS87CnByaW50OwpzL1woLiokL19FTkFCTEVEKCkg KDApLzsKcHJpbnQ7Cg== --------------Q088AlRpXuzlETDPQ8jl4Bgl--