summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGianfranco Costamagna <costamagna.gianfranco@gmail.com>2023-10-06 23:05:06 +0200
committerArmin Kuster <akuster808@gmail.com>2023-10-17 08:50:47 -0400
commita818281425ef9d180835455fc04b63ff17245a2f (patch)
tree93fb8eb1b6486afc8be07957a189a16af94d67bd
parentf6f0669c1f9066ef8530eb45646bca16e616b5f0 (diff)
downloadmeta-openembedded-a818281425ef9d180835455fc04b63ff17245a2f.tar.gz
mosquitto: upgrade 2.0.17 -> 2.0.18
Add two patches from Debian, pull requests proposed upstream as 2894 and 2895 to make it start only when board is online, and to fix dynamic websockets link failure Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/2894.patch23
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/2895.patch25
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb (renamed from meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb)4
3 files changed, 51 insertions, 1 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/2894.patch b/meta-networking/recipes-connectivity/mosquitto/files/2894.patch
new file mode 100644
index 000000000..3275e57e3
--- /dev/null
+++ b/meta-networking/recipes-connectivity/mosquitto/files/2894.patch
@@ -0,0 +1,23 @@
1From: Joachim Zobel <jz-2017@heute-morgen.de>
2Date: Wed, 13 Sep 2023 09:55:34 +0200
3Subject: [PATCH] Link correctly with shared websockets library if needed see:
4 https://github.com/eclipse/mosquitto/pull/2751
5
6Patch contributed by Joachim Zobel <jz-2017@heute-morgen.de> and Daniel Engberg <daniel.engberg.lists@pyret.net>
7---
8 src/CMakeLists.txt | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
12index 9380a04..dce8313 100644
13--- a/src/CMakeLists.txt
14+++ b/src/CMakeLists.txt
15@@ -200,7 +200,7 @@ if (WITH_WEBSOCKETS)
16 link_directories(${mosquitto_SOURCE_DIR})
17 endif (WIN32)
18 else (STATIC_WEBSOCKETS)
19- set (MOSQ_LIBS ${MOSQ_LIBS} websockets)
20+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared)
21 endif (STATIC_WEBSOCKETS)
22 endif (WITH_WEBSOCKETS)
23
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/2895.patch b/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
new file mode 100644
index 000000000..a9e9c97b8
--- /dev/null
+++ b/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
@@ -0,0 +1,25 @@
1From: Joachim Zobel <jz-2017@heute-morgen.de>
2Date: Wed, 13 Sep 2023 10:05:43 +0200
3Subject: [PATCH] Mosquitto now waits for network-online when starting
4 (Closes: #1036450)
5
6See: https://github.com/eclipse/mosquitto/issues/2878
7---
8 service/systemd/mosquitto.service.simple | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/service/systemd/mosquitto.service.simple b/service/systemd/mosquitto.service.simple
12index 15ee0d6..c2a330b 100644
13--- a/service/systemd/mosquitto.service.simple
14+++ b/service/systemd/mosquitto.service.simple
15@@ -1,8 +1,8 @@
16 [Unit]
17 Description=Mosquitto MQTT Broker
18 Documentation=man:mosquitto.conf(5) man:mosquitto(8)
19-After=network.target
20-Wants=network.target
21+After=network-online.target
22+Wants=network-online.target
23
24 [Service]
25 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb
index 690b6bc12..0c9ccc810 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.17.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb
@@ -17,9 +17,11 @@ 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://1571.patch \ 19 file://1571.patch \
20 file://2894.patch \
21 file://2895.patch \
20" 22"
21 23
22SRC_URI[sha256sum] = "3be7a911236567c1a9fbe25baf3e3167004ba4a0c151a448ef1f7fc077dba52f" 24SRC_URI[sha256sum] = "d665fe7d0032881b1371a47f34169ee4edab67903b2cd2b4c083822823f4448a"
23 25
24inherit systemd update-rc.d useradd cmake pkgconfig 26inherit systemd update-rc.d useradd cmake pkgconfig
25 27