[elrepo] Announcement: EL5, EL6 and EL7 Updated wl-kmod srpm [6.30.223.271]
S.Tindall
s10dal at elrepo.org
Fri Oct 16 10:20:06 EDT 2015
On Fri, 2015-10-16 at 12:22 +0100, Nux! wrote:
> Hello Julien Sorel :-)
>
> Do you by any chance build kmods in mock as well?
> I'm having trouble building this SRPM in mock because it's looking for the kernel sources of `uname -r` which will return the host machine version and arch instead of the current i386 CentOS chroot.
>
> Any elegant way out of this?
>
> Lucian
You can overcome the ″uname -r″ mock problem by passing the kversion to
rpmbuild via the mock options.
For example, for kversion 2.6.32-573.el6.x86_64:
$ mock rebuild --define 'kversion 2.6.32-573.el6.x86_64' <srpm>
For that to work, you also need to do (at least) two things:
First, modify your mock build environment (i.e.,
config_opts['chroot_setup_cmd']) to include kernel-abi-whitelists and
kernel-devel-<kversion>.
Second, make the Broadcom source available within mock by rebuilding
(i.e., rpmbuild -bs) a src.rpm after downloading the 32-bit and 64-bit
Broadcom hybrid source tarballs into rpmbuild/SOURCES as per the wl-kmod
wiki instructions and commenting out the two ″NoSource: ...″ in the spec
file, thus allowing a src.rpm to be built and subsequently used by mock.
Hope that helps.
Steve
More information about the elrepo
mailing list