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..e33aae2 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 +%if ! %{nobuildarches} Requires: kernel-%{?variant:%{variant}-}core-uname-r = %{KVERREL}%{?variant} Requires: kernel-%{?variant:%{variant}-}modules-uname-r = %{KVERREL}%{?variant} +%endif
#
On Mon, May 19, 2014 at 3:18 AM, Dan Horák dan@danny.cz wrote:
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.
The idea seems reasonable, but I get this when trying to build on x86_64:
[jwboyer@vader kernel]$ fedpkg local error: ! only on numbers error: /home/jwboyer/kernel/kernel.spec:405: bad %if condition error: query of specfile /home/jwboyer/kernel/kernel.spec failed, can't parse
Could not execute local: need more than 0 values to unpack
josh
kernel@lists.fedoraproject.org