[PATCH] kernel metapackage shouldn't depend on subpackages we don't build

Dan HorĂ¡k dan at danny.cz
Mon May 19 14:17:32 UTC 2014


On %{nobuildarches} we don't build the real kernel and modules, so don't set
a Requires for them. The positive effect is that we can eliminate an explicit
kernel Provides from the fake-build-provides package in secondary kojis.
---
 kernel.spec | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel.spec b/kernel.spec
index 11352bc..fb59502 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -402,8 +402,10 @@ Release: %{pkg_release}
 # SET %%nobuildarches (ABOVE) INSTEAD
 ExclusiveArch: %{all_x86} x86_64 ppc ppc64 ppc64p7 s390 s390x %{arm} aarch64 ppc64le
 ExclusiveOS: Linux
+%ifnarch %{nobuildarches}
 Requires: kernel-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant}
 Requires: kernel-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant}
+%endif
 
 
 #
-- 
1.9.0



More information about the kernel mailing list