Commit Graph

27 Commits

Author SHA1 Message Date
Leon Anavi
9701b83409 mosquitto: Upgrade 1.6.11 -> 1.6.12
Upgrade to release 1.6.12:

Security:
- In some circumstances, Mosquitto could leak memory when handling
  PUBLISH messages. This is limited to incoming QoS 2 messages,
  and is related to the combination of the broker having
  persistence enabled, a clean session=false client, which was
  connected prior to the broker restarting, then has reconnected
  and has now sent messages at a sufficiently high rate that the
  incoming queue at the broker has filled up and hence messages
  are being dropped. This is more likely to have an effect where
  max_queued_messages is a small value. This has now been fixed.

Broker:
- Build warning fixes when building with WITH_BRIDGE=no and
  WITH_TLS=no.

Clients:
- All clients exit with an error exit code on CONNACK failure.
- Don't busy loop with `mosquitto_pub -l` on a slow connection.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-03 07:54:13 -07:00
Leon Anavi
7c6bf8926c mosquitto: Upgrade 1.6.10 -> 1.6.11
Upgrade to release 1.6.11:

Broker:
- Fix usage message only mentioning v3.1.1.
- Fix broker refusing to start if only websockets listeners were
  defined.
- Change systemd unit files to create /var/log/mosquitto before
  starting.
- Don't quit with an error if opening the log file isn't possible.
- Fix bridge topic remapping when using "" as the topic.
- Fix messages being queued for disconnected bridges when clean
  start was set to true.
- Fix `autosave_interval` not being triggered by messages being
  delivered.
- Fix websockets clients sometimes not being disconnected promptly.
- Fix "slow" file based logging by switching to line based
  buffering.
- Log protocol error message where appropriate from a bad
  UNSUBSCRIBE, rather than the generic "socket error".
- Don't try to start DLT logging if DLT unavailable, to avoid a
  long delay when shutting down the broker.
- Fix potential memory leaks.
- Fix clients not receiving messages after a previous client with
  the same client ID and positive will delay interval quit.
- Fix overly broad HAVE_PTHREAD_CANCEL compile guard.

Client library:
- Improved documentation around connect callback return codes.
- Fix `mosquitto_publish*()` no longer returning
  `MOSQ_ERR_NO_CONN` when not connected.
- `mosquitto_loop_start()` now sets a thread name on Linux,
  FreeBSD, NetBSD, and OpenBSD.
- Fix `mosquitto_loop_stop()` not stopping on Windows.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-17 12:26:41 -07:00
Martin Kelly
58d1f552a0 mosquitto: typo fix
The "ssl" PACKAGECONFIG setting contains WITH_EC_OFF instead of
WITH_EC=OFF, resulting in a build break when "ssl" is not set.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-08 13:58:03 -07:00
Martin Kelly
4381daa153 mosquitto: add native, nativesdk support
Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-08 13:58:03 -07:00
Zang Ruochen
aa615a8e60 mosquitto: upgrade 1.6.9 -> 1.6.10
Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-31 22:42:25 -07:00
Gianfranco Costamagna
d148bc4940 mosquitto: do not enable srv by default
Rationale can be found in the Debian packaging (debian/changelog):
Revert change enabling SRV functionality, it is disabled by default
upstream and of little benefit to any end user, but adds reasonable
complexity to the code.

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-08 16:38:30 -07:00
Gianfranco Costamagna
9f6d45379e mosquitto: refresh patches and sync with Debian packaging
Also add patch from debian to mqtt_protocol.h header file

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-08 16:38:30 -07:00
Pierre-Jean Texier
59f47567c0 mosquitto: upgrade 1.6.8 -> 1.6.9
Bugfix release. For details, see:

https://mosquitto.org/blog/2020/02/version-1-6-9-released/

Also remove patches applied upstream.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-03-02 10:12:22 -08:00
Mike Krupicka
257ea010b7 mosquitto: Use mosquitto.init for daemon init
Config file specification is missing in start) case. It is present already in restart) case.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-11 16:46:31 -08:00
Gianfranco Costamagna
318627819b mosquitto: apply upstream proposed patches to use cmake build system,
simplifying a lot the build and install process.

Signed-off-by: Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
Signed-off-by: Gianfranco Costamagna <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-25 12:44:25 -08:00
Leon Anavi
e0b841376f mosquitto: update to 1.6.8
Bugfix release. For details, see:

  https://mosquitto.org/blog/2019/11/version-1-6-8-released/

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-15 21:08:54 -08:00
Paul Eggleton
a21cc89423 mosquitto: update to 1.6.7
Bugfix release. For details, see:

  https://mosquitto.org/blog/2019/09/version-1-6-7-released/

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-10-09 23:27:15 -07:00
Leon Anavi
6f560065cf mosquitto: update to 1.6.6
Fix security vulnerabilities. For further details, see:
https://mosquitto.org/blog/2019/09/version-1-6-6-released/

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-22 08:13:17 -07:00
Paul Eggleton
40f6fd1253 mosquitto: update to 1.6.5
A lot of changes upstream since the last upgrade, the highlights:
* MQTT v5 protocol support
* Performance improvements
* New mosquitto_rr (request/response) client
* TLS enhancements: OCSP stapling, TLS Engine support, explicit TLS v1.3
  support, removed TLS v1.0 support

