From: Adrian Szyndela Date: Thu, 9 Sep 2021 09:38:44 +0000 (+0200) Subject: spec: filter Requires dependency for python(abi) X-Git-Tag: submit/tizen/20210909.103911^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a537091f1540d68e077ec0708271c64860b87b71;p=platform%2Fupstream%2Fbcc.git 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 --- 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