From 0a38cbfb23d557ffccdaa6b565bb499440eb4c3c Mon Sep 17 00:00:00 2001 From: Haisu Wang Date: Tue, 6 Sep 2022 16:25:41 +0800 Subject: [PATCH] package: support bpftool in tlinux2 In tlinux2, use python2-docutils instead of python3-docutils. Signed-off-by: Haisu Wang --- package/default/kernel-tlinux.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/default/kernel-tlinux.spec b/package/default/kernel-tlinux.spec index b58bd74f6..55e7bc4d4 100644 --- a/package/default/kernel-tlinux.spec +++ b/package/default/kernel-tlinux.spec @@ -71,7 +71,11 @@ BuildRequires: libcap-devel %endif %if %{with_bpftool} BuildRequires: llvm +%if 0%{?rhel} == 7 +BuildRequires: python2-docutils +%else BuildRequires: python3-docutils +%endif BuildRequires: zlib-devel binutils-devel %endif Requires(pre): linux-firmware >= 20150904-44