[ovs-dev] [PATCH] rhel7: Fix rpm install failure.
Gurucharan Shetty
shettyg at nicira.com
Thu Oct 9 14:45:20 UTC 2014
On Thu, Oct 9, 2014 at 12:18 AM, Alex Wang <alexw at nicira.com> wrote:
> When trying to install the kernel module rpm built for RHEL7,
> the install failed with following conflicts:
>
> # rpm -i kmod-openvswitch-2.3.1-1.el7.x86_64.rpm
> file /lib/modules/3.10.0-123.8.1.el7.x86_64/modules.devname
> from install of kmod-openvswitch-2.3.1-1.el7.x86_64 conflicts
> with file from package kernel-3.10.0-123.8.1.el7.x86_64
>
> file /lib/modules/3.10.0-123.8.1.el7.x86_64/modules.softdep
> from install of kmod-openvswitch-2.3.1-1.el7.x86_64 conflicts
> with file from package kernel-3.10.0-123.8.1.el7.x86_64
>
> Similar issue has already been reported and solved here:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1003267
>
> This commit applies the solution in the link to ovs.
>
> Signed-off-by: Alex Wang <alexw at nicira.com>
Acked-by: Gurucharan Shetty <gshetty at nicira.com>
> ---
> Note:
> Not sure if we need to change the rhel/openvswitch-kmod-rhel6.spec
> to 7.
I am not sure either.
> ---
> rhel/openvswitch-kmod-rhel6.spec.in | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/rhel/openvswitch-kmod-rhel6.spec.in b/rhel/openvswitch-kmod-rhel6.spec.in
> index 6dbb377..5d46838 100644
> --- a/rhel/openvswitch-kmod-rhel6.spec.in
> +++ b/rhel/openvswitch-kmod-rhel6.spec.in
> @@ -61,6 +61,9 @@ export INSTALL_MOD_DIR=extra/%{oname}
> for flavor in %flavors_to_build ; do
> make -C %{kernel_source $flavor} modules_install \
> M="`pwd`"/_$flavor/datapath/linux
> +
> + # Cleanup unnecessary kernel-generated module dependency files.
> + find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \;
> done
> install -d %{buildroot}%{_sysconfdir}/depmod.d/
> install -m 644 %{oname}.conf %{buildroot}%{_sysconfdir}/depmod.d/
> --
> 1.7.9.5
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
More information about the dev
mailing list