Article View: linux.kernel.git
Article #2393Re: [PATCH] CodingGuidelines: update the required Perl version
From: "brian m. carlson"
Date: Wed, 04 Nov 2026 22:28
Date: Wed, 04 Nov 2026 22:28
94 lines
12509 bytes
12509 bytes
--UULTjyjSpjWJFQPf
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2026-11-04 at 19:56:57, Junio C Hamano wrote:
> Tuomas Ahola <taahol@utu.fi> writes:
>=20
> > Junio C Hamano <gitster@pobox.com> wrote:
> >
> >> Tuomas Ahola <taahol@utu.fi> writes:
> >>=20
> >> > - - We try to support Perl 5.8.1 and later ("use Perl 5.008001").
> >> > + - We try to support Perl 5.26.0 and later ("use Perl 5.026000").
> >>=20
> >> Is this in line with what 702d8c1f3b did? Shouldn't we say
> >>=20
> >> > + - We try to support Perl 5.26.0 and later ("require v5.26").
> >>=20
> >> "require v5.26" instead?
> >>=20
> >
> > Frankly, I don't make head nor tail of such Perl minutiae. I would fin=
d that
> > parenthetical much more useful if it told exactly when we are supposed =
to use
> > such incantations.
>=20
> I do not claim to be intimately familiar, but you can consult the
> commit you cited as the reason why you decided to make this update.
>=20
> $ git show 702d8c1f3b
> commit 702d8c1f3b5377a64670b0f22add157b0bfc33dd
> Author: brian m. carlson <sandals@crustytoothpaste.net>
> Date: Wed Oct 23 00:45:59 2024 +0000
>=20
> Require Perl 5.26.0
>=20
> Our platform support policy states that we require "versions of
> ...
> Use require instead of use to avoid changing the behavior as the =
latter
> enables features and the former does not.
>=20
> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
> Signed-off-by: Taylor Blau <me@ttaylorr.com>
>=20
> ...
> diff --git a/contrib/diff-highlight/DiffHighlight.pm b/contrib/diff-h=
ighlight/DiffHighlight.pm
> index 636add6968..3d061bc0b7 100644
> --- a/contrib/diff-highlight/DiffHighlight.pm
> +++ b/contrib/diff-highlight/DiffHighlight.pm
> @@ -1,6 +1,6 @@
> package DiffHighlight;
>=20
> -use 5.008001;
> +require v5.26;
> use warnings FATAL =3D> 'all';
> use strict;
>=20
> It looks to me that the "parenthetical" you called was designed to
> be useful by telling you what to have near the top of your Perl
> source files. Replacing it with "require v5.26" is exactly in line
> with that, I would think.
As mentioned above, you want `require`, not `use`, with Perl versions.
The latter enables the relevant features, which include Unicode strings
as of 5.12, and that will change the behaviour of our code in ways we're
probably not expecting. That didn't happen in 5.8.1 because features
didn't exist, so the `use` for that version was okay.
You effectively always want `require v5.26` or something equivalent such
as `require 5.026` in our codebase. The former is nicer to read,
though.
--=20
brian m. carlson (they/them)
Toronto, Ontario, CA
Speaking for myself only
--UULTjyjSpjWJFQPf
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
wr0EABYKAG8FgmrrsY4JEHwMSWKIh6KBRxQAAAAAAB4AIHNhbHRAbm90YXRpb25z
LnNlcXVvaWEtcGdwLm9yZy7qNj3FUGtPB9T8jd/ge5QBF+GekbnX4mdkxFQu25Xy
FiEECCzmip28ZfuD0cORfAxJYoiHooEAALn3AQDF47uK9lJSKSXkEnuz1iEGdf2E
kiAMPIeXomBJhx3jKgD/TXub9VDGtaxcT4y+D/1HLjzpTeFdL1hknqKdadHPVAI=
=pvkn
-----END PGP SIGNATURE-----
--UULTjyjSpjWJFQPf--
Technical Details
Message-ID:
<auuxjhaauAQ7Vtjs@fruit.crustytoothpaste.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74495-linux-kernel-git=dewy.ruReferences:
<20261101185846.24208-1-taahol@utu.fi> <xmqqjymvooyn.fsf@gitster.g> <20261104193450.XvTBf%taahol@utu.fi> <xmqq5wyc1iba.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74495-linux-kernel-git=dewy.ru
From: sandals@crustytoothpaste.net ("brian m. carlson")
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] CodingGuidelines: update the required Perl version
Date: Wed, 4 Nov 2026 22:28:30 +0000
Organization: Usenet Network
Message-ID: <auuxjhaauAQ7Vtjs@fruit.crustytoothpaste.net>
References: <20261101185846.24208-1-taahol@utu.fi>
<xmqqjymvooyn.fsf@gitster.g>
<20261104193450.XvTBf%taahol@utu.fi>
<xmqq5wyc1iba.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature"; boundary="UULTjyjSpjWJFQPf"
Injection-Info: usenet.network;
logging-data="3551163"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:boux3BX3uCw0KMEl4VB6dfE5PgI= sha256:bR9EKHo+aeu4a/Dfom8VIFEn8Z9GJHDNp13efl2j0s8=
sha1:PDNtnTqzXm5q7IVrYcrUYqKp2XU= sha256:tiKpAx1caEGA6UVQZR27nF4w2djK4EohPvCe3wgxcpk=
Content-Disposition: inline
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 81546112E7E; Thu, 5 Nov 2026 06:24:50 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.95
X-Spam-Status: No, score=-1.95 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (3072-bit key)
header.d=crustytoothpaste.net
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id NYhvC_TcQs51;
Thu, 5 Nov 2026 06:24:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-74495-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=crustytoothpaste.net
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 05988112E75; Thu, 5 Nov 2026 06:24:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id 2A2D3144224; Wed, 4 Nov 2026 22:31:30 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793831315;
b=Wb56vzFA/sWlOucYotIfsjLgfZmOZQuitNsYAqzH9YoDv/P6WsTepI0AOiLaoeqcq0qJ
Zb8cbV2/OaC3nVZzVwo4WL32oMJczyfy8DL8JbycvgiusC1ezkpU+zOVw37xHm5a0Vyia
cnLmnOTIosuuxou8y/eSIcKFi90pwJBc6AwqPJoqZV+yl/8jJ9MoB/7KGCcOtPXIOPIEe
J/2xetdl6drSOH4PEJEpkF82xwZP7JVCxa+7oN9VJsa3kaB59oiCMQbG2KFk7mdYhmrJN
EN2QWcMRI8WS9S2quGqEcLinYnKjC1XZcPz6hAjk/97OY54rCtgnpKObcgAsbhdhUiA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793831315;
h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To:User-Agent;
bh=HvWWhI3lGhAiK/FDAF3vIQKsHLgePg6CcH+XL8jR/3g=;
b=V/lShMyUD9BZhMEKRmnpkrb6SsCpgr8Y9rPG53OP9/ZKC4KACRIPLn2BUuMHyGu1Lj12
uDdPl9Hmo51dNAkuY5v74h1u0kuj8x3/N/KEx1Z3Oribi3S09D5XZS93ieo0ibie5Hb+M
/0aTZRPgubAqb8eeCnIYTz5R0XlWnsBGmwvk1n/cRm4f3i7GmQp+9KZ9Fa2jSXYGR34TK
VBP9HsMXZW0ap5S0mbwdSrdCvMzIw5GE3JwX7PMjneOiL0V/hGOGu4rzUrGGRMH9ZfvWv
y6mUWvM/cflzxpt58NOGjpSCGnqZBIwXBXuYedBJ0VJ3aCCJ+xxozD9Y1MCtuOwDm/Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b="UO/RUbi7";
dmarc=none header.from=crustytoothpaste.net;
spf=pass smtp.mailfrom=crustytoothpaste.net;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 2469A606EE91;
Wed, 4 Nov 2026 22:28:35 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (3072-bit key, unprotected) header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b=UO/RUbi7
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=172.105.7.114
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793831314;
b=pxsBTrIN/uS8hL25FJBD0UeNlcDo4Fo8bSWw7AobVwhDRKMLKp61vW3jc20vkEZ0QUF7
RB5Wq82dXYkXsH+A7XGK6t9SkygFlGPyBykOtJx4R8xe/+sk/1zDzfZxM4dhZaYW1fY5O
18DUH0gW470wzYFsc1iV5HZ50GwQk7JBdLvl+/RoMxrTswTw1+FzFFPb07dEIUQ7aX+vW
4jzlfgmOdtizxHoo8F7Jwc89cfMBD5Uh53VqasHhr8tJHhU8yG5I3Nj3NxBvpATe1eqh/
G2OY/xQjldbuhKowvXidUlbcZVuXEy8k0i7fSVkDUTYzCvAvCMWAGJAdzFP3D3KmJYQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793831314;
h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:
Content-Disposition:In-Reply-To:User-Agent;
bh=HvWWhI3lGhAiK/FDAF3vIQKsHLgePg6CcH+XL8jR/3g=;
b=qzHqrHmR24IxUHAr7ShJnrBNOo4srXz1P9IJW/AT88qbUC5KS63ufTGQs8nOThe8dioQ
vKxr0gxOcYgB5I6DXs31hV48AJ76dmqb65zNPI1rUSNXJXMlXi0rFTD9MlaR8uTYNOoDg
8WMy+N0rBIOJ4NgmurMdME4q+TX/p7v4A1RHGspJj++xffwGRzwtY/pDFRkQZxRnBBM2m
ieyU4IOC//fkX4xDu0Ea8OwvKJZaZOr6tvvgYss/9THGXY50WNLNHIIV8d/k2B8figUV0
woydFwbZHqUfuLWrXi/U6lEUgZl4bG0u/cbEqrRMpVAAKL0eiJW4ISEAN/b410uxCKw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=none header.from=crustytoothpaste.net;
spf=pass smtp.mailfrom=crustytoothpaste.net;
dkim=pass header.d=crustytoothpaste.net header.i=@crustytoothpaste.net header.a=rsa-sha256 header.s=default header.b="UO/RUbi7";
arc=none smtp.remote-ip=172.105.7.114
X-Received: from complex.crustytoothpaste.net (complex.crustytoothpaste.net [172.105.7.114])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8047A606B3B0
for <git@vger.kernel.org>; Wed, 4 Nov 2026 22:28:33 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8047A606B3B0
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=crustytoothpaste.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=crustytoothpaste.net
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crustytoothpaste.net;
s=default; t=1793831312;
bh=6lxD/ameqfUbjAJpIdO7tqF18J3jTJxmw7SGb9OmA80=;
h=Date:From:To:Cc:Subject:References:Content-Type:
Content-Disposition:In-Reply-To:From:Reply-To:Subject:Date:To:CC:
Resent-Date:Resent-From:Resent-To:Resent-Cc:In-Reply-To:References:
Content-Type:Content-Disposition;
b=UO/RUbi7G4qWTPECJ+ze6OWOj9mnwbkbNYrPZcz0Cufw5LZ/aPD8V1hyuFDvDoqCJ
ad6q1fr64khLpRTnoCOEDXRGRwOfkrNDzyMPEdHtAhvXqaUsx4FpafBgguXifMJrTj
LZsSAK1eqObGAs6tc4g7m2vx1n6vWThojNFfKuhpEifXZsZLu0KHPyBo7W3JgTtmHp
J9U4FtTuefxNEOyJNZAATIF0sYV9FQpJgvXTj4Va14DfAt9CZ28ukGJwv5DQOD6u6A
Whu/UuH8SEO9P7BIrJxNto6j6IdTWSewLdRJCIVFP4GBwyzw6c71oplsmjMjnA2+P6
7YOlXMNJU2aFXywmPglQEk+YfE4lhA4bmA0e+wZWyK0UJOHGspLdl/F6bzZpbUUsth
sXD8D9kd4RZ+G4SZTyQO4knOSH8DJv7US0ghWaotLXIlStz9WXEr774XyYV55yg9HT
Es6M8aKWTFaWprAgoze4J73RCK3mlDmr7Qx3OAi7BHvNDkNMfAf
X-Received: from fruit.crustytoothpaste.net (unknown [IPv6:2607:f2c0:f00f:f901:e583:5f34:4c85:81fa])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by complex.crustytoothpaste.net (Postfix) with ESMTPSA id 2B940200A8;
Wed, 4 Nov 2026 22:28:32 +0000 (UTC)
X-Cc: Tuomas Ahola <taahol@utu.fi>, git@vger.kernel.org
X-Mail-Followup-To: "brian m. carlson" <sandals@crustytoothpaste.net>,
Junio C Hamano <gitster@pobox.com>, Tuomas Ahola <taahol@utu.fi>,
git@vger.kernel.org
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <xmqq5wyc1iba.fsf@gitster.g>
X-User-Agent: Mutt/2.4.1 (2026-07-04)