All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] mosquitto: bump to version 1.5
@ 2018-06-10 13:42 Fabrice Fontaine
  2018-06-11 20:19 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2018-06-10 13:42 UTC (permalink / raw)
  To: buildroot

Remove patch (already in version)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...01-websockets.c-unbreak-build-without-TLS.patch | 49 ----------------------
 package/mosquitto/mosquitto.hash                   |  2 +-
 package/mosquitto/mosquitto.mk                     |  2 +-
 3 files changed, 2 insertions(+), 51 deletions(-)
 delete mode 100644 package/mosquitto/0001-websockets.c-unbreak-build-without-TLS.patch

diff --git a/package/mosquitto/0001-websockets.c-unbreak-build-without-TLS.patch b/package/mosquitto/0001-websockets.c-unbreak-build-without-TLS.patch
deleted file mode 100644
index e977fae56c..0000000000
--- a/package/mosquitto/0001-websockets.c-unbreak-build-without-TLS.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 4822aa97da80a86033ec6e4a8b2f4ad0911235cf Mon Sep 17 00:00:00 2001
-From: Peter Korsgaard <peter@korsgaard.com>
-Date: Sat, 3 Mar 2018 11:04:47 +0100
-Subject: [PATCH] websockets.c: unbreak build without TLS
-
-Commit 7943072b1f3b (Fix use_identity_as_username not working on websockets
-clients) added code which unconditionally accesses mosq-ssl, breaking the
-build when TLS support is disabled.
-
-Fix it by guarding this logic inside #ifdef WITH_TLS.
-
-[Upstream: https://dev.eclipse.org/mhonarc/lists/mosquitto-dev/msg01813.html]
-Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
----
- src/websockets.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/websockets.c b/src/websockets.c
-index d4d7961..a796f0a 100644
---- a/src/websockets.c
-+++ b/src/websockets.c
-@@ -201,12 +201,14 @@ static int callback_mqtt(struct libwebsocket_context *context,
- 				mosq->ws_context = context;
- #endif
- 				mosq->wsi = wsi;
-+#ifdef WITH_TLS
- 				if(in){
- 					mosq->ssl = (SSL *)in;
- 					if(!mosq->listener->ssl_ctx){
- 						mosq->listener->ssl_ctx = SSL_get_SSL_CTX(mosq->ssl);
- 					}
- 				}
-+#endif
- 				u->mosq = mosq;
- 			}else{
- 				return -1;
-@@ -240,7 +242,9 @@ static int callback_mqtt(struct libwebsocket_context *context,
- 					mosq->pollfd_index = -1;
- 				}
- 				mosq->wsi = NULL;
-+#ifdef WITH_TLS
- 				mosq->ssl = NULL;
-+#endif
- 				do_disconnect(db, mosq);
- 			}
- 			break;
--- 
-2.11.0
-
diff --git a/package/mosquitto/mosquitto.hash b/package/mosquitto/mosquitto.hash
index 91c855cb4e..87ddad9578 100644
--- a/package/mosquitto/mosquitto.hash
+++ b/package/mosquitto/mosquitto.hash
@@ -1,5 +1,5 @@
 # Locally calculated after checking gpg signature
-sha256 7d3b3e245a3b4ec94b05678c8199c806359737949f4cfe0bf936184f6ca89a83  mosquitto-1.4.15.tar.gz
+sha256 80c9606a906c736fe582b67bdfb650ee45239fea058fe34927f81277d3486e21  mosquitto-1.5.tar.gz
 
 # License files
 sha256 cc77e25bafd40637b7084f04086d606f0a200051b61806f97c93405926670bc1  LICENSE.txt
diff --git a/package/mosquitto/mosquitto.mk b/package/mosquitto/mosquitto.mk
index ec5fc02f9f..993da2f925 100644
--- a/package/mosquitto/mosquitto.mk
+++ b/package/mosquitto/mosquitto.mk
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-MOSQUITTO_VERSION = 1.4.15
+MOSQUITTO_VERSION = 1.5
 MOSQUITTO_SITE = https://mosquitto.org/files/source
 MOSQUITTO_LICENSE = EPL-1.0 or EDLv1.0
 MOSQUITTO_LICENSE_FILES = LICENSE.txt epl-v10 edl-v10
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] mosquitto: bump to version 1.5
  2018-06-10 13:42 [Buildroot] [PATCH 1/1] mosquitto: bump to version 1.5 Fabrice Fontaine
@ 2018-06-11 20:19 ` Peter Korsgaard
  2018-06-12 17:59   ` Fabrice Fontaine
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2018-06-11 20:19 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Remove patch (already in version)
 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

How much have you tested this? I haven't followed the discussion on
mosquitto-dev in a lot of details, but apparently there is an unresolved
crash issue:

https://github.com/eclipse/mosquitto/issues/505

And a compilation issue caused by a variable name change:

https://github.com/eclipse/mosquitto/pull/810

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] mosquitto: bump to version 1.5
  2018-06-11 20:19 ` Peter Korsgaard
@ 2018-06-12 17:59   ` Fabrice Fontaine
  2018-06-12 19:59     ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2018-06-12 17:59 UTC (permalink / raw)
  To: buildroot

Dear Peter,

2018-06-11 22:19 GMT+02:00 Peter Korsgaard <peter@korsgaard.com>:

> >>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
>
>  > Remove patch (already in version)
>  > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
>
> How much have you tested this?

I have tested it and it seems to work, mosquitto was starting, basic
publish / subscribe was ok.


> I haven't followed the discussion on
> mosquitto-dev in a lot of details, but apparently there is an unresolved
> crash issue:
>
> https://github.com/eclipse/mosquitto/issues/505

This issue is indeed still present in v1.5.
The following steps leads to a crash on the broker:

   - connect
   - subscribe to topic/a
   - subscribe to topic/b
   - unsubscribe from topic/a
   - disconnect

PR #531 fixes the issue but was not merged perhaps because there is a
conflict in src/database.c that was not fixed. I will send a v2 of my patch
to fix this issue.

>
>
> And a compilation issue caused by a variable name change:
>
> https://github.com/eclipse/mosquitto/pull/810

I didn't encounter this issue because WITH_WRAP is always set to OFF in our
builds.

>
>
> --
> Bye, Peter Korsgaard
>
Best Regards,

Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180612/f69902c4/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] mosquitto: bump to version 1.5
  2018-06-12 17:59   ` Fabrice Fontaine
@ 2018-06-12 19:59     ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2018-06-12 19:59 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

Hi,

 >> How much have you tested this?

 > I have tested it and it seems to work, mosquitto was starting, basic
 > publish / subscribe was ok.

Ok.


 >> I haven't followed the discussion on
 >> mosquitto-dev in a lot of details, but apparently there is an unresolved
 >> crash issue:
 >> 
 >> https://github.com/eclipse/mosquitto/issues/505

 > This issue is indeed still present in v1.5.
 > The following steps leads to a crash on the broker:

 >    - connect
 >    - subscribe to topic/a
 >    - subscribe to topic/b
 >    - unsubscribe from topic/a
 >    - disconnect

 > PR #531 fixes the issue but was not merged perhaps because there is a
 > conflict in src/database.c that was not fixed. I will send a v2 of my patch
 > to fix this issue.

Ok, thanks!

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-12 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-10 13:42 [Buildroot] [PATCH 1/1] mosquitto: bump to version 1.5 Fabrice Fontaine
2018-06-11 20:19 ` Peter Korsgaard
2018-06-12 17:59   ` Fabrice Fontaine
2018-06-12 19:59     ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.