[elrepo] Announcement: EL5, EL6 and EL7 Updated wl-kmod srpm [6.30.223.271]

Jonathan Billings jsbillin at umich.edu
Fri Oct 16 10:31:50 EDT 2015


On Fri, Oct 16, 2015 at 7:22 AM, Nux! <nux at li.nux.ro> wrote:

> Any elegant way out of this?
>

This is in no way elegant, but I have made a different kmod spec file
dynamically generate the kversion definition in the mock session by first
trying to run:

/usr/bin/rpm -q --qf '%%define kversion %{version}-%{release}\n'
kernel-headers
(this is run by a shell script that uses the RPM function %{expand:%(sh
%{SOURCE13})}. )

and if RPM fails to execute (because the build OS doesn't like the rpm DB
installed), then I parse /usr/include/linux/version.h and build a kversion
from the data there.  Its very inelegant.

-- 
Jonathan Billings <jsbillin at umich.edu>
College of Engineering - CAEN - Unix and Linux Support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elrepo.org/pipermail/elrepo/attachments/20151016/e5d93641/attachment.html>


More information about the elrepo mailing list