Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4737968pxu; Thu, 10 Dec 2020 04:24:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgXVXJGMMTn7/UaV1Q23T0Jyh4evo6LesIJAhiRRBnAY/so0sVIGLv0MbweuK42/hP5KiU X-Received: by 2002:a17:906:c289:: with SMTP id r9mr5925333ejz.311.1607603082363; Thu, 10 Dec 2020 04:24:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607603082; cv=none; d=google.com; s=arc-20160816; b=a76/zegyMf/cNYigynhrMRUYbfC1lNEC0uKVx/fQYDNzMDv1vibifNDIGVvEV9+pss DOdSgWNCC+5kG4uRaGuMLEJYHwbu1RGMW0pVwP7H/N2Tn4GHeU2S4N0o2vhlE3b81GLw HVNMP0AB/n/5/H0zqvStV1HXMrUSuuzFKDbOx4hsMJwhaHEbGojhbpPFGQj4e5cImypx hRUdGK1WI8t3+ZcmgMP6/ny2v9RIdHNKZ+jlcd8fjuyKbC+4RwBJGR4jYV/G3f57nQB2 ilJCPqkOIb/TfyNIFQX5P3NLUrgFCVG5twRMuCK3stHufQL2H9jnCoHO8r0dl1vl0rKU 5Ggw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=k0CJucuVEz8HkH9kDdldXKj+LZNAj5vMfQmKkCtAcss=; b=FfQKrpOlAIvKq5rIuQvO638K9ecXXgYiP7e+CcJZqg0W3R2GO5QlsCbDsepIrhhgp8 giL9Q+du09bHAyMBGCjw6lrcfN3B6jq66AuQmTqcOB52b+2ZBcJ4OuO5F4auncXgF/Sc 0CQgJmgZnFjt4/XHm0sOeWzlSdCrBPukqCIx0SBKNGbij9/vTaA42QYrF7VmHqKubkHj +J+r9qsuAfLWNbcsn3cgADJhe1E2mNoHN0Z9KW1vT7fJBVvE0xsyEPlVi0kzCPSmVvaO dtHhjMq+oeO9dH/DROFDDcfURxUXof/GM3oCErm6SdOpzWPOSXXWjZdThviLdUvedfe7 we9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b="IR/Rvsqg"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si2801470eds.16.2020.12.10.04.24.17; Thu, 10 Dec 2020 04:24:42 -0800 (PST) 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=@codewreck.org header.s=2 header.b="IR/Rvsqg"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729145AbgLJMXA (ORCPT + 99 others); Thu, 10 Dec 2020 07:23:00 -0500 Received: from nautica.notk.org ([91.121.71.147]:45286 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726904AbgLJMXA (ORCPT ); Thu, 10 Dec 2020 07:23:00 -0500 Received: by nautica.notk.org (Postfix, from userid 1001) id EC1A9C009; Thu, 10 Dec 2020 13:22:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1607602937; bh=k0CJucuVEz8HkH9kDdldXKj+LZNAj5vMfQmKkCtAcss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IR/Rvsqg4HBjqHubGfpZhml4heRwRBqXy8woFQzNeSoB2l2EILEI0SGWLhos2ulVa +3wvpxgnW/VINWXN21+RhWCAu10NsefiNeJsApO4EZQeYyvQQ+gPeZM9CF+vjbUl2U x9FDVfwUP48hbyJXOE5U+GIVUCAlKT3JYQ0Rt4BNENlGAE+egRaOKxs7h/fwr3o+DE LJnOs1Y0F+Y3J/ud1oatfveIcQFBs7YmCIS9Z/jvy2KptzGBckP0amCgkRzA81iDID 8G8VteAyM8uG/RBNj6RNnEIc+/7wg1t9+cTOyv2kIHNT22SkUEkiqld5Bp7QVkCl2O mSUiGPx4UYhqg== Date: Thu, 10 Dec 2020 13:22:02 +0100 From: 'Dominique Martinet' To: Vincenzo Frascino Cc: David Laight , Masahiro Yamada , Michal Marek , "linux-kbuild@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Krzysztof Kozlowski Subject: Re: [PATCH 1/2] ld-version: use /usr/bin/env awk for shebank Message-ID: <20201210122202.GA8323@nautica> References: <1606828650-29841-1-git-send-email-asmadeus@codewreck.org> <69c82aee-59ec-f8d8-9546-b38f85bf08c0@arm.com> <20201209174252.GA27721@nautica> <5ca5c3bb23614af0a35f01f1e3a84ead@AcuMS.aculab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Vincenzo Frascino wrote on Thu, Dec 10, 2020: > On 12/9/20 10:03 PM, David Laight wrote: >> Why bother with awk? I wanted to keep the patch minimal, I'm not opposed to rewriting but that always potentially has more impact (although as you say, this script is simple enough) > > I think you can do it all in a shell function. > > Something like: > > read line > > line=${line##*)} > > line=${line##*version } > > IFS='.-' > > set $line > > echo $(($1*100000000 + $2*1000000 + $3*10000)) > > > > That will work on any recent shell. Works for me. > I would suggest to revert the patch for now since we are close to the merge > window and then maybe in -rc1 start discussing a better solution. As far as I can see the patch is only in -next, as said earlier I'm in favor of just dropping the patch until a decision is taken for the next merge window (or the one after that); there's no hurry for me and nothing to revert. -- Dominique