I found it a real pain to set up Perl 5.8.8 to re-check recent TAP changes against it. It turns out there's a much easier way than messing with VMs or manually doing a source install, so I documented it to save others the future pain.
It'd be nice to commit this at least to 9.6 and v10. Trivial one-file docs patch. There's no README to patch in 9.4 or 9.5. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
From 4ea6e7bff66ac2026bbca130bd036618b4012c35 Mon Sep 17 00:00:00 2001 From: Craig Ringer <cr...@2ndquadrant.com> Date: Tue, 15 Nov 2016 15:45:41 +0800 Subject: [PATCH] Document that perl 5.8.8 is required --- src/test/perl/README | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/test/perl/README b/src/test/perl/README index cfb45a1..f15e4f0 100644 --- a/src/test/perl/README +++ b/src/test/perl/README @@ -64,3 +64,20 @@ For available PostgreSQL-specific test methods and some example tests read the perldoc for the test modules, e.g.: perldoc src/test/perl/PostgresNode.pm + +Required Perl +------------- + +Tests must run on perl 5.8.8 and newer. perlbrew is a good way to obtain +such a Perl; see https://metacpan.org/pod/distribution/App-perlbrew/bin/perlbrew . +Just install and + + perlbrew --force install 5.8.8 + perlbrew use 5.8.8 + perlbrew install-cpanm + cpanm install IPC::Run + +then re-run configure to ensure the correct Perl is used when running tests. To verify +that the right Perl was found: + + grep ^PERL= config.log -- 2.5.5
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers