Re: BUG #5339: Version of Perl detected incorrectly - Mailing list pgsql-bugs

From Jonathan Leto
Subject Re: BUG #5339: Version of Perl detected incorrectly
Date
Msg-id 9aaadf9c1002221214j704e0e45q647832f407ab278@mail.gmail.com
Whole thread Raw
In response to Re: BUG #5339: Version of Perl detected incorrectly  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #5339: Version of Perl detected incorrectly  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Howdy,

On Mon, Feb 22, 2010 at 12:07 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alex Hunsaker <badalex@gmail.com> writes:
>> On Mon, Feb 22, 2010 at 10:57, Jonathan <jonathan@leto.net> wrote:
>>> This is perl 5, version 11, subversion 4 (v5.11.4-114-ga4cc961*) built =
for
>>> x86_64-linux
>
> Ugh. =A0Can't they manage to keep that message reasonably consistent?

The form of the version string is the closest release version
(5.11.4), the number of commits ahead of that (114) and the SHA1 of
the actual commit. What flavor of consistency are you looking for?

>
>> ! =A0 perl_version_error=3D`$PERL -e 'use 5.00801;' 2>&1`
>
> This is not a path towards an acceptable solution, as it effectively
> assumes what we are setting out to prove, namely that we have found
> a reasonably modern version of perl. =A0Try it in perl 4...

These words don't seem to make sense. Can you translate? The the code
that Tim suggested is the most succinct way to ask Perl if it is at
least a certain minimum version, instead of inspecting the output of
"perl -v" and performing voodoo.

>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0regards, tom lane
>

In short, +1 to Tim's suggestion.


--=20
Jonathan "Duke" Leto
jonathan@leto.net
http://leto.net

pgsql-bugs by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: BUG #5340: Requirement of different syntax on different OS
Next
From: Tom Lane
Date:
Subject: Re: BUG #5339: Version of Perl detected incorrectly