From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE28BC4332F for ; Wed, 1 Nov 2023 15:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234634AbjKAPfl (ORCPT ); Wed, 1 Nov 2023 11:35:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234573AbjKAPfb (ORCPT ); Wed, 1 Nov 2023 11:35:31 -0400 Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64AF912C for ; Wed, 1 Nov 2023 08:35:21 -0700 (PDT) Date: Wed, 1 Nov 2023 16:35:15 +0100 From: Guilherme Amadio To: Arnaldo Carvalho de Melo Cc: Linux Kernel Mailing List , Adrian Hunter , Ian Rogers , Jiri Olsa , Namhyung Kim Subject: Re: [PATCH next 2/3] perf tests make: Remove the last egrep call, use 'grep -E' instead Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnaldo, On Tue, Oct 31, 2023 at 12:31:01PM -0300, Arnaldo Carvalho de Melo wrote: > One last case, caught while testing with amazonlinux:2, centos:stream, > etc: > > 4 7.28 amazonlinux:2 : FAIL egrep: warning: egrep is obsolescent; using grep -E > 8 13.87 centos:stream : FAIL egrep: warning: egrep is obsolescent; using grep -E > > Cc: Adrian Hunter > Cc: Guilherme Amadio Looks good. Reviewed-by: Guilherme Amadio Cheers, -Guilherme > Cc: Ian Rogers > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Arnaldo Carvalho de Melo > --- > tools/perf/tests/make | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/tests/make b/tools/perf/tests/make > index d9945ed25bc5ae96..8a4da7eb637a8abd 100644 > --- a/tools/perf/tests/make > +++ b/tools/perf/tests/make > @@ -183,7 +183,7 @@ run += make_install_prefix_slash > # run += make_install_pdf > run += make_minimal > > -old_libbpf := $(shell echo '\#include ' | $(CC) -E -dM -x c -| egrep -q "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}") > +old_libbpf := $(shell echo '\#include ' | $(CC) -E -dM -x c -| grep -q -E "define[[:space:]]+LIBBPF_MAJOR_VERSION[[:space:]]+0{1}") > > ifneq ($(old_libbpf),) > run += make_libbpf_dynamic > -- > 2.41.0 >