From: Don Zickus on
gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1786#note_9517...
@hertonrk-rh @prarit @jmflinuxtx
To answer a variety of questions. Yes srpm processes the configs. It kinda
has to otherwise what is rpmbuild going to use to build the kernel? :-)
Why is this an issue now? It popped up with my MR last week actually fixing
how this works (otherwise the dep was only rpmbuild). Some folks do not want
to install the full list of buildreqs just to generate a srpm and upload it.
Especially for users on Fedora trying to build a RHEL-X srpm and don't want to
have to install obsoleted or missing RHEL-X buildreqs (system-sb-certs, llvm-
tools, etc).
As for 'dnf builddep kernel' that could work too in some cases. One quirk
with that approach is it needs to match the kernel in development, so a RHEL
kernel on a Fedora distro may not work. But we can advertise this too if we
want.
I am also looking at the docs here:
https://cki-project.gitlab.io/kernel-
ark/#cloning-the-repository should either be auto-generated or told to use
'dnf builddep kernel'. I am working with COPR and they didn't have an easy
way to install the packages necessary to build the srpm other than guessing.
I am trying to improve the user experience
git clone <kernel repo>
make dist-srpmbuildreqs-check | sudo dnf install (??)
make dist-srpm
koji build
or something like that. IOW there is a gap here that I am trying to address
with a consistent story. Something that isn't complicated (yeah, this MR
leans toward complicated).
Thoughts?