[ovs-dev] [PATCH v1 1/5] rhel: openvswitch-kmod-fedora.spec.in file bug fix

Flavio Leitner fbl at sysclose.org
Mon Sep 3 17:58:33 UTC 2018


On Fri, Aug 31, 2018 at 11:52:39AM -0700, Martin Xu wrote:
> Patch 22c33c303932 used /usr/src/linux/<kernel version> as path of the
> linux headers, which does not work for SLES. Use /lib/modules/<kernel
> version>/build instead.
> 
> Fixes 22c33c303932 (rhel: support kmod build against mulitple kernel versions,
> fedora)
> 
> Signed-off-by: Martin Xu <martinxu9.ovs at gmail.com>
> CC: Greg Rose <gvrose8192 at gmail.com>
> CC: Markos Chandras <mchandras at suse.de>
> ---
>  rhel/openvswitch-kmod-fedora.spec.in | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/rhel/openvswitch-kmod-fedora.spec.in b/rhel/openvswitch-kmod-fedora.spec.in
> index dc5ea7a1b..28827e245 100644
> --- a/rhel/openvswitch-kmod-fedora.spec.in
> +++ b/rhel/openvswitch-kmod-fedora.spec.in
> @@ -47,7 +47,7 @@ traffic. This package contains the kernel modules.
>  for kv in %{kversion}; do
>      mkdir -p _$kv
>      (cd _$kv && /bin/cp -f ../configure . && %configure --srcdir=.. \
> -        --with-linux=/usr/src/kernels/${kv}/ --enable-ssl)
> +        --with-linux=/lib/modules/${kv}/build --enable-ssl)
>      make %{_smp_mflags} -C _$kv/datapath/linux
>  done

The /lib/modules/${kv}/build is a symlink to /usr/src/kernels/${kv}/ 
on Fedora, so the patch looks good.

Acked-by: Flavio Leitner <fbl at sysclose.org>

fbl



More information about the dev mailing list