summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-connectivity/mosquitto
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-connectivity/mosquitto')
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/1571.patch22
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/files/2894.patch25
-rw-r--r--meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.20.bb (renamed from meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb)6
3 files changed, 2 insertions, 51 deletions
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/1571.patch b/meta-networking/recipes-connectivity/mosquitto/files/1571.patch
deleted file mode 100644
index 627638ec89..0000000000
--- a/meta-networking/recipes-connectivity/mosquitto/files/1571.patch
+++ /dev/null
@@ -1,22 +0,0 @@
1Upstream-Status: Submitted [https://github.com/eclipse/mosquitto/pull/1571]
2From 3fe5468f1bdca1bff1d18cf43c9e338f41aa9e32 Mon Sep 17 00:00:00 2001
3From: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
4Date: Wed, 22 Jan 2020 12:39:49 +0100
5Subject: [PATCH] Add dynamic symbols linking with cmake too
6
7Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
8---
9 lib/CMakeLists.txt | 2 ++
10 1 file changed, 2 insertions(+)
11
12--- a/lib/CMakeLists.txt
13+++ b/lib/CMakeLists.txt
14@@ -94,6 +94,8 @@
15 OUTPUT_NAME mosquitto
16 VERSION ${VERSION}
17 SOVERSION 1
18+ LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linker.version
19+ LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/linker.version"
20 )
21
22 install(TARGETS libmosquitto
diff --git a/meta-networking/recipes-connectivity/mosquitto/files/2894.patch b/meta-networking/recipes-connectivity/mosquitto/files/2894.patch
deleted file mode 100644
index 7374cbd26f..0000000000
--- a/meta-networking/recipes-connectivity/mosquitto/files/2894.patch
+++ /dev/null
@@ -1,25 +0,0 @@
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---
8Upstream-Status: Pending
9
10 src/CMakeLists.txt | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
14index 9380a04..dce8313 100644
15--- a/src/CMakeLists.txt
16+++ b/src/CMakeLists.txt
17@@ -200,7 +200,7 @@ if (WITH_WEBSOCKETS)
18 link_directories(${mosquitto_SOURCE_DIR})
19 endif (WIN32)
20 else (STATIC_WEBSOCKETS)
21- set (MOSQ_LIBS ${MOSQ_LIBS} websockets)
22+ set (MOSQ_LIBS ${MOSQ_LIBS} websockets_shared)
23 endif (STATIC_WEBSOCKETS)
24 endif (WITH_WEBSOCKETS)
25
diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.20.bb
index ea9eb4857b..75aaf7cf38 100644
--- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb
+++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.20.bb
@@ -16,12 +16,10 @@ DEPENDS = "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://1571.patch \
20 file://2894.patch \
21 file://2895.patch \ 19 file://2895.patch \
22" 20"
23 21
24SRC_URI[sha256sum] = "d665fe7d0032881b1371a47f34169ee4edab67903b2cd2b4c083822823f4448a" 22SRC_URI[sha256sum] = "ebd07d89d2a446a7f74100ad51272e4a8bf300b61634a7812e19f068f2759de8"
25 23
26inherit systemd update-rc.d useradd cmake pkgconfig 24inherit systemd update-rc.d useradd cmake pkgconfig
27 25
@@ -46,7 +44,7 @@ do_install:append() {
46 install -m 0644 ${S}/service/systemd/mosquitto.service.notify ${D}${systemd_unitdir}/system/mosquitto.service 44 install -m 0644 ${S}/service/systemd/mosquitto.service.notify ${D}${systemd_unitdir}/system/mosquitto.service
47 45
48 install -d ${D}${sysconfdir}/init.d/ 46 install -d ${D}${sysconfdir}/init.d/
49 install -m 0755 ${WORKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto 47 install -m 0755 ${UNPACKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto
50 sed -i -e 's,@SBINDIR@,${sbindir},g' \ 48 sed -i -e 's,@SBINDIR@,${sbindir},g' \
51 -e 's,@BASE_SBINDIR@,${base_sbindir},g' \ 49 -e 's,@BASE_SBINDIR@,${base_sbindir},g' \
52 -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ 50 -e 's,@LOCALSTATEDIR@,${localstatedir},g' \