Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2666473imd; Fri, 2 Nov 2018 15:45:34 -0700 (PDT) X-Google-Smtp-Source: AJdET5e7IzbhE4sDegt4aFRFCZU5fW9cRl6LqvL/6Ero4oX6mtPawGDUcVvbwb9j4CzHj07eiDHo X-Received: by 2002:a63:24c2:: with SMTP id k185mr12045742pgk.406.1541198734692; Fri, 02 Nov 2018 15:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541198734; cv=none; d=google.com; s=arc-20160816; b=X/7lyjcBl43HdPJ4wLj5tWQivyZ6t6xewDv8+NxyWS75Kx+Krw4Lhz8Nj13xOm2CxG P/Ms4DF/F4k6SFryuBSiBc0cB4VKzkq1P05w6Ml4kPVPtfoYoTa9oQMRyYPir60d+ZNo N4KjwGvJ1/t6Tym8ZXICI6+PhY7O+KHSAEninEiuUYFhwPeMjeNij7TCOEMAylkG4DMS kagZ3SRhnQrkL5oSMRCs6ABic81wAEIqccZBLNxBlnn9I3UrJHO/jn41pVK6uxxi4Vpo aEXc81KT6jCb3GC988jXkFbHWxaSPU7m/tkjZxfNZw+h5+2qLAcaeKTPVeRp28lcwWBX e8Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=vmZuz33/dyuoV2bzCRh84zxgo/juP4z2WL4+JG+2dSk=; b=W7Q/f6f5yWY5RnpZDXZ8IFJi1E8XPHVYpxZNbCEh7DO2GlZw9B0w1YA7Pe5vdK3LgP OCbPkS2Xi3Hcd1LkBLJfH11sWwja8MVCB8g36XxP1USVB+fXzD6ewAGz3nOd+HmpfuKk /O6yxsn/R72qdZ42w6invgyuJwcgJOYRMHM42XjKPwY13sH+hkXTvVClysYj5QKkHcEd gNKthp/f7TGfNVZ2vcuvdinFN/JaYWK0L43zJtouj93P/umR7Mvn1p3n4ccAVveoGXto H4/kS9pd+yPXPuGeSCqhkiqzMTUERZ41v9DMYcFIDRCx70W9FawGX5oJ0yuTZShGqL+D 0sqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vbODep+/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 27si5769926pgp.135.2018.11.02.15.45.18; Fri, 02 Nov 2018 15:45:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vbODep+/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728338AbeKCHx6 (ORCPT + 99 others); Sat, 3 Nov 2018 03:53:58 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:42387 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbeKCHx6 (ORCPT ); Sat, 3 Nov 2018 03:53:58 -0400 Received: by mail-pl1-f194.google.com with SMTP id t6-v6so1620706plo.9; Fri, 02 Nov 2018 15:44:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vmZuz33/dyuoV2bzCRh84zxgo/juP4z2WL4+JG+2dSk=; b=vbODep+/t8GRK4psKZrpEjWL/zrUY/nlfsT/TXRtbOyW4xuCPDiQgA+ZEXGY9bSnR4 ES4oV2sHRQ7Vw/OLPb57gSEhNneu6eMIFFYdx7AjxrYGZ2IfI03HhbSc877/qdwqqXlr UTGTL1/vsDdDLCsnuWkwtII3O7bQzMBeV1oy/6i76/VYQmGGeJQMV3aQTnxRpUOsO6Iv ISjHw5W1BT/kQ3WEyVQHiSd0UJJp2EO4vW+iR1zWfAfhu5YDFl+3dx9t5gLFJRREo3Tx WqcFDy3JSXUkZ75MEws8F54fsq5LKZTRzYjQX/pN99Y+XwSU7lAsrtqFNwm0J0MOwvwF oQUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=vmZuz33/dyuoV2bzCRh84zxgo/juP4z2WL4+JG+2dSk=; b=cPYU6JnYdHJJS6/7Do35Wb1ltr7JPeIgE4ktCbUkmvvVDsU0NXVRGnIivBKkBUS4Lk MdJmoRDdojJMTmewgJbIivNWC01KSBtiybQ/uymJwnqkB0/nLdRUUXbTx/j1+k3J62yS 0tIyX5BBTsm6ZVRu1kkPJ7dSo4WrVZ63+ap52pyPn18vgjb3UfJBYMADOZQwuAakEa82 hQiDHzcjTIv3y6pM4LLk1Wif2jivNIpUJxpbTlPzEFpCnPO80AG5JrimiTiP+2v/53m0 uy20NpqRTFpikcU4iui38rpYazZe4ZMyr/Kw9mgdg9Q4hFyVwGv5iUCHbVU3f5BLeeEd yQIQ== X-Gm-Message-State: AGRZ1gIjW5nq47sILiSq1VeZhsIfALC9KlgImdbkDLePFpEvnUnLf+0A M2b3SfV+aZAPtCfkX2sCL5l7/GjD X-Received: by 2002:a17:902:4623:: with SMTP id o32-v6mr13281186pld.187.1541198697164; Fri, 02 Nov 2018 15:44:57 -0700 (PDT) Received: from dell5510 ([62.201.25.198]) by smtp.gmail.com with ESMTPSA id k72-v6sm76470585pfj.63.2018.11.02.15.44.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Nov 2018 15:44:56 -0700 (PDT) Date: Fri, 2 Nov 2018 23:44:51 +0100 From: Petr Vorel To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Nasser , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kconfig: merge_config: avoid false positive matches from comment lines Message-ID: <20181102224450.GA11633@dell5510> Reply-To: Petr Vorel References: <1541145151-7319-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1541145151-7319-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, > The current SED_CONFIG_EXP could match to comment lines in config > fragment files, especially when CONFIG_PREFIX_ is empty. For example, > Buildroot uses empty prefixing; starting symbols with BR2_ is just > convention. > Make the sed expression more robust against false positives from > comment lines. The new sed expression matches to config options > followed by '=' or ' is not set'. > Signed-off-by: Masahiro Yamada > --- Reviewed-by: Petr Vorel > -SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(${CONFIG_PREFIX}[a-zA-Z0-9_]*\)[= ].*/\2/p" > +SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(${CONFIG_PREFIX}[a-zA-Z0-9_]*\)\(=.*\| is not set$\)/\2/p" Good idea, thanks! Kind regards, Petr