summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/2895.patch38
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb (renamed from meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.22.bb)44
2 files changed, 24 insertions, 58 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/2895.patch b/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
deleted file mode 100644
index d9432e749e..0000000000
--- a/meta-networking/recipes-connectivity/mosquitto/files/2895.patch
+++ /dev/null
@@ -1,38 +0,0 @@
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---
8Upstream-Status: Submitted [https://github.com/eclipse-mosquitto/mosquitto/pull/2895]
9
10 service/systemd/mosquitto.service.simple | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
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
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/mosquitto_2.0.22.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb
index 1bdf54eea1..6a6e554453 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.22.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.1.2.bb
@@ -6,20 +6,19 @@ provides a lightweight method of carrying out messaging using a \
6publish/subscribe model. " 6publish/subscribe model. "
7HOMEPAGE = "http://mosquitto.org/" 7HOMEPAGE = "http://mosquitto.org/"
8SECTION = "console/network" 8SECTION = "console/network"
9LICENSE = "EPL-2.0 | EDL-1.0" 9LICENSE = "EPL-2.0 | BSD-3-Clause"
10LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=ca9a8f366c6babf593e374d0d7d58749 \ 10LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6d64fd27a4071b14ef656a0e8a4f4cf \
11 file://edl-v10;md5=9f6accb1afcb570f8be65039e2fcd49e \ 11 file://edl-v10;md5=9f6accb1afcb570f8be65039e2fcd49e \
12 file://epl-v20;md5=2dd765ca47a05140be15ebafddbeadfe \ 12 file://epl-v20;md5=2dd765ca47a05140be15ebafddbeadfe \
13 file://NOTICE.md;md5=a7a91b4754c6f7995020d1b49bc829c6 \ 13 file://NOTICE.md;md5=611234becddb76dca161d4ffce7ab420 \
14" 14"
15DEPENDS = "uthash cjson" 15DEPENDS = "uthash cjson"
16 16
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 \
20" 19"
21 20
22SRC_URI[sha256sum] = "2f752589ef7db40260b633fbdb536e9a04b446a315138d64a7ff3c14e2de6b68" 21SRC_URI[sha256sum] = "fd905380691ac65ea5a93779e8214941829e3d6e038d5edff9eac5fd74cbed02"
23 22
24inherit systemd update-rc.d useradd cmake pkgconfig 23inherit systemd update-rc.d useradd cmake pkgconfig
25 24
@@ -27,16 +26,24 @@ PACKAGECONFIG ??= "ssl websockets \
27 ${@bb.utils.filter('DISTRO_FEATURES','systemd', d)} \ 26 ${@bb.utils.filter('DISTRO_FEATURES','systemd', d)} \
28 " 27 "
29 28
30PACKAGECONFIG[manpages] = "-DDOCUMENTATION=ON,-DDOCUMENTATION=OFF,libxslt-native docbook-xsl-stylesheets-native" 29PACKAGECONFIG[manpages] = "-DWITH_DOCS=ON,-DWITH_DOCS=OFF,libxslt-native docbook-xsl-stylesheets-native"
31PACKAGECONFIG[dns-srv] = "-DWITH_SRV=ON,-DWITH_SRV=OFF,c-ares" 30PACKAGECONFIG[dns-srv] = "-DWITH_SRV=ON,-DWITH_SRV=OFF,c-ares"
32PACKAGECONFIG[ssl] = "-DWITH_TLS=ON -DWITH_TLS_PSK=ON -DWITH_EC=ON,-DWITH_TLS=OFF -DWITH_TLS_PSK=OFF -DWITH_EC=OFF,openssl" 31PACKAGECONFIG[ssl] = "-DWITH_TLS=ON -DWITH_TLS_PSK=ON,-DWITH_TLS=OFF -DWITH_TLS_PSK=OFF,openssl"
33PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd" 32PACKAGECONFIG[systemd] = "-DWITH_SYSTEMD=ON,-DWITH_SYSTEMD=OFF,systemd"
34PACKAGECONFIG[websockets] = "-DWITH_WEBSOCKETS=ON,-DWITH_WEBSOCKETS=OFF,libwebsockets" 33PACKAGECONFIG[websockets] = "-DWITH_WEBSOCKETS=ON -DWITH_WEBSOCKETS_BUILTIN=OFF,-DWITH_WEBSOCKETS=OFF,libwebsockets"
35PACKAGECONFIG[dlt] = "-DWITH_DLT=ON,-DWITH_DLT=OFF,dlt-daemon" 34PACKAGECONFIG[dlt] = "-DWITH_DLT=ON,-DWITH_DLT=OFF,dlt-daemon"
36 35PACKAGECONFIG[http-api] = "-DWITH_HTTP_API=ON,-DWITH_HTTP_API=OFF,libmicrohttpd"
36PACKAGECONFIG[persist-sqlite] = "-DWITH_PLUGIN_PERSIST_SQLITE=ON,-DWITH_PLUGIN_PERSIST_SQLITE=OFF,sqlite3"
37PACKAGECONFIG[ctrl-shell] = "-DWITH_CTRL_SHELL=ON,-DWITH_CTRL_SHELL=OFF,libedit"
38
39# Disable building/running tests to avoid GoogleTest discovery executing target binaries
40# during cross-compilation (Yocto). This prevents CMake from calling gtest_discover_tests().
41# See: Yocto + GTest cross-compile issues and gtest_discover_tests execution failures.
42# (Refs: SO example and googletest issue)
37EXTRA_OECMAKE = " \ 43EXTRA_OECMAKE = " \
38 -DWITH_BUNDLED_DEPS=OFF \ 44 -DWITH_BUNDLED_DEPS=OFF \
39 -DWITH_ADNS=ON \ 45 -DWITH_ADNS=OFF \
46 -DWITH_TESTS=OFF \
40" 47"
41 48
42do_install:append() { 49do_install:append() {
@@ -52,17 +59,14 @@ do_install:append() {
52 ${D}${sysconfdir}/init.d/mosquitto 59 ${D}${sysconfdir}/init.d/mosquitto
53} 60}
54 61
55PACKAGES += "libmosquitto1 libmosquittopp1 ${PN}-clients" 62PACKAGE_BEFORE_PN = "libmosquitto1 libmosquittopp1 ${PN}-clients ${PN}-examples"
56
57PACKAGE_BEFORE_PN = "${PN}-examples"
58 63
59FILES:${PN} = "${sbindir}/mosquitto \ 64FILES:${PN} += " \
60 ${bindir}/mosquitto_passwd \ 65 ${libdir}/mosquitto_acl_file.so \
61 ${bindir}/mosquitto_ctrl \ 66 ${libdir}/mosquitto_dynamic_security.so \
62 ${libdir}/mosquitto_dynamic_security.so \ 67 ${libdir}/mosquitto_password_file.so \
63 ${sysconfdir}/mosquitto \ 68 ${libdir}/mosquitto_sparkplug_aware.so \
64 ${sysconfdir}/init.d \ 69 ${systemd_unitdir}/system/mosquitto.service \
65 ${systemd_unitdir}/system/mosquitto.service \
66" 70"
67 71
68CONFFILES:${PN} += "${sysconfdir}/mosquitto/mosquitto.conf" 72CONFFILES:${PN} += "${sysconfdir}/mosquitto/mosquitto.conf"