[CentOS-devel] Building kernel modules via the CBS ?

Wed Jan 14 14:34:50 UTC 2015
Jonathan Billings <jsbillin at umich.edu>

On Wed, Jan 14, 2015 at 9:24 AM, Bart Van Assche <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".


-- 
Jonathan Billings <jsbillin at umich.edu>
College of Engineering - CAEN - Unix and Linux Support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20150114/6ca9794b/attachment-0008.html>