From a537091f1540d68e077ec0708271c64860b87b71 Mon Sep 17 00:00:00 2001 From: Adrian Szyndela Date: Thu, 9 Sep 2021 11:38:44 +0200 Subject: [PATCH] spec: filter Requires dependency for python(abi) "AutoReq: no" disables all the Requires dependencies generation, while they might be usable for building in some contexts. This commit replaces it with the filter, which targets only "python(abi) = 2.7" dependency. The issue with this dependency is that there are two packages that provide it ("python" and "python3-base"). It should be probably fixed in some other way, but so far this way seems to be a workaround with the smallest impact. Change-Id: I163f22bddb8d1b65b91726e9a08439f1afc099c2 --- packaging/bcc-tools.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/bcc-tools.spec b/packaging/bcc-tools.spec index 8b6c6dca..b0a65f29 100644 --- a/packaging/bcc-tools.spec +++ b/packaging/bcc-tools.spec @@ -7,7 +7,6 @@ Vendor: None (open source) Group: Development/Compilers URL: https://github.com/iovisor/bcc Source0: %{name}-%{version}.tar.gz -AutoReq: no # workaround an OBS issue with dependencies ExcludeArch: aarch64 Requires: /sbin/ldconfig BuildRequires: gcc >= 3.4 @@ -16,6 +15,11 @@ BuildRequires: bison flex llvm-devel clang-devel libelf-devel BuildRequires: llvm-static-devel BuildRequires: pkgconfig(zlib) +# workaround for an issue with dependencies for python(abi) = 2.7, provided +# by multiple packages: python and python3-base +%filter_from_requires /^python(abi)/d +%filter_setup + %description BCC is a toolkit for creating efficient kernel tracing and manipulation programs, and includes several useful tools and examples. It makes use -- 2.34.1