summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/2895.patch15
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/3238.patch25
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.22.bb (renamed from meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.21.bb)3
3 files changed, 14 insertions, 29 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/2895.patch b/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
index 4c39a290b0..d9432e749e 100644
--- a/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
+++ b/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
@@ -10,8 +10,6 @@ Upstream-Status: Submitted [https://github.com/eclipse-mosquitto/mosquitto/pull/
10 service/systemd/mosquitto.service.simple | 4 ++-- 10 service/systemd/mosquitto.service.simple | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-) 11 1 file changed, 2 insertions(+), 2 deletions(-)
12 12
13diff --git a/service/systemd/mosquitto.service.simple b/service/systemd/mosquitto.service.simple
14index 15ee0d6..c2a330b 100644
15--- a/service/systemd/mosquitto.service.simple 13--- a/service/systemd/mosquitto.service.simple
16+++ b/service/systemd/mosquitto.service.simple 14+++ b/service/systemd/mosquitto.service.simple
17@@ -1,8 +1,8 @@ 15@@ -1,8 +1,8 @@
@@ -25,3 +23,16 @@ index 15ee0d6..c2a330b 100644
25 23
26 [Service] 24 [Service]
27 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf 25 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
26--- a/service/systemd/mosquitto.service.notify
27+++ b/service/systemd/mosquitto.service.notify
28@@ -1,8 +1,8 @@
29 [Unit]
30 Description=Mosquitto MQTT Broker
31 Documentation=man:mosquitto.conf(5) man:mosquitto(8)
32-After=network.target
33-Wants=network.target
34+After=network-online.target
35+Wants=network-online.target
36
37 [Service]
38 Type=notify
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/3238.patch b/meta-networking/recipes-connectivity/mosquitto/files/3238.patch
deleted file mode 100644
index 89795f4cd9..0000000000
--- a/meta-networking/recipes-connectivity/mosquitto/files/3238.patch
+++ /dev/null
@@ -1,25 +0,0 @@
1From 2cb8129793b54de7c68efe1a4a8e91c788077a8e Mon Sep 17 00:00:00 2001
2From: "Roger A. Light" <roger@atchoo.org>
3Date: Thu, 1 May 2025 11:58:23 +0100
4Subject: [PATCH] Fix incorrect reference clock being selected on startup on
5 Linux.
6
7Closes #3238. Thanks to Eric Guin and karlri.
8Closes #3168.
9---
10Upstream-Status: Backport 2.0.22
11 src/mosquitto.c | 1 +
12 2 files changed, 3 insertions(+)
13
14diff --git a/src/mosquitto.c b/src/mosquitto.c
15index ff83ef3da..2aea55237 100644
16--- a/src/mosquitto.c
17+++ b/src/mosquitto.c
18@@ -465,6 +465,7 @@ int main(int argc, char *argv[])
19 #endif
20 struct mosquitto *ctxt, *ctxt_tmp;
21
22+ mosquitto_time_init();
23 #if defined(WIN32) || defined(__CYGWIN__)
24 if(argc == 2){
25 if(!strcmp(argv[1], "run")){
diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.21.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.22.bb
index dcbcbadd59..1bdf54eea1 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.21.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.22.bb
@@ -17,10 +17,9 @@ DEPENDS = "uthash cjson"
17SRC_URI = "http://mosquitto.org/files/source/mosquitto-${PV}.tar.gz \ 17SRC_URI = "http://mosquitto.org/files/source/mosquitto-${PV}.tar.gz \
18 file://mosquitto.init \ 18 file://mosquitto.init \
19 file://2895.patch \ 19 file://2895.patch \
20 file://3238.patch \
21" 20"
22 21
23SRC_URI[sha256sum] = "7ad5e84caeb8d2bb6ed0c04614b2a7042def961af82d87f688ba33db857b899d" 22SRC_URI[sha256sum] = "2f752589ef7db40260b633fbdb536e9a04b446a315138d64a7ff3c14e2de6b68"
24 23
25inherit systemd update-rc.d useradd cmake pkgconfig 24inherit systemd update-rc.d useradd cmake pkgconfig
26 25