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 1pyeZc-000395-FK for pgsql-hackers@arkaria.postgresql.org; Mon, 15 May 2023 20:13:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pyeZb-0004N1-9Y for pgsql-hackers@arkaria.postgresql.org; Mon, 15 May 2023 20:13:35 +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 1pyeZb-0004Mr-0Q for pgsql-hackers@lists.postgresql.org; Mon, 15 May 2023 20:13:35 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pyeZY-002y0Y-3v for pgsql-hackers@lists.postgresql.org; Mon, 15 May 2023 20:13:34 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 9C9913200A59; Mon, 15 May 2023 16:13:28 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 15 May 2023 16:13:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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=fm1; t=1684181608; x=1684268008; bh=66 wcngHLBsoarGChpCryZD8MPBvURRqiGfTu7ouvvgw=; b=eyIr6UC9SWPGwNSoCH cpF1tvx6iB3u8ezIdrlADV8DL+gXtu7y5aK81VCNZ0MAzP4nuaKKuDhJZr4UHGlj cblVb2268HSxg19dWrHQYLypotNtyYS9hkY6v7a9XaTe3HBkINmtv5fWp88gH85p yj+060EF/VPMFQASo7hbuxs8stFyR4TWtbs72lXx6ggKLLht1wQV8S9hHpXVpSQO cpFkuU694lQyQRFSdoGk/Bq13HDZR8uoGFCQpZyJPftNI23H5iMTyRc7+wE/7XHn MqjaLC2GylnxE6bPndamAF3duHPjTN6ANvSQkx+0CqI+EC8p4iq6Vn2HGDqVRzfk wxJA== 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=fm1; t=1684181608; x=1684268008; bh=66wcngHLBsoar GChpCryZD8MPBvURRqiGfTu7ouvvgw=; b=c+CjEybpFq9kXys223U8mtnM+uP/G 0gqaQHfUN5IvsltlEqFrZGssy9StWlThTObVEXkFaIjMHq6TgLCo25iE3kErtzMa A+CXUx4ve8jvdLMLy+33Zjm/1vVUbXkFAKF4siSaYf64rDMrpj+yghCt6JsDVMrU 0bVayEjD5N3VMgsPzJ6xfWrogUprSr4+GwfTtar2ihSH86LzDZZd8eOolKRrplC1 zJK4du5M+0jdAM9/RosoQ+GYNeHm4rl5+VPJcE1IDNqv/aRBeEEpkFK11Vc9jMt1 ULbtwiGzxpSzIpKEAvQBSeoHNwzE70WfauHSkKr852bdmd90xn+jH4faQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehjedgudegkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 May 2023 16:13:27 -0400 (EDT) Date: Mon, 15 May 2023 13:13:26 -0700 From: Andres Freund To: Andrew Dunstan Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: issue with meson builds on msys2 Message-ID: <20230515201326.tbjgfdef6ul6oqfd@awork3.anarazel.de> References: <7d7dcc20-ba19-5340-9be8-f255e8b42edc@dunslane.net> <20230420150652.jciazjap223iznjp@awork3.anarazel.de> <5bddd941-9819-6655-7a71-3f346050583e@dunslane.net> <6efeb45a-07f9-2291-c8f8-9fb4abbb6ebc@dunslane.net> <20230427221828.2qo7z4xb4f7islln@awork3.anarazel.de> <236c0354-62b1-0ae1-a252-4c866bc1c5d6@dunslane.net> <20230504235413.eibaxlxslo76ipjl@awork3.anarazel.de> <2ff71af4-cdee-37b8-525a-2b25afd1769a@dunslane.net> <20230515193817.ttx4qf3ceqeufls2@awork3.anarazel.de> <26b0ebdb-3e7c-d562-620d-8e2f17286ff9@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26b0ebdb-3e7c-d562-620d-8e2f17286ff9@dunslane.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-05-15 16:01:39 -0400, Andrew Dunstan wrote: > On 2023-05-15 Mo 15:38, Andres Freund wrote: > > Hi, > > > > On 2023-05-05 07:08:39 -0400, Andrew Dunstan wrote: > > > If you want to play I can arrange access. > > Andrew did - thanks! > > > > > > A first observeration is that making the shell command slightly more > > complicated, by echoing $? after pg_ctl, prevents the error: > > > > /usr/bin/perl -e 'system(qq{"bin/pg_ctl" -D data-C -w -l logfile start > startlog 2>&1}) ;system(qq{"bin/pg_ctl" -D data-C -w -l logfile stop > stoplog 2>&1;}) ; print $? ? "BANG: $?\n" : "OK\n";' > > BANG: 33280 > > > > /usr/bin/perl -e 'system(qq{"bin/pg_ctl" -D data-C -w -l logfile start > startlog 2>&1}) ;system(qq{"bin/pg_ctl" -D data-C -w -l logfile stop > stoplog 2>&1; echo $?}) ; print $? ? "BANG: $?\n" : "OK\n";' > > 0 > > OK > > > You're now testing something else, namely the return of the echo rather than > the call to pg_ctl, so I don't think this is any kind of answer. It would > just be ignoring the result of pg_ctl. It wouldn't really - the echo $? inside the system() would report the error. Which it doesn't - note the "0" in the second output. > > Andrew, is it ok if modify pg_ctl.c and rebuild? I don't know how "detached" > > from the actual buildfarm animal the system you gave me access to is... > > > > Feel free to do anything you want. This is a completely separate instance > from the buildfarm animals. When we're done with this issue the EC2 instance > will go away. Thanks! Greetings, Andres Freund