frr: fix running on mips (again) 13341/head
authorLucian Cristian <lucian.cristian@gmail.com>
Tue, 8 Sep 2020 20:04:57 +0000 (23:04 +0300)
committerLucian Cristian <lucian.cristian@gmail.com>
Tue, 8 Sep 2020 20:23:43 +0000 (23:23 +0300)
add mips fix missed on version upgrade

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
net/frr/Makefile
net/frr/patches/098-fix_mips_libyang.patch [new file with mode: 0644]

index c85a3200c6ac99d0173a736bcba6a1e49ad27fae..68e5171a043ad7902eda4b5bdcda20b889f1a6e3 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 PKG_NAME:=frr
 PKG_VERSION:=7.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=https://github.com/FRRouting/frr/archive/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
diff --git a/net/frr/patches/098-fix_mips_libyang.patch b/net/frr/patches/098-fix_mips_libyang.patch
new file mode 100644 (file)
index 0000000..3785cfe
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/lib/northbound.h
++++ b/lib/northbound.h
+@@ -504,11 +504,7 @@ struct frr_yang_module_info {
+               /* Priority - lower priorities are processed first. */
+               uint32_t priority;
+-#if defined(__GNUC__) && ((__GNUC__ - 0) < 5) && !defined(__clang__)
+       } nodes[YANG_MODULE_MAX_NODES + 1];
+-#else
+-      } nodes[];
+-#endif
+ };
+ /* Northbound error codes. */