Bump packaging to 1.6.4.

pull/1600/head
Roger A. Light 6 years ago
parent c118fb64a0
commit 84cea3005d

11
debian/changelog vendored

@ -1,11 +1,14 @@
mosquitto (1.5.8-1) unstable; urgency=medium mosquitto (1.6.4-1) unstable; urgency=medium
* New upstream release. * New upstream release.
* Remove bug-1162.patch, fixed upstream. * Bump standards version to 4.4.0, no changes needed.
* bug-1367.patch: fix bug with v5 DISCONNECT packets with remaining_length =
2 being treated as a protocol error. Fixed upstream for 1.6.5 or 1.7.
* Added override_dh_makeshlibs for catching symbol errors.
* Add --retry to init file as per * Add --retry to init file as per
https://github.com/eclipse/mosquitto/issues/1117 https://github.com/eclipse/mosquitto/issues/1117
-- Roger A. Light <roger@atchoo.org> Wed, 06 Mar 2019 10:21:43 +0000 -- Roger A. Light <roger@atchoo.org> Thu, 01 Aug 2019 22:51:08 +0100
mosquitto (1.5.7-1) unstable; urgency=medium mosquitto (1.5.7-1) unstable; urgency=medium
@ -17,7 +20,7 @@ mosquitto (1.5.7-1) unstable; urgency=medium
-- Roger A. Light <roger@atchoo.org> Mon, 18 Feb 2019 09:28:40 +0000 -- Roger A. Light <roger@atchoo.org> Mon, 18 Feb 2019 09:28:40 +0000
mosquitto (1.5.6-1) unstable; urgency=medium mosquitto (1.5.6-1) unstable; urgency=medium
* SECURITY UPDATE: If Mosquitto is configured to use a password file for * SECURITY UPDATE: If Mosquitto is configured to use a password file for
authentication, any malformed data in the password file will be treated as authentication, any malformed data in the password file will be treated as
valid. This typically means that the malformed data becomes a username and valid. This typically means that the malformed data becomes a username and

2
debian/control vendored

@ -10,7 +10,7 @@ Build-Depends: debhelper (>= 11),
pkg-config, pkg-config,
uthash-dev, uthash-dev,
uuid-dev uuid-dev
Standards-Version: 4.3.0 Standards-Version: 4.4.0
Homepage: https://mosquitto.org/ Homepage: https://mosquitto.org/
Vcs-Git: https://github.com/eclipse/mosquitto Vcs-Git: https://github.com/eclipse/mosquitto
Vcs-Browser: https://github.com/eclipse/mosquitto/tree/debian Vcs-Browser: https://github.com/eclipse/mosquitto/tree/debian

@ -5,3 +5,4 @@ libmosquitto.so.1 libmosquitto1 #MINVER#
(symver)MOSQ_1.3 1.3 (symver)MOSQ_1.3 1.3
(symver)MOSQ_1.4 1.4 (symver)MOSQ_1.4 1.4
(symver)MOSQ_1.5 1.5 (symver)MOSQ_1.5 1.5
(symver)MOSQ_1.6 1.6

@ -55,7 +55,7 @@ case "$1" in
exit 0 exit 0
fi fi
log_daemon_msg "Stopping network daemon:" "mosquitto" log_daemon_msg "Stopping network daemon:" "mosquitto"
if start-stop-daemon --stop --quiet --oknodo --pidfile ${PIDFILE} --retry 30; then if start-stop-daemon --stop --quiet --oknodo --pidfile ${PIDFILE}; then
log_end_msg 0 log_end_msg 0
rm -f ${PIDFILE} rm -f ${PIDFILE}
else else

