Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp404694lqo; Fri, 10 May 2024 03:39:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoB+3nbmajNVGIOl/X8O+CCT+5lk8z6SPJImm+eTXRHZMp1LalOYTirlAhVGVAlT1LM9n1FB6uMY+KquB5lcMbxhgL90u4dMpNKdEudA== X-Google-Smtp-Source: AGHT+IFFBMlf5SDzQWM1enyhHAaSL3iXV3WpI44TWcZOaRFe006d7QsbH1Tdo3wU/y69LDRk2DdK X-Received: by 2002:a05:622a:2a0e:b0:43a:7b64:2fcc with SMTP id d75a77b69052e-43debf55253mr89890851cf.7.1715337579702; Fri, 10 May 2024 03:39:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715337579; cv=pass; d=google.com; s=arc-20160816; b=V8Myu4okESIHFbUF0uxJVYjRInI9tieILsW9zwLcrJFXY1OlWAIZdN2CYrw/4IfbLs anhgnABJo1PGfoxdUQunYaLwMaYfi1BsqLUcw4SpyeWtMGLsJWprwbH1cCxjha9EyQhM tGSo881QJPZemzn+PIZk7N7l5CoKJSeQ/ODhR/ZCgbfrWJCfoeeVwvKJZ00vMxYkpnj2 3GuEk2ukQKYkkWkkVsN5q8/MPYHspkuYtJZMm739KgjNtVLY3CIKnnl4jgMpLdw7OH67 2fxg9K0ubCerM7Isg9skJ9muwlM/uEDGgjN13vD9QHbJRgUuN9bwPtR9XMWp7WRrhpn0 ASCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=lSdbA5qcDd+aDIma3WfgeZKWbBykON/+pmgqe3sFuHA=; fh=razuHljjJRq0LbGi4EPva7O5NvrRtt9AdtZ765uSaYk=; b=LSA1M98amQy2NFJzEaakC5IQI/Oywd01HuyiMEtfg5bWqY8qufqIKc/4xePDzZUfuQ neIK4TnYOHeYSoeXFew5SD6PHDGDcvn5yloLcEvw6kPIbQLgb9PN1f7Hm4W5haqe0LBj FTHuJO67tWnHGBXk94DzPTJDCgk4IkX3QV2D8GMdDxx5zgKRoL1xpcPY6t4n+IYmBDU/ ++TNSi1BAngcUTE1N7yCttLc8elYA4NYZ9/E/SZUZGo1wqSlL7HR/GiE7sI+IYi9/smw agsjhuhC3eMNdt6fkG7n0v01h2s8FwZDFVFKnF0MINX9kektxf3sZ9OFWpnHpTQTdK0c mmWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qnI3iFRZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df54a2069si34978811cf.152.2024.05.10.03.39.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 03:39:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qnI3iFRZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-175601-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6002F1C20982 for ; Fri, 10 May 2024 10:39:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5384168B10; Fri, 10 May 2024 10:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qnI3iFRZ" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 3BE6F15749D for ; Fri, 10 May 2024 10:39:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715337570; cv=none; b=ShukdbDY7fdFdimUPzaG5GcB9Ml6UvvMUAOvAB/61pMyhJqIh4e2PnUOepSTmDn8PoUijB31ttvb+lKiwYueuuFlgcvyA+bZDga9bJ/tiA/weNP/xn/ZkMZju3XYF3uc5rrOv4VJRObSvuOQHUjkO9L/bX3uoYG3DecxyDI+8ag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715337570; c=relaxed/simple; bh=lLJtm4L0AX5mYOMOb1gomKwZfQddQsuNknBSIw8ZMNk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=IyxdovIFCsBE4SGTBuudNTPwXSFxAMb3FTm2nhs12S3k637EUWpznEn3PZKSyTtFFu1lSSQTx7tO5gMQWmNenFqkSs1WOGPVDUbZh9040kOyr8Jdrs6zJAG38VLie/z6hScEGOJX0e97lYMBwkuepEiHJPAn6bh4TxSC2D/+IJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=qnI3iFRZ; arc=none smtp.client-ip=209.85.219.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f171.google.com with SMTP id 3f1490d57ef6-dcc6fc978ddso1582418276.0 for ; Fri, 10 May 2024 03:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715337568; x=1715942368; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lSdbA5qcDd+aDIma3WfgeZKWbBykON/+pmgqe3sFuHA=; b=qnI3iFRZeef+kYvsFuRy+W8ViLKrHwWoL+nDHGuzvAC79PAoYrLcxMA4QjUqhwm+Na wgTtcDTe9Jd5PK6jCtZciIN7YC5TchHsGSQKQPtdzlu1jKLsXVVehY0P7TINb0noG1Kq nceeyogium/QZgp3cP+FCTkdHY0nUWIXc9yhTZY7Exd1bITcV6wYTRxFruQ9rBVAB4Jx BZ2qFeBt/HOQX67n7hOILLptIz41rVgcvD0WKZk8zvw7YTxY6bDM6Mg79cPClo0ok5TJ k6bg3C9zWKEtgAvxsQsdbw9N4QgK4LWg7Velwr8RdPao1txCAnUB7m40xZ9LAsv9YWXR hMNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715337568; x=1715942368; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lSdbA5qcDd+aDIma3WfgeZKWbBykON/+pmgqe3sFuHA=; b=MVsHj19dAmqAEpiURa7onmcIPpdP5584ei9K4N8cOBEr99GdHRWhNsB2Zgucejkz6I ewjuW3j3mXAJfMLseqCMrofn6wLuidWmg3xtRw2Y6LofUnrMnFWB4gK2CY1WFBJeseXn RXFP8EyU/j5W/Sy3FjStD2kg/pPlvA9zKnGZIyHFmp89IEKw2ED1Li6jO9ZsoED+7R3p 9YJMKQFXYahNSVAz7DiBKYPU7jbeQCOaG/K5pmVxnU0+iAHJ46vPcyuWmYdGItDRgTxw NOujR99UDZrSaB6BvsjhKOJcrTs+p/inEP+uiYu43otmGGEybZN/SAHjBaZyaUNCxF0V oqpQ== X-Forwarded-Encrypted: i=1; AJvYcCUl8DL/rtZDX9073zVChwlpocLBHt0cU+39x3JbuGPyKYNlppB4/jMJgWwH9yL/RoQKv/E7Orz6Ixx7UmWn0wgBaO/NTN1yyA5ZKasC X-Gm-Message-State: AOJu0Yw/+p7lk7nxpGt1K0gyq96J0BAmQtfLSessIkqvhzNjCPR4ytvL gtTdQyn5Sx4dKVhuW0UW5GCTFDa7VYS3Rme0JBwZ5u8b/b8EyJRbon1clOc17DtWwwOXVG4KZ1U T7pWWjGYxZN43ivTiY1SwdXPOn2d4aBv4ncAmtQ== X-Received: by 2002:a25:9e11:0:b0:de4:5c34:b8d6 with SMTP id 3f1490d57ef6-debcfb72954mr4114585276.8.1715337568134; Fri, 10 May 2024 03:39:28 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240509-python-version-v1-1-a7dda3a95b5f@linaro.org> <878r0ijdh5.fsf@intel.com> <20240510102036.3ea40b37@sal.lan> <87o79ehtbz.fsf@intel.com> In-Reply-To: <87o79ehtbz.fsf@intel.com> From: Dmitry Baryshkov Date: Fri, 10 May 2024 13:39:17 +0300 Message-ID: Subject: Re: [PATCH] docs: document python version used for compilation To: Jani Nikula Cc: Mauro Carvalho Chehab , Jonathan Corbet , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , workflows@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 10 May 2024 at 13:09, Jani Nikula wrote: > > On Fri, 10 May 2024, Mauro Carvalho Chehab wrote: > > Em Fri, 10 May 2024 11:08:38 +0300 > > Jani Nikula escreveu: > > > >> On Thu, 09 May 2024, Dmitry Baryshkov wr= ote: > >> > The drm/msm driver had adopted using Python3 script to generate regi= ster > >> > header files instead of shipping pre-generated header files. Documen= t > >> > the minimal Python version supported by the script. > >> > > >> > Signed-off-by: Dmitry Baryshkov > >> > --- > >> > Documentation/process/changes.rst | 1 + > >> > 1 file changed, 1 insertion(+) > >> > > >> > diff --git a/Documentation/process/changes.rst b/Documentation/proce= ss/changes.rst > >> > index 5685d7bfe4d0..8d225a9f65a2 100644 > >> > --- a/Documentation/process/changes.rst > >> > +++ b/Documentation/process/changes.rst > >> > @@ -63,6 +63,7 @@ cpio any cpio --ver= sion > >> > GNU tar 1.28 tar --version > >> > gtags (optional) 6.6.5 gtags --version > >> > mkimage (optional) 2017.01 mkimage --version > >> > +Python (optional) 3.5.x python3 --version > >> > >> Python 3.5 reached end-of-life 3=C2=BD years ago [1]. What's the point= in > >> using anything older than the oldest supported version of Python, > >> i.e. 3.8 at this time? > > > > What's the point of breaking compilation with on older distros? > > The idea of minimal versions here is to specify the absolute minimum > > version that it is required for the build to happen. If 3.5 is > > the minimal one, then be it. > > AFAICT 3.5 was an arbitrary rather than a deliberate choice. We should > at least be aware *why* we'd be sticking to old versions. From my side, the 3.5 was chosen basing on the previous feedback from Jon Hunter: https://lore.kernel.org/dri-devel/20240412165407.42163-1-jonath= anh@nvidia.com/ After checking distros that I can easily use, I don't think I will be able to test the script with Python versions earlier than 3.7.3 (Debian oldoldstable). I can try setting up Debian stretch (old-old-old-stable), which has Python 3.5 and so cover the needs of Jon. > > Minimum versions here also means sticking to features available in said > versions, for Python just as well as for GCC or any other tool. That's > not zero cost. > > I guess there are two angles here too. The absolute minimum version > currently required, and the, uh, maximum the minimum version can be > safely bumped to. Say, you want to use a feature not available in the > current minimum, how far up can you bump the version to? > > Could we define and document the criteria (e.g. based on distros as you > suggest below) so we don't have to repeat the discussion? > > > BR, > Jani. > > > > > - > > > > Now, a criteria is needed to raise the minimal version. IMO, the > > minimal version shall be at least the minimal one present on most > > used LTS distros that are not EOL. > > > > I would look for at least 4 such distros: > > > > - Debian > > > > Looking at https://wiki.debian.org/LTS, Debian 10 EOL will be on > > June, 2024. > > > > Looking at: > > > > https://distrowatch.com/table.php?distribution=3Ddebian > > > > Debian 10 uses python 3.7.3. > > > > - Looking at Distrowatch for openSUSE Leap 15.5, it uses Python > > 3.6.15 and has an EOL schedule for Dec, 2024. > > > > - RHEL 8.9 uses a bigger version than those two - 3.11.5 - again > > looking at Distrowatch to check it. > > > > - SLES 15 SP4 and above uses Python 3.11, according with: > > https://www.suse.com/c/python-3-11-stack-for-suse-linux-enterprise-15= / > > > > From the above, IMO kernel shall support building with Python 3.6 > > at least until the end of this year. > > > > Regards, > > Mauro > > -- > Jani Nikula, Intel --=20 With best wishes Dmitry