mosquitto: bump to 2.0.21
PATCH 1/2 mosquitto: bump to 2.0.21
From: Louis Rannou <[email protected]>
Upgrade to mosquitto 2.0.21. Update the patch status for issue 2895 and create a new patch for an issue introduced in 2.0.19 which causes connections to get down when the clock is changed.
---
.../mosquitto/files/2895.patch | 2 +-
.../mosquitto/files/3238.patch | 25 +++++++++++++++++++
...osquitto_2.0.20.bb => mosquitto_2.0.21.bb} | 3 ++-
3 files changed, 28 insertions(+), 2 deletions(-)
create mode 100644 meta-networking/recipes-connectivity/mosquitto/files/3238.patch
rename meta-networking/recipes-connectivity/mosquitto/{mosquitto_2.0.20.bb => mosquitto_2.0.21.bb} (96%)meta-networking/recipes-connectivity/mosquitto/files/2895.patch +1 -1
@@ -5,7 +5,7 @@ Subject: [PATCH] Mosquitto now waits for network-online when starting See: https://github.com/eclipse/mosquitto/issues/2878 --- -Upstream-Status: Pending +Upstream-Status: Submitted [https://github.com/eclipse-mosquitto/mosquitto/pull/2895] service/systemd/mosquitto.service.simple | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-networking/recipes-connectivity/mosquitto/files/3238.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 2cb8129793b54de7c68efe1a4a8e91c788077a8e Mon Sep 17 00:00:00 2001 +From: "Roger A. Light" <[email protected]> +Date: Thu, 1 May 2025 11:58:23 +0100 +Subject: [PATCH] Fix incorrect reference clock being selected on startup on + Linux. + +Closes #3238. Thanks to Eric Guin and karlri. +Closes #3168. +--- +Upstream-Status: Backport 2.0.22 + src/mosquitto.c | 1 + + 2 files changed, 3 insertions(+) + +diff --git a/src/mosquitto.c b/src/mosquitto.c +index ff83ef3da..2aea55237 100644 +--- a/src/mosquitto.c ++++ b/src/mosquitto.c +@@ -465,6 +465,7 @@ int main(int argc, char *argv[]) + #endif + struct mosquitto *ctxt, *ctxt_tmp; + ++ mosquitto_time_init(); + #if defined(WIN32) || defined(__CYGWIN__) + if(argc == 2){ + if(!strcmp(argv[1], "run")){
meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.21.bb renamed from meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.20.bb +2 -1
@@ -17,9 +17,10 @@ DEPENDS = "uthash cjson" SRC_URI = "http://mosquitto.org/files/source/mosquitto-${PV}.tar.gz \ file://mosquitto.init \ file://2895.patch \ + file://3238.patch \ " -SRC_URI[sha256sum] = "ebd07d89d2a446a7f74100ad51272e4a8bf300b61634a7812e19f068f2759de8" +SRC_URI[sha256sum] = "7ad5e84caeb8d2bb6ed0c04614b2a7042def961af82d87f688ba33db857b899d" inherit systemd update-rc.d useradd cmake pkgconfig
PATCH 2/2 freeradius: Fix service start error
From: Liu Yiding <[email protected]>
Following error occurred while starting this service.
Error: tls: (TLS) Failed reading certificate file "/etc/raddb/certs/server.pem"
Error: tls: (TLS) error:03000072:digital envelope routines::decode error
Error: tls: (TLS) error:0A00018F:SSL routines::ee key too small
Error: rlm_eap_tls: Failed initializing SSL context
Error: rlm_eap (EAP): Failed to initialise rlm_eap_tls
Error: /etc/raddb/mods-enabled/eap[14]: Instantiation failed for module "eap"
--- .../files/0018-Fix-Service-start-error.patch | 33 +++++++++++++++++++ .../freeradius/freeradius_3.2.7.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-networking/recipes-connectivity/freeradius/files/0018-Fix-Service-start-error.patch
meta-networking/recipes-connectivity/freeradius/files/0018-Fix-Service-start-error.patch new file +33 -0
@@ -0,0 +1,33 @@ +From e97ffc1f820beff12bb8084e6337168a1cd27540 Mon Sep 17 00:00:00 2001 +From: Liu Yiding <[email protected]> +Date: Sat, 20 Sep 2025 06:50:17 +0000 +Subject: [PATCH] Fix Service start error + +change "fips=no" to "-fips" +based on discussions with the OpenSSL developers in +https://github.com/FreeRADIUS/freeradius-server/issues/5631 + +Upstream-Status: Backport +https://github.com/FreeRADIUS/freeradius-server/commit/59e262f1134fef8d53d15ae963885a08c9ea8315 + +Signed-off-by: Liu Yiding <[email protected]> +--- + src/main/tls.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main/tls.c b/src/main/tls.c +index 2a348eb9bb..02a4c24f70 100644 +--- a/src/main/tls.c ++++ b/src/main/tls.c +@@ -3644,7 +3644,7 @@ int tls_global_init(TLS_UNUSED bool spawn_flag, TLS_UNUSED bool check) + CONF_modules_load_file(NULL, NULL, 0); + + #if OPENSSL_VERSION_NUMBER >= 0x30000000L +- EVP_set_default_properties(NULL, "fips=no"); ++ EVP_set_default_properties(NULL, "-fips"); + #endif + + /* +-- +2.43.0 +
meta-networking/recipes-connectivity/freeradius/freeradius_3.2.7.bb +1 -0
@@ -35,6 +35,7 @@ SRC_URI = "git://github.com/FreeRADIUS/freeradius-server.git;branch=v3.2.x;lfs=0 file://0015-bootstrap-check-commands-of-openssl-exist.patch \ file://0016-version.c-don-t-print-build-flags.patch \ file://0017-Add-acinclude.m4-to-include-required-macros.patch \ + file://0018-Fix-Service-start-error.patch \ " raddbdir = "${sysconfdir}/${MLPREFIX}raddb"