spec: filter Requires dependency for python(abi) 54/263754/2 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20211028.224141 accepted/tizen/unified/20210910.004746 submit/tizen/20210909.103911 submit/tizen_6.5/20211028.163301 tizen_6.5.m2_release
authorAdrian Szyndela <adrian.s@samsung.com>
Thu, 9 Sep 2021 09:38:44 +0000 (11:38 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Thu, 9 Sep 2021 09:57:34 +0000 (11:57 +0200)
"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

index 8b6c6dc..b0a65f2 100644 (file)
@@ -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