diff mbox series

[1/1] package/{collectd, domoticz}: fix outdated dependencies for mosquitto

Message ID 20200829130339.167330-1-titouan.christophe@railnova.eu
State Accepted
Headers show
Series [1/1] package/{collectd, domoticz}: fix outdated dependencies for mosquitto | expand

Commit Message

Titouan Christophe Aug. 29, 2020, 1:03 p.m. UTC
In 4fc62e1eb6b3adbfc3d3eb7f841275ae8cd1b424, we removed arch/toolchain
dependencies from the mosquitto library (MMU, !STATIC, SYNC4), and moved
them to the mosquitto broker only.

All the packages modified here only need the mosquitto library, so they
shouldn't have those depends anymore; but this was never done before.

Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
---
 package/collectd/Config.in | 1 -
 package/domoticz/Config.in | 3 ---
 2 files changed, 4 deletions(-)

Comments

Peter Korsgaard Aug. 29, 2020, 5:30 p.m. UTC | #1
>>>>> "Titouan" == Titouan Christophe <titouan.christophe@railnova.eu> writes:

 > In 4fc62e1eb6b3adbfc3d3eb7f841275ae8cd1b424, we removed arch/toolchain
 > dependencies from the mosquitto library (MMU, !STATIC, SYNC4), and moved
 > them to the mosquitto broker only.

 > All the packages modified here only need the mosquitto library, so they
 > shouldn't have those depends anymore; but this was never done before.

 > Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>
 > ---
 >  package/collectd/Config.in | 1 -
 >  package/domoticz/Config.in | 3 ---
 >  2 files changed, 4 deletions(-)

 > diff --git a/package/collectd/Config.in b/package/collectd/Config.in
 > index 4f54944cbc..ddf64015bd 100644
 > --- a/package/collectd/Config.in
 > +++ b/package/collectd/Config.in
 > @@ -607,7 +607,6 @@ comment "grpc needs a toolchain w/ C++, gcc >= 4.8"
 
 >  config BR2_PACKAGE_COLLECTD_MQTT
 >  	bool "mqtt"
 > -	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mosquitto
 >  	select BR2_PACKAGE_MOSQUITTO
 >  	help
 >  	  Sends metrics to and/or receives metrics from an MQTT broker.
 > diff --git a/package/domoticz/Config.in b/package/domoticz/Config.in
 > index c713ac58b1..a2ad9f1b07 100644
 > --- a/package/domoticz/Config.in
 > +++ b/package/domoticz/Config.in
 > @@ -1,8 +1,5 @@
 >  config BR2_PACKAGE_DOMOTICZ
 >  	bool "domoticz"
 > -	depends on BR2_USE_MMU # mosquitto

the domoticz code has a bunch of references to fork(), so I've kept
this.

 > -	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mosquitto
 > -	depends on !BR2_STATIC_LIBS # mosquitto

CMakeLists.txt explicitly checks for libmosquitto.so:

find_library(MQTT_LIBRARIES NAMES libmosquitto.so)

So I've left that as well.

Committed with that fixed, thanks.
Peter Korsgaard Aug. 29, 2020, 5:52 p.m. UTC | #2
>>>>> "Titouan" == Titouan Christophe <titouan.christophe@railnova.eu> writes:

 > In 4fc62e1eb6b3adbfc3d3eb7f841275ae8cd1b424, we removed arch/toolchain
 > dependencies from the mosquitto library (MMU, !STATIC, SYNC4), and moved
 > them to the mosquitto broker only.

 > All the packages modified here only need the mosquitto library, so they
 > shouldn't have those depends anymore; but this was never done before.

 > Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu>

Committed to 2020.02.x and 2020.05.x, thanks.
diff mbox series

Patch

diff --git a/package/collectd/Config.in b/package/collectd/Config.in
index 4f54944cbc..ddf64015bd 100644
--- a/package/collectd/Config.in
+++ b/package/collectd/Config.in
@@ -607,7 +607,6 @@  comment "grpc needs a toolchain w/ C++, gcc >= 4.8"
 
 config BR2_PACKAGE_COLLECTD_MQTT
 	bool "mqtt"
-	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mosquitto
 	select BR2_PACKAGE_MOSQUITTO
 	help
 	  Sends metrics to and/or receives metrics from an MQTT broker.
diff --git a/package/domoticz/Config.in b/package/domoticz/Config.in
index c713ac58b1..a2ad9f1b07 100644
--- a/package/domoticz/Config.in
+++ b/package/domoticz/Config.in
@@ -1,8 +1,5 @@ 
 config BR2_PACKAGE_DOMOTICZ
 	bool "domoticz"
-	depends on BR2_USE_MMU # mosquitto
-	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # mosquitto
-	depends on !BR2_STATIC_LIBS # mosquitto
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # sleep_for
 	# pthread_condattr_setclock
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL