Hi,
If I recall correctly, the openvswitch-dpdk package was obsoleted
in 2016 in favor of having only one package with dpdk enabled.
Of course, upstream can decide whether it makes sense to follow
that or not.
Another thing is that openvswitch-fedora.spec should work much
better with RHEL-8 and RHEL-9. So, it would be better to just
run 'make rpm-fedora'.
One could use 'make rpm-fedora RPMBUILD_OPT="--with dpdk"' if
DPDK is needed.
Maybe these two specs could be deprecated altogether.
fbl
On Thu, Sep 01, 2022 at 04:02:35PM +0200, Ilya Maximets wrote:
> 'openvswitch' and 'openvswitch-dpdk' packages are not available
> starting with RHEL 8. The only option to get an official OVS
> build is to use FDP repository, which is not available with the
> default RHEL subscription.
>
> Also, the spec file is outdated. We need python3, not python2.
> Some headers are removed by the build script, but needed for
> the devel package. 'openflow' headers are there, but not packaged.
> And libunwind-devel is not available on RHEL8. Just removed from
> the spec, since it's an optional dependency.
>
> Fixes: 1ca0323e7c29 ("Require Python 3 and remove support for Python 2.")
> Reported-at:
> https://mail.openvswitch.org/pipermail/ovs-discuss/2022-August/052033.html
> Signed-off-by: Ilya Maximets <[email protected]>
> ---
> Documentation/intro/install/distributions.rst | 5 ++++-
> rhel/openvswitch.spec.in | 6 ++----
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/intro/install/distributions.rst
> b/Documentation/intro/install/distributions.rst
> index ce75ac45c..3fd29ccb3 100644
> --- a/Documentation/intro/install/distributions.rst
> +++ b/Documentation/intro/install/distributions.rst
> @@ -59,10 +59,13 @@ packages and must be superuser.
> Red Hat
> -------
>
> -RHEL distributes ``openvswitch`` rpm package that supports kernel datapath.
> +RHEL 7 distributes ``openvswitch`` rpm package that supports kernel datapath.
> DPDK accelerated Open vSwitch can be installed using ``openvswitch-dpdk``
> package.
>
> +Starting with RHEL 8, Open vSwitch packages are provided only via Red Hat
> +Fast Datapath repositories, e.g. ``fast-datapath-for-rhel-8-x86_64-rpms``.
> +
> OpenSuSE
> --------
>
> diff --git a/rhel/openvswitch.spec.in b/rhel/openvswitch.spec.in
> index 9903dd10a..7eac52d63 100644
> --- a/rhel/openvswitch.spec.in
> +++ b/rhel/openvswitch.spec.in
> @@ -32,14 +32,12 @@ License: ASL 2.0
> Release: %{release_number}%{?dist}
> Source: openvswitch-%{version}.tar.gz
> Buildroot: /tmp/openvswitch-rpm
> -Requires: logrotate, hostname, python >= 2.7, python-six
> -BuildRequires: python-six
> +Requires: logrotate, hostname, python3 >= 3.4
> BuildRequires: openssl-devel
> BuildRequires: checkpolicy, selinux-policy-devel
> BuildRequires: autoconf, automake, libtool
> BuildRequires: python3-sphinx
> BuildRequires: unbound-devel
> -BuildRequires: libunwind-devel
>
> %bcond_without check
> %bcond_with check_datapath_kernel
> @@ -102,7 +100,6 @@ rm \
> $RPM_BUILD_ROOT/usr/share/man/man8/ovs-test.8 \
> $RPM_BUILD_ROOT/usr/share/man/man8/ovs-l3ping.8
> (cd "$RPM_BUILD_ROOT" && rm -rf usr/%{_lib}/*.la)
> -(cd "$RPM_BUILD_ROOT" && rm -rf usr/include)
>
> install -d -m 0755 $RPM_BUILD_ROOT%{_rundir}/openvswitch
> install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/log/openvswitch
> @@ -255,6 +252,7 @@ exit 0
> %{_libdir}/lib*.a
> %{_libdir}/pkgconfig
> %{_includedir}/openvswitch/*
> +%{_includedir}/openflow/*
>
> %files selinux-policy
> %defattr(-,root,root)
> --
> 2.34.3
>
--
fbl
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev