I author a kmod rpm package that uses the %kernel_module_package macro. That macro used to be in the /usr/lib/rpm/redhat/macros file, but was moved in RHEL 8 and later versions of Fedora to the /usr/lib/rpm/macros.d/macros.kmp file which is owned by the "kernel-rpm-macros" package.
If I attempt to build my packages on these later systems with mock, they break imediately even when just trying to create the srpm because the %kernel_module_package macro is undefined leading to a spec file parse error. What I need help with is understanding where the bug is and the best way to fix it. I would think that either: 1) my spec file needs to be updated in some way to mitigate this change, or 2) the "kernel-rpm-macros" package needs to be added to the @buildsys-build group for Fedora (or added to the "config_opts['chroot_setup_cmd']=..." cfg line for CentOS/RHEL). For now, I've just been hacking mock cfg files to workaround this issue. What are people's thoughts on this problem? If I do need to tweak the spec file, if someone could point me to an example of how, that would be appreciated. Quentin _______________________________________________ buildsys mailing list -- buildsys@lists.fedoraproject.org To unsubscribe send an email to buildsys-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/buildsys@lists.fedoraproject.org