rpms: install build deps with yum-builddep and srpm
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 20 Mar 2020 18:54:58 +0000 (14:54 -0400)
committerMichael Meffie <mmeffie@sinenomine.net>
Fri, 20 Mar 2020 18:54:58 +0000 (14:54 -0400)
commit642201a9a9bde16ced9a0a372b86cba328bc2f51
tree230b94b8d18c748e91214e0c600679edf49de825
parentfba766dfa9e6019df4905026d4bd6d881f764db5
rpms: install build deps with yum-builddep and srpm

Normally, one could just run yum-builddep with the SRPM, and have
everything you need to build the rpms. Sadly, the kernel-devel
and elfutils-devel (needed only on rhel/centos 8), are hidden
under the build_modules conditional, so are not included as
requirements for the SRPM.

The workarounds are to install the srpm into your local workspace and
run yum-builddep against the unpacked spec file (which seems to work) or
to just manually install the kernel module deps separately.

This is yet another reason it would be better to have a separate spec
file for the kernel module builds.
admin/InstallingOpenAFSonCentOS7.mdwn
devel/HowToBuildOpenAfsRpmPackages.mdwn