Skip to contentSkip to conversation

Bump netopeer2 and dependencies

PATCH In review Heiko Thiery 2 participants 6 messages Nov 25, 2021 – Dec 4, 2021

lore
Share & tools
lore
#0 lore raw

cover Bump netopeer2 and dependencies

For updating netopeer2, the libyang, libnetconf2 and sysrepo packages that depend on it must also be updated.

It should be noted that libyang has an incompatible API change from v1 to v2. Currently, the v1 of libyang is still used by the frr package, although a newer version also uses v2. We should therefore bump the frr package as well.

@Vadim: could you take care of this?

Heiko Thiery (4):
package/libyang: bump verstion to 2.0.112
package/libnetconf2: bump version to 2.0.24
package/sysrepo: bump version to 2.0.53
package/netopeer2: bump version to 2.0.35

 ...IX-netopeer2-build-fails-when-buildi.patch | 34 +++++++++++++++
 package/libnetconf2/libnetconf2.hash          |  2 +-
 package/libnetconf2/libnetconf2.mk            |  2 +-
 package/libyang/Config.in                     |  3 +-
 package/libyang/libyang.hash                  |  4 +-
 package/libyang/libyang.mk                    |  6 +--
 package/netopeer2/netopeer2.hash              |  2 +-
 package/netopeer2/netopeer2.mk                |  2 +-
 ...uild-with-musl-libc-fails-due-to-unk.patch | 42 +++++++++++++++++++
 package/sysrepo/Config.in                     |  3 +-
 package/sysrepo/sysrepo.hash                  |  4 +-
 package/sysrepo/sysrepo.mk                    |  8 ++--
 12 files changed, 93 insertions(+), 19 deletions(-)
 create mode 100644 package/libnetconf2/0001-libnetconf2-BUGFIX-netopeer2-build-fails-when-buildi.patch
 create mode 100644 package/sysrepo/0001-sysrepo-BUGFIX-build-with-musl-libc-fails-due-to-unk.patch
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/4 package/libyang: bump verstion to 2.0.112

---
 package/libyang/Config.in    | 3 +--
 package/libyang/libyang.hash | 4 ++--
 package/libyang/libyang.mk   | 6 +++---
 3 files changed, 6 insertions(+), 7 deletions(-)
package/libyang/Config.in +1 -2
index fec1160a6f..54df061b58 100644
@@ -2,8 +2,7 @@ config BR2_PACKAGE_LIBYANG
 	bool "libyang"
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_STATIC_LIBS
-	select BR2_PACKAGE_PCRE
-	select BR2_PACKAGE_PCRE_UCP
+	select BR2_PACKAGE_PCRE2
 	help
 	  Libyang is YANG data modeling language parser and toolkit
 	  written (and providing API) in C.
package/libyang/libyang.hash +2 -2
index 755ecf390a..c129896a63 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  8576cad398b451b1c622b0652a2030fcf83ee1d9a39e6cd93d17b0a5a43118d6  libyang-1.0.240.tar.gz
-sha256  f942fe693e03e4e3ff67a351c00dc8f468a042e0d7273b0aa6bc53060b568112  LICENSE
+sha256  184dd67c66c1ad968a2ee4d0950fb6b103834917b04b17af9c7bca80967636ee  libyang-2.0.112.tar.gz
+sha256  0b7ec43747d211a1e49c53588b0822062947bab6bdcc95238578beab34cba5bb  LICENSE
package/libyang/libyang.mk +3 -3
index f784367ea3..7de9531bff 100644
@@ -4,15 +4,15 @@
 #
 ################################################################################
 
-LIBYANG_VERSION = 1.0.240
+LIBYANG_VERSION = 2.0.112
 LIBYANG_SITE = $(call github,CESNET,libyang,v$(LIBYANG_VERSION))
 LIBYANG_LICENSE = BSD-3-Clause
 LIBYANG_LICENSE_FILES = LICENSE
 LIBYANG_INSTALL_STAGING = YES
 LIBYANG_CPE_ID_VENDOR = cesnet
 LIBYANG_SUPPORTS_IN_SOURCE_BUILD = NO
-LIBYANG_DEPENDENCIES = pcre
-HOST_LIBYANG_DEPENDENCIES = host-pcre
+LIBYANG_DEPENDENCIES = pcre2
+HOST_LIBYANG_DEPENDENCIES = host-pcre2
 
 LIBYANG_CONF_OPTS = \
 	-DENABLE_VALGRIND_TESTS=OFF \
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 1/4] package/libyang: bump verstion to 2.0.112

