Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1957212rda; Tue, 24 Oct 2023 08:13:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEJ51ilhKgN8jZGRrzxNy44GahXIeiHBqtt09RFJBPiV9ewUsFROxWkdVBuBOCLU83b4AJ X-Received: by 2002:a05:6a00:1a09:b0:691:21:d9b9 with SMTP id g9-20020a056a001a0900b006910021d9b9mr9447547pfv.30.1698160381211; Tue, 24 Oct 2023 08:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698160381; cv=none; d=google.com; s=arc-20160816; b=M3yVMce09Nd/k93olSvtQPuv6v++kqqF46FzVrqRs6//a2Jci7vjix0emumFrZXLMQ vMhHAjR7dvKtKECf2i+BfJNTSp56wiNenzrRkHjxyUVcHU4O9gpKGwoIIgNNork4bbiZ vcx++Uy0kc8eSjRWhgY6SFqdzNi2M2wHBxBhBWjVbpxtfhM0uWzkqRKHIkMNzpkh5PoE zTjc8/6qT4jxF0vnoZkmI/YCn7tm6E/8fTuedqb5k0O+z5Piyg/6td19P33CM/sJBGkv 8Ss7b/WtfWqdtM8wZ8JqjdkBiYrUbp4xxkmWDU9kGaiTdFUsm7dcqYv2apDPqzuasx3/ UU+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=efCwLsA7uaDP8bG+dKZYoYOaMu9g2csvnxhFsjP7kIY=; fh=EyWe0P73fPyeDH747e0yQkqJr8jU9wEoh208ROYzUDg=; b=tnVoisdNrNZdjd83/TIQRcymlVnjiie/KbG0TssrHIHKcTK2IeSXCFVqe684UF0YUX mEzGZIY1NGfHD3/s6W+3oZfuMCpd7g7CLzESiGE4CXj5vhpH0mSAHmhyrZwFBviV9BCE 3JVzeaVLqhRYsVtEBqsQvWSMl0nhtDFOqTw+OHBTivSvQAHaa3661JuqsbBbpRGNczJh OajrPg2jUfL6UOOFR/jOt+E6izu05rpczpx/AzlL1RQE6KkXTFqd5RHGbRb1meucCXbC JTFmw1KLxx+tbOm7cie3lcJeDVwFdihbMLmriOmLnAXxxQI7xuBEIi+ehFUXef22XO3u 84dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ve9OAwmi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z24-20020a656658000000b00565360714f0si8064170pgv.902.2023.10.24.08.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Ve9OAwmi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B0AD38029576; Tue, 24 Oct 2023 08:12:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234660AbjJXPMt (ORCPT + 99 others); Tue, 24 Oct 2023 11:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230059AbjJXPMs (ORCPT ); Tue, 24 Oct 2023 11:12:48 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E39BA for ; Tue, 24 Oct 2023 08:12:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DFB31C433C7; Tue, 24 Oct 2023 15:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698160348; bh=Fq23oTVX0YBaNukXFPosDVGf8a1RsbhVsJ4u1q14Z5s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ve9OAwmiHJiGnk42fCQsmjMzoYzh9dvNXjCkqn1oSDS6DYs5IV7xhkJLaXZsVjIzI +dkdfq3ajHxeYgxVJv3n52vYoLOCMjliwrPPTirBtqh8W53/ESnbT+hIhwXevmqjhU OzVmZgCeZ1xhizJk96njAxoioUEEr5JUW3eVUtV+yyDYksoZtesSM904QSzVmrsMlP 6rXlFn2pk7e+5NPgTW96mvmdK3wcERW2PceV1buJkXq5qhQZ2DB17dX+BBL2C3CtHR x66SfoJV218GSGxF8HJUftDSLMhn/VVvUDDzPMzHFTnYhltIZMqK9yHJQH9Y5NGMUa qAwX/4b8sKbnw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id AD5794035D; Tue, 24 Oct 2023 12:12:24 -0300 (-03) Date: Tue, 24 Oct 2023 12:12:24 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Adrian Hunter , Ian Rogers , Jiri Olsa , Linux Kernel Mailing List Subject: Re: [PATCH] perf build: Remove stray '\' before that is warned about since grep 3.8 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 24 Oct 2023 08:12:58 -0700 (PDT) Em Fri, Oct 20, 2023 at 02:15:03PM -0700, Namhyung Kim escreveu: > On Fri, Oct 20, 2023 at 1:34 PM Arnaldo Carvalho de Melo > wrote: > > Em Tue, Oct 17, 2023 at 12:02:20PM -0700, Namhyung Kim escreveu: > > > On Tue, Oct 17, 2023 at 11:15 AM Arnaldo Carvalho de Melo wrote: > > > > To address this grep 3.8 warning: > > > > grep: warning: stray \ before # > > > > +++ b/tools/perf/Makefile.perf > > > > @@ -361,7 +361,7 @@ python-clean := $(call QUIET_CLEAN, python) $(RM) -r $(PYTHON_EXTBUILD) $(OUTPUT > > > > ifeq ($(CONFIG_LIBTRACEEVENT),y) > > > > PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources) > > > Do we need to change it here too? Otherwise looks good > > I think I did tests and simply removing the \ in this case will comment > > out the rest of the line after the #, IIRC we would have to enclose it > > in '', like > > > > PYTHON_EXT_SRCS := $(shell grep -v '^\#' util/python-ext-sources) > > > > But then if it works as-is, why pollute the patch? :-) > > > > In general the less lines you touch in a patch, the better, don't fix > > what isn't broken, helps reviewing, etc. :-) > > Agreed, thanks! > Namhyung But while this makes it build in newer systems, it breaks on older ones: Makefile.perf:364: *** unterminated call to function 'shell': missing ')'. Stop. make[1]: *** [Makefile.perf:242: sub-make] Error 2 make: *** [Makefile:70: all] Error 2 make: Leaving directory '/git/perf-6.6.0-rc1/tools/perf' + exit 1 [perfbuilder@five ~]$ dsh opensuse:15.4 sh-4.4$ rpm -q grep make grep-3.1-150000.4.6.1.x86_64 make-4.2.1-7.3.2.x86_64 sh-4.4$ Makefile.perf:364: *** unterminated call to function 'shell': missing ')'. Stop. make[1]: *** [Makefile.perf:242: sub-make] Error 2 make: *** [Makefile:70: all] Error 2 make: Leaving directory '/git/perf-6.6.0-rc1/tools/perf' + exit 1 [perfbuilder@five ~]$ dsh ubuntu:20.04 $ dpkg -l make grep Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================= ii grep 3.4-1 amd64 GNU grep, egrep and fgrep ii make 4.2.1-1.2 amd64 utility for directing compilation $ Both these containers don't have libtraceevent-devel installed (not available). :-\ - Arnaldo