[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <23f8c56f584b4da8acf15d050c0443b6@huawei.com>
Date: Tue, 9 Aug 2022 15:28:49 +0000
From: Roberto Sassu <roberto.sassu@...wei.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Andres Freund <andres@...razel.de>,
Daniel Borkmann <daniel@...earbox.net>
CC: "quentin@...valent.com" <quentin@...valent.com>,
"ast@...nel.org" <ast@...nel.org>,
"andrii@...nel.org" <andrii@...nel.org>,
"martin.lau@...ux.dev" <martin.lau@...ux.dev>,
"song@...nel.org" <song@...nel.org>,
"john.fastabend@...il.com" <john.fastabend@...il.com>,
"kpsingh@...nel.org" <kpsingh@...nel.org>,
"sdf@...gle.com" <sdf@...gle.com>,
"peterz@...radead.org" <peterz@...radead.org>,
"mingo@...hat.com" <mingo@...hat.com>,
"terrelln@...com" <terrelln@...com>,
"nathan@...nel.org" <nathan@...nel.org>,
"ndesaulniers@...gle.com" <ndesaulniers@...gle.com>,
"bpf@...r.kernel.org" <bpf@...r.kernel.org>,
"linux-perf-users@...r.kernel.org" <linux-perf-users@...r.kernel.org>,
"llvm@...ts.linux.dev" <llvm@...ts.linux.dev>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Jiri Olsa <jolsa@...nel.org>
Subject: RE: [PATCH 4/4] build: Switch to new openssl API for test-libcrypto
> From: Arnaldo Carvalho de Melo [mailto:acme@...nel.org]
> Sent: Tuesday, August 9, 2022 5:21 PM
> Em Tue, Aug 09, 2022 at 12:15:25PM -0300, Arnaldo Carvalho de Melo escreveu:
> > Em Mon, Aug 08, 2022 at 03:33:34PM -0300, Arnaldo Carvalho de Melo
> escreveu:
> > > Em Mon, Aug 08, 2022 at 06:14:48PM +0200, Daniel Borkmann escreveu:
> > > > Hi Arnaldo,
> > > >
> > > > On 7/19/22 7:05 PM, Roberto Sassu wrote:
> > > > > Switch to new EVP API for detecting libcrypto, as Fedora 36 returns an
> > > > > error when it encounters the deprecated function MD5_Init() and the
> others.
> > > > > The error would be interpreted as missing libcrypto, while in reality it is
> > > > > not.
> > > > >
> > > > > Signed-off-by: Roberto Sassu <roberto.sassu@...wei.com>
> > > >
> > > > Given rest of the tooling fixes from Andres Freund went via perf tree and
> the
> > > > below is perf related as well, I presume you'll pick this up, too?
> > >
> > > Sure.
> > >
> > > > [0]
> https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/log/?h=perf/cor
> e
> >
> > So I fixed up the first one, minor fuzzes, the second I had to fix
> > conflicts with the patchset from Andres, ended up as below, will test
> > build it then in my container kit.
>
> So I backtracked, the way it works needs further consideration with
> regard to the patchkit from Andres, that is already upstream, so it
> would be good for Roberto to take a look at what is in torvalds/master
> now and see if we have to removed that styled thing from Andres.
Will do. Thanks Arnaldo for adapting the patch.
Roberto
> Andres, if you could take a look at Roberto's patchkit as well that
> would be great.
>
> - Arnaldo
>
> > commit bea955a0256e20cc18e87087e42f2a903b9a8b84
> > Author: Roberto Sassu <roberto.sassu@...wei.com>
> > Date: Tue Jul 19 19:05:53 2022 +0200
> >
> > bpftool: Complete libbfd feature detection
> >
> > Commit 6e8ccb4f624a7 ("tools/bpf: properly account for libbfd variations")
> > sets the linking flags depending on which flavor of the libbfd feature was
> > detected.
> >
> > However, the flavors except libbfd cannot be detected, as they are not in
> > the feature list.
> >
> > Complete the list of features to detect by adding libbfd-liberty and
> > libbfd-liberty-z.
> >
> > Committer notes:
> >
> > Adjust conflict with with:
> >
> > 1e1613f64cc8a09d ("tools bpftool: Don't display disassembler-four-args
> feature test")
> > 600b7b26c07a070d ("tools bpftool: Fix compilation error with new
> binutils")
> >
> > Fixes: 6e8ccb4f624a73c5 ("tools/bpf: properly account for libbfd variations")
> > Signed-off-by: Roberto Sassu <roberto.sassu@...wei.com>
> > Cc: Alexei Starovoitov <ast@...nel.org>
> > Cc: Andres Freund <andres@...razel.de>
> > Cc: Andrii Nakryiko <andrii@...nel.org>
> > Cc: bpf@...r.kernel.org
> > Cc: Daniel Borkmann <daniel@...earbox.net>
> > Cc: Ingo Molnar <mingo@...hat.com>
> > Cc: John Fastabend <john.fastabend@...il.com>
> > Cc: KP Singh <kpsingh@...nel.org>
> > Cc: llvm@...ts.linux.dev
> > Cc: Martin KaFai Lau <martin.lau@...ux.dev>
> > Cc: Nathan Chancellor <nathan@...nel.org>
> > Cc: Nick Desaulniers <ndesaulniers@...gle.com>
> > Cc: Nick Terrell <terrelln@...com>
> > Cc: Peter Zijlstra <peterz@...radead.org>
> > Cc: Quentin Monnet <quentin@...valent.com>
> > Cc: Song Liu <song@...nel.org>
> > Cc: Stanislav Fomichev <sdf@...gle.com>
> > Link: https://lore.kernel.org/r/20220719170555.2576993-2-
> roberto.sassu@...wei.com
> > Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
> >
> > diff --git a/tools/bpf/bpftool/Makefile b/tools/bpf/bpftool/Makefile
> > index 04d733e98bffbc08..9cc132277150c534 100644
> > --- a/tools/bpf/bpftool/Makefile
> > +++ b/tools/bpf/bpftool/Makefile
> > @@ -93,9 +93,11 @@ INSTALL ?= install
> > RM ?= rm -f
> >
> > FEATURE_USER = .bpftool
> > -FEATURE_TESTS = libbfd disassembler-four-args disassembler-init-styled
> libcap \
> > +FEATURE_TESTS = libbfd libbfd-liberty libbfd-liberty-z
> > + disassembler-four-args disassembler-init-styled libcap \
> > clang-bpf-co-re
> > -FEATURE_DISPLAY = libbfd libcap clang-bpf-co-re
> > +FEATURE_DISPLAY = libbfd libbfd-liberty libbfd-liberty-z
> > + libcap clang-bpf-co-re
> >
> > check_feat := 1
> > NON_CHECK_FEAT_TARGETS := clean uninstall doc doc-clean doc-install doc-
> uninstall
>
> --
>
> - Arnaldo
Powered by blists - more mailing lists