Quoted 6 lines · On Thu, 25 Nov 2021 13:55:57 +0100 Heiko Thiery <[email protected]> wrote:
---
 package/libyang/Config.in    | 3 +--
 package/libyang/libyang.hash | 4 ++--
 package/libyang/libyang.mk   | 6 +++---
 3 files changed, 6 insertions(+), 7 deletions(-)

Series applied to next. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 2/4 package/libnetconf2: bump version to 2.0.24

In reply to Heiko Thiery
---
 ...IX-netopeer2-build-fails-when-buildi.patch | 34 +++++++++++++++++++
 package/libnetconf2/libnetconf2.hash          |  2 +-
 package/libnetconf2/libnetconf2.mk            |  2 +-
 3 files changed, 36 insertions(+), 2 deletions(-)
 create mode 100644 package/libnetconf2/0001-libnetconf2-BUGFIX-netopeer2-build-fails-when-buildi.patch
package/libnetconf2/0001-libnetconf2-BUGFIX-netopeer2-build-fails-when-buildi.patch new file +34 -0
new file mode 100644
index 0000000000..c03fdc9999
@@ -0,0 +1,34 @@
+From e06f291cc36c9e9a3c9c224e23109ac6dad4eb1c Mon Sep 17 00:00:00 2001
+From: Heiko Thiery <[email protected]>
+Date: Thu, 25 Nov 2021 12:29:47 +0100
+Subject: [PATCH] libnetconf2 BUGFIX netopeer2 build fails when building with
+ musl libc
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+/home/hthiery/sources/mainline/buildroot/output/host/x86_64-buildroot-linux-musl/sysroot/usr/include/libnetconf2/session_server.h:439:55: error: unknown type name ‘mode_t’
+  439 | int nc_server_endpt_set_perms(const char *endpt_name, mode_t mode, uid_t uid, gid_t gid);
+
+For musl libc the include "sys/types.h" is required.
+
+Signed-off-by: Heiko Thiery <[email protected]>
+---
+ src/session_server.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/session_server.h b/src/session_server.h
+index 4507eea..4779119 100644
+--- a/src/session_server.h
++++ b/src/session_server.h
+@@ -19,6 +19,7 @@
+ extern "C" {
+ #endif
+ 
++#include <sys/types.h>
+ #include <libyang/libyang.h>
+ #include <stdint.h>
+ 
+-- 
+2.30.2
+
package/libnetconf2/libnetconf2.hash +1 -1
index 24cc3a5557..2dee93cc4c 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  66139fc9e68aa89c82235f4135dba9e44f5db663541279c14c74131e22b7f571  libnetconf2-1.1.43.tar.gz
+sha256  78ffa0bd85823abd321a1dbb09c1ead36612f2a12049638a14bb081567f86ade  libnetconf2-2.0.24.tar.gz
 sha256  bd962ab457c8a8cb8faaaa36c11484680f3c9a47dbc336507817ae8935384064  LICENSE
package/libnetconf2/libnetconf2.mk +1 -1
index 40fa935bb1..33e1fadf76 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBNETCONF2_VERSION = 1.1.43
+LIBNETCONF2_VERSION = 2.0.24
 LIBNETCONF2_SITE = $(call github,CESNET,libnetconf2,v$(LIBNETCONF2_VERSION))
 LIBNETCONF2_INSTALL_STAGING = YES
 LIBNETCONF2_LICENSE = BSD-3-Clause
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

PATCH 3/4 package/sysrepo: bump version to 2.0.53

In reply to Heiko Thiery

The license changed from Apache-2.0 to BSD-3-Clause

---
 ...uild-with-musl-libc-fails-due-to-unk.patch | 42 +++++++++++++++++++
 package/sysrepo/Config.in                     |  3 +-
 package/sysrepo/sysrepo.hash                  |  4 +-
 package/sysrepo/sysrepo.mk                    |  8 ++--
 4 files changed, 49 insertions(+), 8 deletions(-)
 create mode 100644 package/sysrepo/0001-sysrepo-BUGFIX-build-with-musl-libc-fails-due-to-unk.patch
package/sysrepo/0001-sysrepo-BUGFIX-build-with-musl-libc-fails-due-to-unk.patch new file +42 -0
new file mode 100644
index 0000000000..784cfb1445
@@ -0,0 +1,42 @@
+From 896dc6aee38898fe1c6822ee6a4a4989d21c650b Mon Sep 17 00:00:00 2001
+From: Heiko Thiery <[email protected]>
+Date: Thu, 25 Nov 2021 12:18:06 +0100
+Subject: [PATCH] sysrepo BUGFIX build with musl libc fails due to unknown type
+ name 'mode_t'
+
+When building against the musl libc the build will fail due to the
+missing sys/type.h include.
+
+Signed-off-by: Heiko Thiery <[email protected]>
+---
+ src/plugins_datastore.h    | 1 +
+ src/plugins_notification.h | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/src/plugins_datastore.h b/src/plugins_datastore.h
+index a64e4131..d577e929 100644
+--- a/src/plugins_datastore.h
++++ b/src/plugins_datastore.h
+@@ -18,6 +18,7 @@
+ #define _SYSREPO_PLUGINS_DATASTORE_H
+ 
+ #include <stdint.h>
++#include <sys/types.h>
+ 
+ #include <libyang/libyang.h>
+ 
+diff --git a/src/plugins_notification.h b/src/plugins_notification.h
+index 2099db62..f410e8d9 100644
+--- a/src/plugins_notification.h
++++ b/src/plugins_notification.h
+@@ -18,6 +18,7 @@
+ #define _SYSREPO_PLUGINS_NOTIFICATION_H
+ 
+ #include <stdint.h>
++#include <sys/types.h>
+ 
+ #include <libyang/libyang.h>
+ 
+-- 
+2.30.2
+
package/sysrepo/Config.in +1 -2
index 8de141efc2..52df1bc4c3 100644
@@ -6,8 +6,7 @@ config BR2_PACKAGE_SYSREPO
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
 	select BR2_PACKAGE_LIBYANG
-	select BR2_PACKAGE_PCRE
-	select BR2_PACKAGE_PCRE_UCP
+	select BR2_PACKAGE_PCRE2
 	help
 	  Sysrepo is an YANG-based configuration and operational state
 	  data store for Unix/Linux applications.
package/sysrepo/sysrepo.hash +2 -2
index 693a2bbf7d..b382c16036 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  2cc7537a03f48dc3c955436e1e0ed077bc3b31a755d6979d24ca42e1187fce01  sysrepo-1.4.122.tar.gz
-sha256  b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1  LICENSE
+sha256  fe09da5f40fb53e3fb97268a134cc0ed3003f0018d0d117c73e81e1553a11f30  sysrepo-2.0.53.tar.gz
+sha256  88f1b7e5c64d2c113e07105aa9c0fb80639b40287565be1c2afd0949df83d826  LICENSE
package/sysrepo/sysrepo.mk +4 -4
index c0db05e52c..acb3052023 100644
@@ -4,13 +4,13 @@
 #
 ################################################################################
 
-SYSREPO_VERSION = 1.4.122
+SYSREPO_VERSION = 2.0.53
 SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION))
 SYSREPO_INSTALL_STAGING = YES
