ovn: bump to version 22.03.0
authorYousong Zhou <redacted>
Wed, 16 Mar 2022 06:20:34 +0000 (06:20 +0000)
committerYousong Zhou <redacted>
Thu, 24 Mar 2022 04:53:31 +0000 (12:53 +0800)
libovn now depends on libopenvswitch since ovn 21.09.0

Signed-off-by: Yousong Zhou <redacted>
net/ovn/Makefile
net/ovn/patches/0001-build-skip-check-and-use-of-libunbound.patch
net/ovn/patches/0002-build-skip-tests-and-docs.patch
net/ovn/patches/0004-fix-use-of-possible-uninitialized-var.patch [new file with mode: 0644]

index 8b165c43b48bbe1786ebf6aa61f9e1c44c1736bb..8d6d8ef97ae30a8d610eaf195d1ab21e72d119ca 100644 (file)
@@ -9,13 +9,13 @@ include $(INCLUDE_DIR)/kernel.mk
 include ../openvswitch/openvswitch.mk
 
 PKG_NAME:=ovn
-PKG_VERSION:=20.12.0
-PKG_RELEASE:=2
+PKG_VERSION:=22.03.0
+PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/ovn-org/ovn.git
 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
-PKG_MIRROR_HASH:=6d1b5d907b4445e84653527ccf5977b05555c785f90587dee0fc1950d96727cc
+PKG_MIRROR_HASH:=eb494796a7a21e7c1ba5b3f60c037385eb5f0c33007ebc627437f36187f860fe
 
 PKG_LICENSE:=Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
@@ -35,7 +35,7 @@ include ../../lang/python/python3-host.mk
 
 ovs_libovn_title:=Open vSwitch (libovn.so)
 ovs_libovn_hidden:=1
-ovs_libovn_depends+=+libatomic
+ovs_libovn_depends+=+libatomic +openvswitch-libopenvswitch
 ovs_libovn_files:=usr/lib/libovn*.so*
 $(eval $(call OvsPackageTemplate,libovn))
 
@@ -88,6 +88,11 @@ CONFIGURE_VARS += \
 
 
 TARGET_CFLAGS += -flto -std=gnu99
+# This is needed otherwise libtool --mode=install libovn.la will fail with
+# "cannot find -lopenvswitch" when doing libtool --mode=relink.  Likely this
+# was caused by libovn now depends on libopenvswitch.la (installed=no) since
+# upstream commit 1b587c4f ("controller: add datapath meter capability check")
+TARGET_LDFLAGS += -L$(ovs_builddir)/lib/.libs
 MAKE_VARS += PYTHONPATH="$(HOST_PYTHON3PATH)"
 
 $(foreach p,$(ovs_packages),\
index 75da5a2497b5f6e125872511fa80473bf156e057..5a91e80b346d9a3197a2be98c17231090c411a4c 100644 (file)
@@ -10,11 +10,11 @@ Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
 
 --- a/configure.ac
 +++ b/configure.ac
-@@ -130,7 +130,6 @@ OVS_CHECK_LINUX_HOST
+@@ -131,7 +131,6 @@ OVS_CHECK_LINUX_HOST
  OVS_LIBTOOL_VERSIONS
  OVS_CHECK_CXX
  AX_FUNC_POSIX_MEMALIGN
 -OVN_CHECK_UNBOUND
+ OVS_CHECK_DDLOG_FAST_BUILD
  
  OVS_CHECK_INCLUDE_NEXT([stdio.h string.h])
- AC_CONFIG_FILES([lib/libovn.sym])
index 8fb7ffef721244a678990d1d6d4173ab4335399d..12ef25de0b51aed1b56c70fbee79a63b74f44c0f 100644 (file)
@@ -10,7 +10,7 @@ Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
 
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -479,11 +479,9 @@ dist-docs:
+@@ -483,11 +483,9 @@ dist-docs:
  
  
  include automake.mk
diff --git a/net/ovn/patches/0004-fix-use-of-possible-uninitialized-var.patch b/net/ovn/patches/0004-fix-use-of-possible-uninitialized-var.patch
new file mode 100644 (file)
index 0000000..21b90ec
--- /dev/null
@@ -0,0 +1,21 @@
+Fix the following compilation errors
+
+ic/ovn-ic.c: In function 'main':
+ic/ovn-ic.c:689:5: warning: 'ls' may be used uninitialized in this function [-Wmaybe-uninitialized]
+  689 |     nbrec_logical_switch_update_ports_addvalue(ls, lsp);
+      |     ^
+ic/ovn-ic.c:430:40: note: 'ls' was declared here
+  430 |     const struct nbrec_logical_switch *ls;
+      |                                        ^
+
+--- a/ic/ovn-ic.c
++++ b/ic/ovn-ic.c
+@@ -427,7 +427,7 @@ find_ts_in_nb(struct ic_context *ctx, ch
+         nbrec_logical_switch_index_init_row(ctx->nbrec_ls_by_name);
+     nbrec_logical_switch_index_set_name(key, ts_name);
+-    const struct nbrec_logical_switch *ls;
++    const struct nbrec_logical_switch *ls = NULL;
+     bool found = false;
+     NBREC_LOGICAL_SWITCH_FOR_EACH_EQUAL (ls, key, ctx->nbrec_ls_by_name) {
+         const char *ls_ts_name = smap_get(&ls->other_config, "interconn-ts");
git clone https://git.99rst.org/PROJECT