From patchwork Fri Jan 24 16:30:48 2025
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Peter Oliver
X-Patchwork-Id: 13949669
Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com
[209.85.128.41])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC99F158853
for ; Fri, 24 Jan 2025 16:31:17 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.client-ip=209.85.128.41
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1737736279; cv=none;
b=G6R6KNa2foYLW/O5wfXMZTa4Ob5au6cawwe3D+BLOti0hJ/0KgPutN1vumB14G+Eo2STpK6rpVJoeBDU6laWGD7VsL/jUYkiEAQvg0/ULuZZI1vriGaEoRd4zYaSuQE14wqTB1n0X/N4nmCAKDlBa0S2WlekzORtGzN/mVRsEKU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1737736279; c=relaxed/simple;
bh=CZDIN2iNT+5J0K3ClvIWFNi8uzZqiggQO34mgSuOARc=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version;
b=ncFM0a8dGvgJ/gmhcsLrLhQv03NeZa0DXczpzI8lc+FNyAFbCvey67aCvRXZ8SNj21jMDBHAqaLaDBhxODwI8K2BEvHPUNV7nUBm9AwSt6+YfBifmys1N2peBxU0G8WgNmxCFnk9cGPbDIlORzVVkgnnC1QcyTIn/tHHcSajvMI=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none (p=none dis=none) header.from=mavit.org.uk;
spf=pass smtp.mailfrom=mavit.org.uk;
dkim=pass (1024-bit key) header.d=mavit.org.uk header.i=@mavit.org.uk
header.b=V9Ba8Itd; arc=none smtp.client-ip=209.85.128.41
Authentication-Results: smtp.subspace.kernel.org;
dmarc=none (p=none dis=none) header.from=mavit.org.uk
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=mavit.org.uk
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=mavit.org.uk header.i=@mavit.org.uk
header.b="V9Ba8Itd"
Received: by mail-wm1-f41.google.com with SMTP id
5b1f17b1804b1-4361f796586so24611865e9.3
for ; Fri, 24 Jan 2025 08:31:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1737736276; x=1738341076;
darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date
:message-id:reply-to;
bh=SOjmoujGXrNSarW+M+IiCievIUP8NBhJv073C7H5pD0=;
b=V9Ba8Itd8Tz7mcBKy5WmYMKlRiPZPGPXraq/TAOTsQFbQLOOg6SP0175/zFYdCa3TL
m3c+5bzyD+B3TxA4CS1WdyQRs5wI++4sUaxOokXgPyYm7JDX6snuPwKpmAKveUZz4Yow
XlSlFIgmGPW8dqPOMT+K8IiA1YB131fVPrHQQ=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1737736276; x=1738341076;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:sender:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to;
bh=SOjmoujGXrNSarW+M+IiCievIUP8NBhJv073C7H5pD0=;
b=PElk/KFpB1mH18VX+YHl9t7XacJtZa7qwFo8rGMB9J3JYc9hO07cbT1oa9veRpsOpd
zEgKcyA3FzY8gTJw+TLXsDa/lHCbfmPpDTjrBBQPPMTGMIgKpZivaeFfI2RG+IYU1hK/
U3jTSxNao+PbZr59/B71SVejJFEeLyC0ih87ib4wYaUZIIgcTRLq+u9mG5BnJSAZADAx
9aRVxJv8c5M4M/5u6FtOphn4nC9ou1i4Pe2kgXe5cmT7BdwwhP9nuXFSiC+YBijX8xLf
CKoHYMZ1jWwyIXwbbMMkeiEUp+teoU3ec1I5MzSm64plZpQe2ZdMm4JvQ3PJKawiYYcV
Xa1g==
X-Gm-Message-State: AOJu0Ywmu1gSqw72WChSdhZyZHH6gUxPdEywf1jz4TPPFwuggiHH1gEn
vqq/mQxNiZ+6n4tCNEhZG8+QQfM3xg9K07rGSlecm/bOgprovZu8X0DfXA4cee3seM+hwCiJsIN
A+w==
X-Gm-Gg: ASbGncu6kjTfZ2FTj8wumD2FMlm6+v/26+i7sj5to66CuuOFtU3l/UNtFvyEPi027BX
ELr1IlJRNN9onEfX6x3NwuzyhnImZkfdlW5gE2izwjetTS0Gj3MMpe0hPgTUVE0Ivr53Nd3qtwc
ePqwvkXEzVREsKq12p9R/hjXvFY70G4GX4bNzX2rZL90rxpeCuYS8xkBmjK/krZ6noh1VbekmeE
l6dLPUSPLmVPP5zWdsi1+TKf9pvofCOwzlePJJsu/Nmd+//h8HzGOTpUbb9wUcsA0i9dAtVLCuV
jY6Ldh3pAhmhZwregBkxPsFlTUAzJI1KeWiolnE7myG4VWWYPhIS1LP+5sYrvhPGjZwzpVPowck
EsD5QuEEU
X-Google-Smtp-Source:
AGHT+IFBVepAFAmaExP8GawPAJYmeFLep0wFShKA90NoaR/Mv09dzApKOB4ZvPEwyseQhzJFgft6RQ==
X-Received: by 2002:a05:6000:1786:b0:385:d7f9:f16c with SMTP id
ffacd0b85a97d-38bf57be11bmr32946586f8f.46.1737736275801;
Fri, 24 Jan 2025 08:31:15 -0800 (PST)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-38c2a1bb040sm3153332f8f.67.2025.01.24.08.31.14
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 24 Jan 2025 08:31:14 -0800 (PST)
Sender: Peter Oliver
From: Peter Oliver
X-Google-Original-From: Peter Oliver
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 50OGVDLn024007
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 24 Jan 2025 16:31:13 GMT
Received: (from mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) id 50OGVDmw024006;
Fri, 24 Jan 2025 16:31:13 GMT
To: ps@pks.im
Cc: git@vger.kernel.org, Peter Oliver
Subject: [PATCH v2 1/2] meson: bump minimum required Perl version to 5.26.0
Date: Fri, 24 Jan 2025 16:30:48 +0000
Message-ID: <20250124163049.23965-2-git@mavit.org.uk>
X-Mailer: git-send-email 2.48.1
In-Reply-To: <20250124163049.23965-1-git@mavit.org.uk>
References: <20250120160301.121245-1-git@mavit.org.uk>
<20250124163049.23965-1-git@mavit.org.uk>
Precedence: bulk
X-Mailing-List: git@vger.kernel.org
List-Id:
List-Subscribe:
List-Unsubscribe:
MIME-Version: 1.0
Commit 702d8c1f3b (Require Perl 5.26.0, 2024-10-23) dropped support
for Perl versions older than 5.26.0. The Meson build system, which
has been developed in parallel to that commit, hasn't been bumped
accordingly and thus still requires Perl 5.8.1 or newer.
Fix this by requiring Perl 5.26.0 or newer with Meson.
Signed-off-by: Peter Oliver
---
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 0064eb64f5..f01d81b39f 100644
--- a/meson.build
+++ b/meson.build
@@ -755,7 +755,7 @@ endif
# Note that we only set NO_PERL if the Perl features were disabled by the user.
# It may not be set when we have found Perl, but only use it to run tests.
-perl = find_program('perl', version: '>=5.8.1', dirs: program_path, required: perl_required)
+perl = find_program('perl', version: '>=5.26.0', dirs: program_path, required: perl_required)
perl_features_enabled = perl.found() and get_option('perl').allowed()
if perl_features_enabled
build_options_config.set('NO_PERL', '')
From patchwork Fri Jan 24 16:30:49 2025
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: Peter Oliver
X-Patchwork-Id: 13949670
Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com
[209.85.128.43])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5213D1991AF
for ; Fri, 24 Jan 2025 16:31:21 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.client-ip=209.85.128.43
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1737736283; cv=none;
b=FlYxZLfmvLifOfuK9GYql9oHROdmn0KmNaOka3WTCXJXaJdv2U5LYR42StHqC7u1mrVXHu/u0mTPspq4Sz+1orlIGFM0v7f+N4Bq0+t9sdtTE6j4xRs4/6XaaSUtZu7bcaGAkFD5JVDYz7Rg87touCLE1/acmfXo6yFIcraYE5A=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1737736283; c=relaxed/simple;
bh=NsYpQR8D8EWiAxl7//ZB7Dy+dNeCtRT5jyytUrqyL6k=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version:Content-Type;
b=Aniz1rAvoyrnVHybH8E/qKL07eVKsBE3KXUP1l4DqaOutZJAQJhSKXjYTLuJhQfKz+4Sj2zkJXGRKvN3jzQHXfXH0551SHGZYz8WscrubVzc22VYkgO2m1L6nUMRiRBuD1X15tQXXqRf1hGu/3cU0H4mDeyhGWzIeDl+Lh6KzQ0=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none (p=none dis=none) header.from=mavit.org.uk;
spf=pass smtp.mailfrom=mavit.org.uk;
dkim=pass (1024-bit key) header.d=mavit.org.uk header.i=@mavit.org.uk
header.b=l/bauwJj; arc=none smtp.client-ip=209.85.128.43
Authentication-Results: smtp.subspace.kernel.org;
dmarc=none (p=none dis=none) header.from=mavit.org.uk
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=mavit.org.uk
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=mavit.org.uk header.i=@mavit.org.uk
header.b="l/bauwJj"
Received: by mail-wm1-f43.google.com with SMTP id
5b1f17b1804b1-4361dc6322fso15862655e9.3
for ; Fri, 24 Jan 2025 08:31:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=mavit.org.uk; s=google; t=1737736280; x=1738341080;
darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date
:message-id:reply-to;
bh=020pw6KPimANOioRtqmhtcPnYPTEs56+5pPiQg3BZXQ=;
b=l/bauwJjj008dhDlb+633gXvTKx/9m2uFRm0v8p+1YTT8P5cG1+R/eXzciLvY4Z68b
+YqrIiupZCBnY/k+fWZtr5ztpGtqKpdbPY6A184/Nyp0Us7Hpbq7dF18Dn35CZF1YE+2
Pf+dsLc51hom8OMJZ/TOT47dbAEkn5GnznNIs=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1737736280; x=1738341080;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:sender:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to;
bh=020pw6KPimANOioRtqmhtcPnYPTEs56+5pPiQg3BZXQ=;
b=TAtu7oi2isBqOSFSz8vpu5eu2ueDur0EA0E8+DJAorsLxHEyk3ygyS3J4JUDdBfAgb
PRfI7WTRt/q+uhJJgv8q9KyHkez9RtGNEyHWEyqn3zpbF8TbC7VltO1hd6NvrXaOgn8T
PCGz53irpShSMEkPrxpJzBLx2VwdEiWQwUmrvPomLy2tF0I/d4nI7D46Ku3Immn5OxNA
1p2ZBnKQzIdRVNMxvMkVOr8iMEQB1BpGFVE1YJjiPN+bz1ZtPsY9vuuEJ/ISIg1rIfnc
3pxsVuT0LzxAeBKu8MvRJ2W8LUaEmMgFwVzkztERAJxXp/0s1XxBiBoRvwXRz9+WkZhZ
nViQ==
X-Gm-Message-State: AOJu0Yx1DFkmnP9gIfdBTIyX6oXYUHBApfiG4ySmTS6vtuWxg3oIgO8D
+At3M7Zn/w+3ctkpPL89/7b2CLXafCRY6UGaHpsVS0te48QrN8QSCYIzfXjNOQ==
X-Gm-Gg: ASbGncsuDt8xkR7QNJJ1CvRVyDSmMfVqKZLiseTrPRsKSKHHHPuo+GY7MKUcUfrF9vh
cgCpECRbL24SMJWbhy9jpn6fLJUCa4HcThE0/LXm+T5z0QIsp6b9booHfQ04DtqiRKDl1eo+lRu
nHopr/3NLbKQP+0Gepyt9EkWLcUSlBiZBjpcBIwehfDs8w/9rV97IJoBlsXk6vBDSmaeFMfSgSi
YOyapoe8vNCLmA2z2yv/xGFDEL8ctlsH8LQ8Nbkume6IgpYjkA8vGeQdxqDpmv5YJ6aisMyjNX8
Y/x9de2v72vCpktFjANDfgslXuyY30uFFISlp3TIuzvhyiwjzKp0dEIhzdTmT7ko2W3f2yVy4EQ
cLGWGxu87
X-Google-Smtp-Source:
AGHT+IHXiaA4w0173ToCwwou1pAg706ZkrT+nL4csyyoPPLTWdBWM5IL6Qw95SuG3sZ+CsnojZ56zg==
X-Received: by 2002:a05:6000:1864:b0:386:3328:6106 with SMTP id
ffacd0b85a97d-38bf59e199cmr33775022f8f.35.1737736279484;
Fri, 24 Jan 2025 08:31:19 -0800 (PST)
Received: from froglet.home.mavit.org.uk
(dudl-14-b2-v4wan-165812-cust3365.vm31.cable.virginm.net. [82.34.125.38])
by smtp.gmail.com with ESMTPSA id
ffacd0b85a97d-38c2a1bb101sm3239490f8f.66.2025.01.24.08.31.18
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 24 Jan 2025 08:31:18 -0800 (PST)
Sender: Peter Oliver
From: Peter Oliver
X-Google-Original-From: Peter Oliver
Received: from froglet.home.mavit.org.uk (localhost [127.0.0.1])
by froglet.home.mavit.org.uk (8.18.1/8.17.1) with ESMTPS id 50OGVHdP024011
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 24 Jan 2025 16:31:17 GMT
Received: (from mavit@localhost)
by froglet.home.mavit.org.uk (8.18.1/8.18.1/Submit) id 50OGVHoY024010;
Fri, 24 Jan 2025 16:31:17 GMT
To: ps@pks.im
Cc: git@vger.kernel.org, Peter Oliver
Subject: [PATCH v2 2/2] meson: fix Perl version check for Meson versions
before 1.7.0
Date: Fri, 24 Jan 2025 16:30:49 +0000
Message-ID: <20250124163049.23965-3-git@mavit.org.uk>
X-Mailer: git-send-email 2.48.1
In-Reply-To: <20250124163049.23965-1-git@mavit.org.uk>
References: <20250120160301.121245-1-git@mavit.org.uk>
<20250124163049.23965-1-git@mavit.org.uk>
Precedence: bulk
X-Mailing-List: git@vger.kernel.org
List-Id:
List-Subscribe:
List-Unsubscribe:
MIME-Version: 1.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.
Signed-off-by: Peter Oliver
---
meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index f01d81b39f..80af578d36 100644
--- a/meson.build
+++ b/meson.build
@@ -755,7 +755,11 @@ endif
# Note that we only set NO_PERL if the Perl features were disabled by the user.
# It may not be set when we have found Perl, but only use it to run tests.
-perl = find_program('perl', version: '>=5.26.0', dirs: program_path, required: perl_required)
+if meson.version().version_compare('>=1.5.0')
+ perl = find_program('perl', dirs: program_path, required: perl_required, version: '>=5.26.0', version_argument: '-V:version')
+else
+ perl = find_program('perl', dirs: program_path, required: perl_required, version: '>=26')
+endif
perl_features_enabled = perl.found() and get_option('perl').allowed()
if perl_features_enabled
build_options_config.set('NO_PERL', '')