-SYSREPO_LICENSE = Apache-2.0
+SYSREPO_LICENSE = BSD-3-Clause
 SYSREPO_LICENSE_FILES = LICENSE
-SYSREPO_DEPENDENCIES = libyang pcre host-sysrepo
-HOST_SYSREPO_DEPENDENCIES = host-libyang host-pcre
+SYSREPO_DEPENDENCIES = libyang pcre2 host-sysrepo
+HOST_SYSREPO_DEPENDENCIES = host-libyang host-pcre2
 
 SYSREPO_CONF_OPTS = \
 	-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 4/4 package/netopeer2: bump version to 2.0.35

In reply to Heiko Thiery
---
 package/netopeer2/netopeer2.hash | 2 +-
 package/netopeer2/netopeer2.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/netopeer2/netopeer2.hash +1 -1
index 4386e5661c..2895bc51d0 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  7fc1a3520ee4bb488112f502e34cea465464dc933d2a5742a72eb32a6dfe3b3f  netopeer2-1.1.70.tar.gz
+sha256  dedae40419cfddd09c1be7bb536b3a762ec8dcd568c2bfe803c0f6789a5ca834  netopeer2-2.0.35.tar.gz
 sha256  b46f161fbdcf127d3ef22602e15958c3092fe3294f71a2dc8cdf8f6689cba95b  LICENSE
package/netopeer2/netopeer2.mk +1 -1
index c9fa097606..c8b6763313 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-NETOPEER2_VERSION = 1.1.70
+NETOPEER2_VERSION = 2.0.35
 NETOPEER2_SITE = $(call github,CESNET,Netopeer2,v$(NETOPEER2_VERSION))
 NETOPEER2_DL_SUBDIR = netopeer2
 NETOPEER2_LICENSE = BSD-3-Clause
Signature · 6 lines
2.30.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot