Re: [PATCH next v2] kbuild: add ability to make source rpm buildable using koji

From: Alexander Gordeev
Date: Mon Dec 26 2022 - 08:42:02 EST


On Mon, Nov 21, 2022 at 09:48:45AM -0500, Jonathan Toppins wrote:

Hi Jonathan, Ivan et al,

This patch causes a regression on 6.2-rc1 when rpm-pkg target
is specified on non-rpm system (i.e s390 running Ubuntu). The
offending chunk is:

> @@ -49,6 +51,9 @@ sed -e '/^DEL/d' -e 's/^\t*//' <<EOF
> URL: https://www.kernel.org
> $S Source: kernel-$__KERNELRELEASE.tar.gz
> Provides: $PROVIDES
> +$S BuildRequires: bc binutils bison dwarves elfutils-libelf-devel flex
> +$S BuildRequires: gcc make openssl openssl-devel perl python3 rsync
> +
> # $UTS_MACHINE as a fallback of _arch in case
> # /usr/lib/rpm/platform/*/macros was not included.
> %define _arch %{?_arch:$UTS_MACHINE}