[elrepo-devel] small patch for alx-kmod.spec
Farkas Levente
lfarkas at lfarkas.org
Thu Mar 7 04:24:51 EST 2013
hi,
you should not use in any of the kmod spec the:
/lib/modules/%{kversion}/build
since it's part of the kernel package (not the kernel-devel) which is
never installed in a mock environment.
this simple patch fix this problem.
regards.
--- alx-kmod.spec.ori 2013-03-07 09:47:15.647122304 +0100
+++ alx-kmod.spec 2013-03-07 10:16:38.855226418 +0100
@@ -46,7 +46,7 @@
%build
KSRC=%{_usrsrc}/kernels/%{kversion}
./scripts/driver-select alx
-%{__make} KLIB=/lib/modules/%{kversion}
KLIB_BUILD=/lib/modules/%{kversion}/build
+%{__make} KLIB=/lib/modules/%{kversion} KLIB_BUILD=$KSRC
%install
%{__install} -d %{buildroot}/lib/modules/%{kversion}/extra/%{kmod_name}/
--
Levente "Si vis pacem para bellum!"
More information about the elrepo-devel
mailing list