[elrepo-devel] small patch for alx-kmod.spec

Phil Perry phil at elrepo.org
Thu Mar 7 12:55:59 EST 2013


On 07/03/13 09:24, Farkas Levente wrote:
> 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}/
>

Thank you.

Fixed all occurrences in this commit:

https://github.com/elrepo/packages/commit/c9b12172e2035f2ed8c404643da3e29b233e0999

Phil




More information about the elrepo-devel mailing list