Skip to contentSkip to conversation

Bump netopeer2 and its dependencies

PATCH In review Mattias Walström 2 participants 9 messages May 12, 2025 – May 19, 2025

lore
Share & tools
lore
#0 lore raw

v3 cover Bump netopeer2 and its dependencies

v3:
- remove ENABLE_SSH, it is removed in libnetconf2
- add new dependencies for netopeer2
- reorder patches, update netopeer2 last
v2:
- fix wrong hash for libyang, thanks Heiko Thiery
- fix comments from Thomas Petazzoni from a previous patch series:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

Mattias Walström (6):
package/sysrepo: bump to version 3.6.11 package/libyang: bump to version 3.12.2 package/libnetconf2: bump to version 3.7.1 package/libnetconf2: Update dependencies package/netopeer2: Update dependencies from libnetconf2 package/netopeer2: bump to version 2.4.1

 package/libnetconf2/Config.in        |  8 ++++++++
 package/libnetconf2/libnetconf2.hash |  2 +-
 package/libnetconf2/libnetconf2.mk   | 21 +++++++++------------
 package/libyang/libyang.hash         |  4 ++--
 package/libyang/libyang.mk           |  2 +-
 package/netopeer2/Config.in          |  4 +++-
 package/netopeer2/netopeer2.hash     |  2 +-
 package/netopeer2/netopeer2.mk       |  2 +-
 package/sysrepo/sysrepo.hash         |  2 +-
 package/sysrepo/sysrepo.mk           |  2 +-
 10 files changed, 28 insertions(+), 21 deletions(-)
Signature · 6 lines
2.43.0

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

PATCH v3 1/6 package/sysrepo: bump to version 3.6.11

Changelog:
several moderate optimizations (@irfanHaslanded)
session push oper data cache
lots of minor bugfixes and improvements

Depends on libyang v3.12.2 https://github.com/CESNET/libyang/releases/tag/v3.12.2

---
 package/sysrepo/sysrepo.hash | 2 +-
 package/sysrepo/sysrepo.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/sysrepo/sysrepo.hash +1 -1
index 056f70787d..663769e08d 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  467efed8d0f62c26a0d200602b911096eb2d67858e620937ab68f96b316fa9b7  sysrepo-2.2.150.tar.gz
+sha256  07faa220dd409382a8a4e2fd411f961ef6c05cc1bb7f616579013836734033c4  sysrepo-3.6.11.tar.gz
 sha256  88f1b7e5c64d2c113e07105aa9c0fb80639b40287565be1c2afd0949df83d826  LICENSE
package/sysrepo/sysrepo.mk +1 -1
index 7f2570bd7d..de5441f01c 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-SYSREPO_VERSION = 2.2.150
+SYSREPO_VERSION = 3.6.11
 SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION))
 SYSREPO_INSTALL_STAGING = YES
 SYSREPO_LICENSE = BSD-3-Clause
Signature · 6 lines
2.43.0

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

Re: [Buildroot] [PATCH v3 1/6] package/sysrepo: bump to version 3.6.11

Hello Mattias,

Quoted 8 lines · On Mon, 12 May 2025 19:35:01 +0200 Mattias Walström <[email protected]> wrote:

Changelog:
several moderate optimizations (@irfanHaslanded)
session push oper data cache
lots of minor bugfixes and improvements

Depends on libyang v3.12.2 https://github.com/CESNET/libyang/releases/tag/v3.12.2

Thanks for your patch series. I have applied it all, couple of comments:

- I squashed your patches 4/6 and 5/6 into the libnetconf2 update, because it's really part of the same change

- I messed up: I did not realize your had PATCH 6/6, and I faced a netopeer2 build failure, so I bumped it, and it's right after pushing that I realized your series did contain the bump

- netopeer2 doesn't build when mbedtls is enabled as a crypto backend. Unfortunately, there's no way to tell libnetconf2 to NOT use mbedtls when not available. Can you look into this, reproduce the issue (just build with mbedtls enabled) and work with upstream to fix the issue?

Thanks a lot!

Thomas

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

Re: [Buildroot] [PATCH v3 1/6] package/sysrepo: bump to version 3.6.11

Thomas Petazzoni via buildroot <[email protected]> writes:

Hi Thomas,

Quoted 10 lines

Hello Mattias,

Quoted 5 lines · On Mon, 12 May 2025 19:35:01 +0200 Mattias Walström <[email protected]> wrote:

Changelog:
several moderate optimizations (@irfanHaslanded)
session push oper data cache
lots of minor bugfixes and improvements

Quoted 8 lines
Quoted 3 lines

Depends on libyang v3.12.2 https://github.com/CESNET/libyang/releases/tag/v3.12.2

Thanks for your patch series. I have applied it all, couple of comments:

- I squashed your patches 4/6 and 5/6 into the libnetconf2 update, because it's really part of the same change

Ok

Quoted 5 lines

- I messed up: I did not realize your had PATCH 6/6, and I faced a netopeer2 build failure, so I bumped it, and it's right after pushing that I realized your series did contain the bump

Np. It ended up in the correct version, that is the important part.

Quoted 5 lines

- netopeer2 doesn't build when mbedtls is enabled as a crypto backend. Unfortunately, there's no way to tell libnetconf2 to NOT use mbedtls when not available. Can you look into this, reproduce the issue (just build with mbedtls enabled) and work with upstream to fix the issue?

I will see what i can do.

BR
Mattias

Quoted 11 lines

Thanks a lot!

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list [email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

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

#4 lore raw

PATCH v3 2/6 package/libyang: bump to version 3.12.2

In reply to Mattias Walström

Changelog:
optional xxhash faster hasing function
support for metadata in diff
lots of optimizations and fixes

---
 package/libyang/libyang.hash | 4 ++--
 package/libyang/libyang.mk   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
package/libyang/libyang.hash +2 -2
index e03278adfd..169dbb5485 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  77a0aaaeb3df720aeb70d6896e32e2c2be099d48df73e3cfb52567051af3e44b  libyang-2.1.148.tar.gz
-sha256  0b7ec43747d211a1e49c53588b0822062947bab6bdcc95238578beab34cba5bb  LICENSE
+sha256  a2ae94ce43d8b4b084f67c05902f97cbc0ec882d38ef5ddf1d601659f64d5c66  libyang-3.12.2.tar.gz
+sha256  f4fbaa09c8b2faa6a873a38181ff860e2ff90808320f71deb369f03ddfb920da  LICENSE
package/libyang/libyang.mk +1 -1
index fca0cd63f8..94f9ba3b8a 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBYANG_VERSION = 2.1.148
+LIBYANG_VERSION = 3.12.2
 LIBYANG_SITE = $(call github,CESNET,libyang,v$(LIBYANG_VERSION))
 LIBYANG_LICENSE = BSD-3-Clause
 LIBYANG_LICENSE_FILES = LICENSE
Signature · 6 lines
2.43.0

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

PATCH v3 3/6 package/libnetconf2: bump to version 3.7.1

In reply to Mattias Walström

Changelog:
error-path data node
now using proper format so in rpc-reply uses XML XPath format instead of JSON
several bugfixes and improvements

Depend on libyang v3.12.2 https://github.com/CESNET/libyang/releases/tag/v3.12.2

---
 package/libnetconf2/libnetconf2.hash | 2 +-
 package/libnetconf2/libnetconf2.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/libnetconf2/libnetconf2.hash +1 -1
index 675c76a500..2d6394e81b 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  72e9a6461fadbd22f0cf0d23ba68d62b297c8f564f7f2bee069748fb67fc3a24  libnetconf2-2.1.28.tar.gz
+sha256  c95c00ad887295d1fa31098c859c74e330eead78b2eee8d008701af2d9df80e5  libnetconf2-3.7.1.tar.gz
 sha256  bd962ab457c8a8cb8faaaa36c11484680f3c9a47dbc336507817ae8935384064  LICENSE
package/libnetconf2/libnetconf2.mk +1 -1
index 88163926c0..0d74bd736d 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LIBNETCONF2_VERSION = 2.1.28
+LIBNETCONF2_VERSION = 3.7.1
 LIBNETCONF2_SITE = $(call github,CESNET,libnetconf2,v$(LIBNETCONF2_VERSION))
 LIBNETCONF2_INSTALL_STAGING = YES
 LIBNETCONF2_LICENSE = BSD-3-Clause
Signature · 6 lines
2.43.0

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

PATCH v3 4/6 package/libnetconf2: Update dependencies

In reply to Mattias Walström

Since libnetconf2 is possible to build without
OpenSSL as long as ENABLE_SSH_TLS is not set,
adding option BR2_PACKAGE_LIBNETCONF2_SSH_TLS to
opt-in this feature.

---
 package/libnetconf2/Config.in      |  8 ++++++++
 package/libnetconf2/libnetconf2.mk | 19 ++++++++-----------
 2 files changed, 16 insertions(+), 11 deletions(-)
package/libnetconf2/Config.in +8 -0
index 1763243120..970b2e2888 100644
@@ -12,6 +12,14 @@ config BR2_PACKAGE_LIBNETCONF2
 
 	  https://github.com/CESNET/libnetconf2
 
+if BR2_PACKAGE_LIBNETCONF2
+config BR2_PACKAGE_LIBNETCONF2_SSH_TLS
+	bool "SSH/TLS support"
+	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBSSH
+	select BR2_PACKAGE_LIBSSH_SERVER
+endif
 comment "libnetconf2 needs a toolchain w/ threads, dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_TOOLCHAIN_HAS_SYNC_4
package/libnetconf2/libnetconf2.mk +8 -11
index 0d74bd736d..79d8419a11 100644
@@ -16,18 +16,16 @@ LIBNETCONF2_CONF_OPTS = \
 	-DENABLE_TESTS=OFF \
 	-DENABLE_VALGRIND_TESTS=OFF
 
-ifeq ($(BR2_PACKAGE_LIBSSH_SERVER), y)
-LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=ON
-LIBNETCONF2_DEPENDENCIES += libssh
+ifeq ($(BR2_PACKAGE_LIBNETCONF2_SSH_TLS),y)
+LIBNETCONF2_CONF_OPTS += -DENABLE_SSH_TLS=ON
+LIBNETCONF2_DEPENDENCIES += libcurl libssh
+ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+LIBNETCONF2_DEPENDENCIES += mbedtls
 else
-LIBNETCONF2_CONF_OPTS += -DENABLE_SSH=OFF
-endif
-
-ifeq ($(BR2_PACKAGE_LIBOPENSSL), y)
-LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=ON
 LIBNETCONF2_DEPENDENCIES += openssl
+endif
 else
-LIBNETCONF2_CONF_OPTS += -DENABLE_TLS=OFF
+LIBNETCONF2_CONF_OPTS += -DENABLE_SSH_TLS=OFF
 endif
 
 ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
@@ -37,8 +35,7 @@ endif
 HOST_LIBNETCONF2_CONF_OPTS = \
 	-DENABLE_TESTS=OFF \
 	-DENABLE_VALGRIND_TESTS=OFF \
-	-DENABLE_SSH=OFF \
-	-DENABLE_TLS=OFF
+	-DENABLE_SSH_TLS=OFF
 
 $(eval $(cmake-package))
 $(eval $(host-cmake-package))
Signature · 6 lines
2.43.0

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

PATCH v3 5/6 package/netopeer2: Update dependencies from libnetconf2

In reply to Mattias Walström
---
 package/netopeer2/Config.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
package/netopeer2/Config.in +3 -1
index db31a786a1..be4ec3c4a3 100644
@@ -13,10 +13,12 @@ config BR2_PACKAGE_NETOPEER2
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # sysrepo
 	select BR2_PACKAGE_LIBNETCONF2
+	select BR2_PACKAGE_LIBNETCONF2_SSH_TLS
+	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_LIBSSH
 	select BR2_PACKAGE_LIBSSH_SERVER # For libnetconf2 to have SSH
+	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_MBEDTLS # for libnetconf2
 	select BR2_PACKAGE_LIBYANG
-	select BR2_PACKAGE_OPENSSL # For libnetconf2 to have TLS
 	select BR2_PACKAGE_SYSREPO
 	help
 	  Netopeer2 is a set of tools implementing network configuration
Signature · 6 lines
2.43.0

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

PATCH v3 6/6 package/netopeer2: bump to version 2.4.1

In reply to Mattias Walström

Changelog:
internal support of ietf-system-capabilities and ietf-notification-capabilities (@jeremie6wind) minor bugfixes and improvements

Depends on:
- libyang v3.12.2 https://github.com/CESNET/libyang/releases/tag/v3.12.2
- libnetconf2 v3.7.1 https://github.com/CESNET/libnetconf2/releases/tag/v3.7.1
- sysrepo v3.6.11 https://github.com/sysrepo/sysrepo/releases/tag/v3.6.11

---
 package/netopeer2/netopeer2.hash | 2 +-
 package/netopeer2/netopeer2.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/netopeer2/netopeer2.hash +1 -1
index 6a278fbbaf..3a70b15539 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  2b1daac037f18c303e0c0dc3318ba30196459472e4c59f2f8547ee74d4cdf31d  netopeer2-2.1.49.tar.gz
+sha256  86d77efcb65f0bb2c3bc0f2128a320113ce7125f39882fe7d8334c168ed9567d  netopeer2-2.4.1.tar.gz
 sha256  b46f161fbdcf127d3ef22602e15958c3092fe3294f71a2dc8cdf8f6689cba95b  LICENSE
package/netopeer2/netopeer2.mk +1 -1
index 4853e5d176..71f2c50640 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-NETOPEER2_VERSION = 2.1.49
+NETOPEER2_VERSION = 2.4.1
 NETOPEER2_SITE = $(call github,CESNET,Netopeer2,v$(NETOPEER2_VERSION))
 NETOPEER2_DL_SUBDIR = netopeer2
 NETOPEER2_LICENSE = BSD-3-Clause
Signature · 6 lines
2.43.0

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