Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNe8n-00019G-Ok for pgsql-committers@arkaria.postgresql.org; Sat, 20 Mar 2021 16:07:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lNe8m-0000Ya-LK for pgsql-committers@arkaria.postgresql.org; Sat, 20 Mar 2021 16:07:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNe8m-0000YT-Ft for pgsql-committers@lists.postgresql.org; Sat, 20 Mar 2021 16:07:52 +0000 Received: from relay12.mail.gandi.net ([217.70.178.232]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNe8k-0000bp-HQ for pgsql-committers@lists.postgresql.org; Sat, 20 Mar 2021 16:07:51 +0000 Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net [99.10.92.30]) (Authenticated sender: adsend@dunslane.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 57811200003; Sat, 20 Mar 2021 16:07:47 +0000 (UTC) Subject: Re: pgsql: Blindly try to fix test script's tar invocation for MSYS. To: Tom Lane Cc: pgsql-committers@lists.postgresql.org References: <6a124853-d645-bc2f-1551-6ca61b918423@dunslane.net> <181059.1616252716@sss.pgh.pa.us> From: Andrew Dunstan Message-ID: <892e3a63-451a-486b-7289-2a985d8515dc@dunslane.net> Date: Sat, 20 Mar 2021 12:07:45 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <181059.1616252716@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/20/21 11:05 AM, Tom Lane wrote: > Andrew Dunstan writes: >> On 3/18/21 10:43 PM, Tom Lane wrote: >>> Buildfarm member fairywren doesn't like the test case I added >>> in commit 081876d75. I'm guessing the reason is that I shouldn't >>> be using a perl2host-ified path in the tar command line. >> No, you shouldn't. The rule is that you need to use perl2host when >> passing a path to a non-msys-aware program. This will typically be one >> of our own artefacts, or the comand processor (via system(), qx() etc.). >> But msys-aware programs such as utility programs like tar should get the >> path just as the perl script sees it. > Ah. So it seems like the $64 question is how to know that tar, or any > particular other program, is msys-aware. > > 1. If it's one of our artefacts it won't be - we're building to run native without any msys involvement. (That's not quite true. It's possible to build with msys as the target environment. But we don't, or at least I don't, and I don't think anything else in the buildfarm does.) 2. Anything else (like tar) is very likely to be msys-aware. If there's ever a doubt it might be possible to construct a test to look for the program in the msys paths, but up to now we haven't really needed to, and it seems likely to be overkill. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com