Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3954296pxj; Tue, 15 Jun 2021 12:10:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztAHAVZx/EbKZkpXRUMyrjam6YS+stq843QKU7VX7AGPgf4LU3XvSXJj5z68bFyuz/ZGGw X-Received: by 2002:a02:914a:: with SMTP id b10mr622874jag.59.1623784203157; Tue, 15 Jun 2021 12:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623784203; cv=none; d=google.com; s=arc-20160816; b=HzyhpEsFRsDxoo83ViUkEqS+y/0uPab7hhRQbwjx8Y7LQht70DuEXYpvUIddPrHa0g ozJ26X4IyJSymJ+UOZQaDHAkc2TZeTFShklUEYXQ0nkHHnMnOlznVKKFLXwMrxgjdkPs VHWocsBzRyUffUqQvFQMbab5qrJZ2taGfrCG+zZyGABNpKSgmE3KxxqUYRYThdDjeJKk zbsa5wQFFh3/4yNU0b5sio+Yy74a4vWwYQJn2YHMk5ae9EN2qSWTUXn9ie0tzsDw2HrF cDVISNrfgMM34wcTKQ0B/RsF485GquISDONJ8xmtXpmis3WveHgoEUyeruKxW4EdGyk3 w4Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=oc/qz9T7MURmvxgoaDmQ5ipajw1eWWTktl7kdX6kYoo=; b=qfg6q72O6r3z7DCZzZW1NM4/NYQbmjIfgIaPkXMac4Yb9bNTIZcWlvNLE1+wp5YZ71 gvskYM4JbPUSSmPjHa/aGuN7Q8GSY78dCfM4/Juih0SAsDhO/Xyf5zV4AWthvQi6w8m4 cHN9/P5J0mL1wuBexvzll3A7rTUmOidGeDh+l10oJBiv6VNW/xSgPJpnyXuXLWcS8jX0 t43CYt3kHIgUZFK7RcH/S7soTkS7ChUP9wnE6wr3SFXAVC3ZUCovdcVYkTM3f4JxeRhL /P1O4FVk61LgW0ZQnZC+Ox1ASd88IUOHIO/X8FEncDN15m8j8KY6RQFi9mDhfnbUZvr4 ya+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pbarker.dev header.s=fm1 header.b=LMawjffu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RgisfqTD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si18889027ioz.48.2021.06.15.12.09.44; Tue, 15 Jun 2021 12:10:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pbarker.dev header.s=fm1 header.b=LMawjffu; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RgisfqTD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230387AbhFOTLS (ORCPT + 99 others); Tue, 15 Jun 2021 15:11:18 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:37477 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbhFOTLS (ORCPT ); Tue, 15 Jun 2021 15:11:18 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 309FE16B0; Tue, 15 Jun 2021 15:09:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 15 Jun 2021 15:09:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pbarker.dev; h= date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm1; bh= oc/qz9T7MURmvxgoaDmQ5ipajw1eWWTktl7kdX6kYoo=; b=LMawjffumfaxcQKa 1NfkS2YSM6H3YmSICVtU7wwisWjdWiBqQ3Tl0wqd2YtBjivaJp8sjOOpQEpoBsL7 +TFdo0kz1+0Wvz1xfDBC8O/jD1g2X3SG7c1Gbrvyvl1KPu6O9qm5BCE+H+w2j4wA XWE5vVBoOerAy/xwy2lG0WGi11imVB0qrTw/5h28Fi16vlH8WULnbQbRJbn0UFwb k+gbLBndfQDl26h7bRf3tXp/5EobC5BjoB8gdG9aCCj1EZ/xWUohkFVO5JHiNXcr +2w8WOtbnX0cnii+e7JocM06sa4/RAIh13rLIU81KzvZFE+CJgyd6Gg8qqHmDzXf iwyR5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=oc/qz9T7MURmvxgoaDmQ5ipajw1eWWTktl7kdX6kY oo=; b=RgisfqTDcKG9JghhAGnxWRJTGnsx+trh/ZXtMqTOzebHLd5Ky4FlKnk4G TLoDHTQrNC7TdxlM5lJEqJ5kGCFLcj5BvmU4lglnIcz+R2v1fmo9ZXeNcTIaMeV6 n89mOj5ZuKPvqt1sOZ1+1YpVO9uZCBaQz7XuxnDCqFlC/xiJr0kjwwuPGXBCfyRV jzJTdpg5nKBJF0e07dSN2zam11blZ/y3mDW3FSkxVTwcO3ktg9Dd2bqUarVZhh7w vvqZj3z4pUJWlwUt3PgZRmkCc7j6XhWPNaa64QO4J2limShaC8hkNX5Utkt6qGd1 /eKF5MO8U+iv1dSlQa9UvtYlctmUw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvjedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkjghfofggtgfgsehtjeertdertddvnecuhfhrohhmpefrrghu lhcuuegrrhhkvghruceophgruhhlsehpsggrrhhkvghrrdguvghvqeenucggtffrrghtth gvrhhnpefghfehtdevffevffehheduhfdtveekhefffffgkeevieeghefgjeevgeehgeet vdenucffohhmrghinhepphgsrghrkhgvrhdruggvvhenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehprghulhesphgsrghrkhgvrhdruggvvh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Jun 2021 15:09:11 -0400 (EDT) Date: Tue, 15 Jun 2021 20:09:08 +0100 From: Paul Barker To: Dwaipayan Ray Cc: Andy Whitcroft , Joe Perches , Lukas Bulwahn , linux-kernel Subject: Re: [PATCH] checkpatch: Use python3 to run spdxcheck.py Message-ID: <20210615200908.0000367c@pbarker.dev> In-Reply-To: References: <20210615185206.7701-1-paul@pbarker.dev> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Jun 2021 00:28:14 +0530 Dwaipayan Ray wrote: > On Wed, Jun 16, 2021 at 12:22 AM Paul Barker wrote: > > > > Since commit d0259c42abff ("spdxcheck.py: Use Python 3"), the > > shebang line in scripts/spdxcheck.py says the script should run > > with `python3`. However, checkpatch has been explicitly running > > this script with `python` so it needs updating to ensure that > > Python 3 is used on all distros. > > > > Signed-off-by: Paul Barker > > --- > > scripts/checkpatch.pl | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > > index 23697a6b1eaa..5e5e3a53461b 100755 > > --- a/scripts/checkpatch.pl > > +++ b/scripts/checkpatch.pl > > @@ -1084,10 +1084,10 @@ sub is_maintained_obsolete { > > sub is_SPDX_License_valid { > > my ($license) = @_; > > > > - return 1 if (!$tree || which("python") eq "" || !(-e > > "$root/scripts/spdxcheck.py") || !(-e "$gitroot")); > > + return 1 if (!$tree || which("python3") eq "" || !(-e > > "$root/scripts/spdxcheck.py") || !(-e "$gitroot")); > > > > my $root_path = abs_path($root); > > - my $status = `cd "$root_path"; echo "$license" | python > > scripts/spdxcheck.py -`; > > + my $status = `cd "$root_path"; echo "$license" | python3 > > scripts/spdxcheck.py -`; return 0 if ($status ne ""); > > return 1; > > } > > -- > > Hello, > This change was already added by Commit c739ec2da1ea > ("checkpatch: scripts/spdxcheck.py now requires python3") > in linux-next. > > Thanks, > Dwaipayan. So it is. Apologies for the noise. -- Paul Barker https://pbarker.dev/