On 01/14/15 15:34, Jonathan Billings wrote: > On Wed, Jan 14, 2015 at 9:24 AM, Bart Van Assche <bvanassche at acm.org > <mailto:bvanassche at acm.org>> wrote: > > However, this caused the > build server to install the kernel-debug-devel RPM instead of the > kernel-devel RPM (see also > https://cbs.centos.org/koji/taskinfo?taskID=6041 for the logs). > > > I've encountered the same problem with the openafs-kmod package. The > only solution I've found was to have a > > BuildRequires: kernel-devel = %{kver} > > ... because the kernel-debug-devel provides "kernel-devel = > 3.10.0-123.13.2.el7.debug" > > This is why it finds it when you don't specify the kversion. Red Hat, > in their infinite wisdom, made the kernel-debug-devel provide > kernel-devel, and the RPM sorting algorithm finds that > "3.10.0-123.13.2.el7.debug" is a later version-release than > "3.10.0-123.13.2.el7". Thanks for the help. As you can see your advice had the following very positive effect: $ koji build --scratch bananas7-el7 scst-3.18.1+-3.1.0.19a02ce-1.src.rpm [ ... ] 6123 build (bananas7-el7, scst-3.18.1+-3.1.0.19a02ce-1.src.rpm) completed successfully The next step is to test the generated RPM. Bart. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20150114/73318d4c/attachment-0008.html>