For further details, see https://mosquitto.org/blog/

Additionally, SUMMARY and DESCRIPTION were tidied up as needed.

Based upon an earlier upgrade patch by Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-16 18:25:26 -07:00
Oleksandr Kravchuk
5e70e778a2 mosquitto: update to 1.5.8
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-17 08:44:41 -07:00
André Draszik
24af1f974c meta-networking: remove True option to getVar calls (again)
A couple have still been missed in the past despite multiple
attempts at doing so (or simply have re-appeared?).

Search & replace made using the following command:
    sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \
        -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \
             | cut -d':' -f1 \
             | sort -u)

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-13 10:28:01 -08:00
André Draszik
83c38fc544 mosquitto: fully switch over to using PACKAGECONFIG_CONFARGS
Convert all other instances of explicit PACKAGECONFIG uses
to the PACKAGECONFIG_CONFARGS infrastructure.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-05 10:18:59 -08:00
André Draszik
e39709e381 mosquitto: fix build in systemd environments
The mosquitto systemd service file instructs systemd to wait
for mosquitto to notify systemd that mosquitto has started
correctly. This isn't working as mosquitto is not *compiled*
with systemd support enabled. As such, systemd restarts
mosquitto every few seconds.

For reference, this was introduced in commit a483d344d9
("mosquitto: Make enabling systemd also enable build dep on systemd")

Because we build mosquitto using the provided Makefile
infrastructure, the solution is to add PACKAGECONFIG_CONFARGS
to EXTRA_OEMAKE, so that the required make flags are added
to the make command line.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-05 10:18:59 -08:00
Paul Eggleton
b26618c971 mosquitto: update to 1.5.4
1.5.2, 1.5.3 and 1.5.4 include a number of fixes, notably for
vulnerability CVE-2018-12543 which allowed the server process to be
remotely crashed. For further information see:

  https://mosquitto.org/blog/2018/11/version-154-released/
  https://mosquitto.org/blog/2018/09/security-advisory-cve-2018-12543/
  https://mosquitto.org/blog/2018/09/version-152-released/

A build option was added to use the system version of uthash rather than
the bundled version so we no longer need the patch to do this.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-26 09:38:14 -08:00
Jeroen Hofstee
4ac262cc8b mosquitto: make websockets a PACKAGECONFIG option
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-26 07:35:44 -07:00
Khem Raj
a483d344d9 mosquitto: Make enabling systemd also enable build dep on systemd
systemd support in mqtt needs system developement headers and libs installed in recipe sysroot

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-08 13:32:12 -07:00
Paul Eggleton
9c0243b691 mosquitto: upgrade to 1.5.1
This includes one security fix and numerous other bugfixes. MQTT version
3.1.1 is now the default protocol.

See the following for details:

https://mosquitto.org/blog/2018/08/version-151-released/
https://mosquitto.org/blog/2018/05/version-1-5-released/

Changes to the recipe:
* Drop explicit installation of the libmosquitto.a static library
  because this no longer gets built by default, and the normal
  "make install" which we are running will install it anyway if it were
  to be enabled.
* Drop our service file since there is one supplied in the source tree
* Enable systemd notify support when systemd is being used
* Update comments in the init script

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-04 11:55:21 -07:00
Andre McCurdy
d56219b411 mosquitto: minor recipe cleanups
- Passing prefix, mandir and localedir via the Make command line
   allows patching of config.mk to be dropped.

 - The variable PREFIX isn't used anywhere in the mosquitto 1.4.15
   Makefiles, so doesn't need to be passed on the Make command line.
   That means the default do_compile() from base.bbclass can be used
   and the recipe specific do_compile() can be dropped.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-27 22:17:33 -07:00
Nicola Lunghi
101af9d652 mosquitto: add default configuration file
the mosquitto recipe doesn't add a mosquitto configuration file
add it from the mosquitto.conf.example file

Signed-off-by: Nicola Lunghi <nicola.lunghi@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-05 18:17:21 -07:00
Nicola Lunghi
8576a857be mosquitto: add mosquitto-examples package
the mosquitto install populate some .example files in
/etc/mosquitto. move thise example files in a separate package

The PACKAGE_BEFORE_PN is needed because otherwise those examples
end in the base mosquitto package

Signed-off-by: Nicola Lunghi <nicola.lunghi@jci.com>
Acked-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-05 18:17:21 -07:00
Paul Eggleton
e46a11d92a mosquitto: upgrade to 1.4.15
Security update - fixes CVE-2017-7651 and CVE-2017-7652, as well as a
number of other non-security issues.

For more details see the release announcement:

  https://mosquitto.org/blog/2018/02/security-advisory-cve-2017-7651-cve-2017-7652/

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-31 21:55:00 -07:00
Armin Kuster
51411b3c7a mosquito: move from oe to networking layer
mosquito has dependancy on meta-netowrking packages

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-05-17 08:32:26 -07:00