]> git.ipfire.org Git - thirdparty/git.git/commit
meson: fix Perl version check for Meson versions before 1.7.0
authorPeter Oliver <p.d.oliver@mavit.org.uk>
Tue, 18 Feb 2025 15:30:43 +0000 (15:30 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Feb 2025 16:04:26 +0000 (08:04 -0800)
commit0bf8d1b3954920eb6d9304d187af18fea5f318fd
tree4c4827b163242d935373ea9d42d89f472d118001
parentd874d378379f4a2e7fa0a8ab52ff6e407f4da343
meson: fix Perl version check for Meson versions before 1.7.0

Command `perl --version` says, e.g., “This is perl 5, version 26,
subversion 0 (v5.26.0)”, which older versions of Meson interpret as
version 26.

This will be fixed in Meson 1.7.0, but at the time of writing that isn’t
yet released.

If we run `perl -V:version` we get the unambiguous response
“version='5.26.0';”, but we need at least Meson 1.5.0 to be able to do that.

Note that Perl are seriously considering dropping the leading 5 entirely
in the near future (https://perl.github.io/PPCs/ppc0025-perl-version/),
but that shouldn’t affect us.

Signed-off-by: Peter Oliver <git@mavit.org.uk>
Co-authored-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build