@ -3,15 +3,15 @@ Author: Roger Light <roger@atchoo.org>
Forwarded: yes Forwarded: yes
--- a/config.mk --- a/config.mk
+++ b/config.mk +++ b/config.mk
@@ -244,8 +244,10 @@ @@ -242,8 +242,10 @@
endif endif
ifeq ($(WITH_SYSTEMD),yes) ifeq ($(WITH_SYSTEMD),yes)
- BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYSTEMD - BROKER_CPPFLAGS:=$(BROKER_CPPFLAGS) -DWITH_SYSTEMD
- BROKER_LIBS:=$(BROKER_LIBS) -lsystemd - BROKER_LDADD:=$(BROKER_LDADD) -lsystemd
+ ifneq ($(shell pkg-config --libs libsystemd),) + ifneq ($(shell pkg-config --libs libsystemd),)
+ BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_SYSTEMD $(shell pkg-config --cflags libsystemd) + BROKER_CPPFLAGS:=$(BROKER_CPPFLAGS) -DWITH_SYSTEMD $(shell pkg-config --cflags libsystemd)
+ BROKER_LIBS:=$(BROKER_LIBS) $(shell pkg-config --libs libsystemd) + BROKER_LDADD:=$(BROKER_LDADD) $(shell pkg-config --libs libsystemd)
+ endif + endif
endif endif

@ -0,0 +1,32 @@
Description: Fix for v5 DISCONNECT packets with remaining length=2
Author: Roger Light <roger@atchoo.org>
Forwarded: not-needed
--- a/src/handle_disconnect.c
+++ b/src/handle_disconnect.c
@@ -34,12 +34,12 @@ int handle__disconnect(struct mosquitto_db *db, struct mosquitto *context)
return MOSQ_ERR_INVAL;
}
- if(context->protocol == mosq_p_mqtt5 && context->in_packet.remaining_length > 1){
+ if(context->protocol == mosq_p_mqtt5 && context->in_packet.remaining_length > 0){
/* FIXME - must handle reason code */
rc = packet__read_byte(&context->in_packet, &reason_code);
if(rc) return rc;
- if(context->in_packet.remaining_length > 2){
+ if(context->in_packet.remaining_length > 1){
rc = property__read_all(CMD_DISCONNECT, &context->in_packet, &properties);
if(rc) return rc;
}
@@ -54,7 +54,7 @@ int handle__disconnect(struct mosquitto_db *db, struct mosquitto *context)
}
mosquitto_property_free_all(&properties); /* FIXME - TEMPORARY UNTIL PROPERTIES PROCESSED */
- if(context->in_packet.remaining_length != 0){
+ if(context->in_packet.pos != context->in_packet.remaining_length){
return MOSQ_ERR_PROTOCOL;
}
log__printf(NULL, MOSQ_LOG_DEBUG, "Received DISCONNECT from %s", context->id);
--
2.17.1

@ -3,7 +3,7 @@ Author: Roger Light <roger@atchoo.org>
Forwarded: not-needed Forwarded: not-needed
--- a/Makefile --- a/Makefile
+++ b/Makefile +++ b/Makefile
@@ -49,6 +49,7 @@ @@ -87,6 +87,7 @@
endif endif
$(INSTALL) -d "${DESTDIR}/etc/mosquitto" $(INSTALL) -d "${DESTDIR}/etc/mosquitto"
$(INSTALL) -m 644 mosquitto.conf "${DESTDIR}/etc/mosquitto/mosquitto.conf.example" $(INSTALL) -m 644 mosquitto.conf "${DESTDIR}/etc/mosquitto/mosquitto.conf.example"

@ -1,2 +1,3 @@
914525.patch 914525.patch
debian-config.patch debian-config.patch
bug-1367.patch

3
debian/rules vendored

@ -33,3 +33,6 @@ override_dh_auto_install:
install -m 644 debian/mosquitto.conf debian/tmp/etc/mosquitto/mosquitto.conf install -m 644 debian/mosquitto.conf debian/tmp/etc/mosquitto/mosquitto.conf
install -d debian/tmp/lib/systemd/system/ install -d debian/tmp/lib/systemd/system/
install -m 644 ./service/systemd/mosquitto.service.notify debian/tmp/lib/systemd/system/mosquitto.service install -m 644 ./service/systemd/mosquitto.service.notify debian/tmp/lib/systemd/system/mosquitto.service
override_dh_makeshlibs:
dh_makeshlibs -- -c4

Loading…
Cancel
Save