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 1mvJkY-0000mC-G5 for pgsql-committers@arkaria.postgresql.org; Thu, 09 Dec 2021 13:46:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mvJk0-0003jD-Su for pgsql-committers@arkaria.postgresql.org; Thu, 09 Dec 2021 13:45:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvJk0-0003j4-MA for pgsql-committers@lists.postgresql.org; Thu, 09 Dec 2021 13:45:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mvJjt-0001aN-T0 for pgsql-committers@lists.postgresql.org; Thu, 09 Dec 2021 13:45:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1B9DjXUR3778567; Thu, 9 Dec 2021 08:45:33 -0500 From: Tom Lane To: Michael Paquier cc: Andres Freund , Andrew Dunstan , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Check that we have a working tar before trying to use it In-reply-to: References: <3657697.1638980149@sss.pgh.pa.us> <3660797.1638983124@sss.pgh.pa.us> <20211209021604.bv5tfr23ymh4u7x4@alap3.anarazel.de> <3707204.1639016334@sss.pgh.pa.us> <20211209024604.dpmudj4ax2hoi7cx@alap3.anarazel.de> <20211209030856.ibxewzpc5ph7ckkp@alap3.anarazel.de> <20211209064928.7f5lp6hxvw2f2j6o@alap3.anarazel.de> Comments: In-reply-to Michael Paquier message dated "Thu, 09 Dec 2021 16:10:39 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3778565.1639057533.1@sss.pgh.pa.us> Date: Thu, 09 Dec 2021 08:45:33 -0500 Message-ID: <3778566.1639057533@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > ... I got some copies of tar.exe lying > around, one from a git installation and a second one from Msys, but > both don't work even if $ENV{TAR} points at them :/ What goes wrong exactly? The test I proposed ("tar cf foo.tar foo") doesn't seem like it will catch the actual problem, which IIUC is that these tars don't like a drive letter in the file name(s). Can we arrange to strip that in what's passed to $TAR ? If not, it seems like we have to test for exactly that point (ie Windows-only test). regards, tom lane