Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deoJD-0000XI-2Z for pgsql-committers@arkaria.postgresql.org; Mon, 07 Aug 2017 20:07:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1deoJC-000844-Lh for pgsql-committers@arkaria.postgresql.org; Mon, 07 Aug 2017 20:07:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1deoIw-00078r-MY; Mon, 07 Aug 2017 20:07:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1deoIp-00066u-Qo; Mon, 07 Aug 2017 20:07:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v77K70f8011703; Mon, 7 Aug 2017 16:07:00 -0400 From: Tom Lane To: Andrew Dunstan cc: pgsql-committers@postgresql.org, PostgreSQL-development Subject: Re: pgsql: Record full paths of programs sought by "configure". In-reply-to: <2a8e30d4-d584-1d74-6efa-100112062333@2ndQuadrant.com> References: <7295.1502133694@sss.pgh.pa.us> <90c39664-ec60-77dc-9f1b-21e8fa7b864c@2ndQuadrant.com> <10269.1502134598@sss.pgh.pa.us> <2a8e30d4-d584-1d74-6efa-100112062333@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Mon, 07 Aug 2017 15:58:02 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11701.1502136420.1@sss.pgh.pa.us> Date: Mon, 07 Aug 2017 16:07:00 -0400 Message-ID: <11702.1502136420@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andrew Dunstan writes: > On 08/07/2017 03:36 PM, Tom Lane wrote: >> My goodness, that's ugly. Is it really better than injecting >> "PROVE=prove"? (I'd suggest saying that to configure, not make, >> so that the configure log bears some resemblance to what you >> want done.) > This is what we had to do BEFORE the change in this commit. Now it's no > longer sufficient. Sorry, I was imprecise. What I'm suggesting is that you drop the runtime PATH-foolery and instead put this in configure's environment: PROVE=$perlpathdir/prove Otherwise you're basically lying to configure about what you're going to use, and that's always going to break eventually. > It would certainly be better if we could tell configure a path to prove > and a path to the perl we need to test IPC::Run against. Hm, yeah, the IPC::Run test would need to deal with this as well. A PROVE_PERL environment variable is one way. Or maybe simpler, just skip the probe for IPC::Run if PROVE has been specified externally; assume the user knows what he's doing in that case. Are there any other gotchas in the build sequence? > The problem in all this is that we're assuming incorrectly that the perl > we use to build against is the same as the perl we need to run the build ... I think you meant "TAP tests" here ? --------------------------- ^^^^^ > with. On Msys that's emphatically not true. Do we have/need any explicit references to the test version of "perl", or is "prove" a sufficient API? regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers