From ba834485756b47f5c1c5fb90f3a6cc2942689fd6 Mon Sep 17 00:00:00 2001 From: Nate Kent Date: Wed, 28 Oct 2026 19:24:52 +0100 Subject: [PATCH] nng: upgrade 1.12.3 -> 2.1.0 This is a major release for NNG that includes breaking changes to the API. Changelogs: * https://github.com/nanomsg/nng/releases/tag/v2.0.0 * https://github.com/nanomsg/nng/releases/tag/v2.1.0 Signed-off-by: Nate Kent Signed-off-by: Khem Raj --- meta-networking/recipes-connectivity/nanomsg/nng/run-ptest | 3 +-- .../nanomsg/{nng_1.12.3.bb => nng_2.1.0.bb} | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename meta-networking/recipes-connectivity/nanomsg/{nng_1.12.3.bb => nng_2.1.0.bb} (77%) diff --git a/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest b/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest index 57888a77c9..c521d41082 100644 --- a/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest +++ b/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest @@ -4,8 +4,7 @@ RET=0 cd tests for t in $(ls *); do - ./$t > /dev/null - if [ $? -eq 0 ]; then + if "./$t"; then echo PASS: $t else echo FAIL: $t diff --git a/meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb b/meta-networking/recipes-connectivity/nanomsg/nng_2.1.0.bb similarity index 77% rename from meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb rename to meta-networking/recipes-connectivity/nanomsg/nng_2.1.0.bb index 7f8a3986f2..0ed2299d51 100644 --- a/meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb +++ b/meta-networking/recipes-connectivity/nanomsg/nng_2.1.0.bb @@ -5,11 +5,11 @@ SECTION = "libs/networking" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3" -SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https \ +SRC_URI = "git://github.com/nanomsg/nng.git;branch=main;protocol=https \ file://run-ptest \ " -SRCREV = "73f715235967afc783e0b99c52d015dc10897fda" +SRCREV = "0912dcbd63f2f44324fa974e9fc9695c7621abb9" inherit cmake pkgconfig ptest @@ -23,7 +23,8 @@ PACKAGECONFIG[mbedtls] = "-DNNG_ENABLE_TLS=ON,-DNNG_ENABLE_TLS=OFF,mbedtls" do_install_ptest(){ install -d ${D}/${PTEST_PATH}/tests - find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \; + find ${B}/src -type f -executable -name '*_test' -exec install {} ${D}${PTEST_PATH}/tests/ \; + install ${B}/tests/cplusplus_pair ${D}${PTEST_PATH}/tests/ } PACKAGES =+ "${PN}-tools"