Re: pgsql: Adjust configure to insist on Perl version >= 5.8.3.

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Craig Ringer <craig(dot)ringer(at)enterprisedb(dot)com>, Noah Misch <noah(at)leadboat(dot)com>
Subject: Re: pgsql: Adjust configure to insist on Perl version >= 5.8.3.
Date: 2021-10-07 19:51:49
Message-ID: AF18F762-F3A8-4B52-8A32-54CD318D5977@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

> On 7 Oct 2021, at 21:44, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> [ cc'ing Craig and Noah, as author/committer of the existing text ]
>
> Daniel Gustafsson <daniel(at)yesql(dot)se> writes:
>> On 7 Oct 2021, at 21:02, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> BTW, looking at that a second time, I wonder if that advice is
>>> really of any use.
>
>> Yeah, I would have to agree. Reading that again I think what it perhaps should
>> be saying is that 5.8.3 is the Perl API level that the testcode must conform
>> to, but they should run with basically whichever recent Perl you have handy as
>> long as the required modules are installed. Not that we expect developers to
>> run 5.8.3 when executing TAP tests.
>
> Yeah. I propose that what might be more useful than the existing last
> section of src/test/perl/README is something along the lines of:
>
> Avoid using any bleeding-edge Perl features. We have buildfarm
> animals running Perl versions as old as 5.8.3, so your tests will
> be expected to pass on that.
>
> Also, do not use any non-core Perl modules except IPC::Run.
> Or, if you must do so for a particular test, arrange to skip
> the test when the needed module isn't present.

Agreed, that's a lot more helpful. Since the set of core Perl modules change
over time as modules are brought in (at least that's my understanding of it),
that last paragraph might want to discourage use of modules that aren't
expected to be in-core in commonly used systems? It might be overthinking it
though.

--
Daniel Gustafsson https://vmware.com/

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2021-10-07 20:05:44 Re: pgsql: Adjust configure to insist on Perl version >= 5.8.3.
Previous Message Tom Lane 2021-10-07 19:44:48 Re: pgsql: Adjust configure to insist on Perl version >= 5.8.3.

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2021-10-07 20:01:02 Re: storing an explicit nonce
Previous Message Bruce Momjian 2021-10-07 19:47:19 Re: storing an explicit nonce