package/collectd: depend on luainterpreter for lua support

Since collectd lua support is compatible with any luainterpreter
implementation we should depend on BR2_PACKAGE_HAS_LUAINTERPRETER
instead of unconditionally selecting BR2_PACKAGE_LUA.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[yann.morin.1998@free.fr: use luainterpreter as dependency]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
James Hilliard 2020-05-24 18:48:39 -06:00 committed by Yann E. MORIN
parent 9362f414c0
commit 911a9bf573
2 changed files with 5 additions and 2 deletions

View File

@ -65,11 +65,14 @@ config BR2_PACKAGE_COLLECTD_LOGSTASH
config BR2_PACKAGE_COLLECTD_LUA
bool "lua"
select BR2_PACKAGE_LUA
depends on BR2_PACKAGE_HAS_LUAINTERPRETER
help
Embeds a Lua interpreter into collectd and provides an
interface to collectd's plugin system.
comment "lua support needs a Lua interpreter"
depends on !BR2_PACKAGE_HAS_LUAINTERPRETER
config BR2_PACKAGE_COLLECTD_NOTIFY_EMAIL
bool "notify_email"
depends on !BR2_STATIC_LIBS # libesmtp

View File

@ -160,7 +160,7 @@ COLLECTD_DEPENDENCIES = \
$(if $(BR2_PACKAGE_COLLECTD_GRPC),grpc) \
$(if $(BR2_PACKAGE_COLLECTD_IPTABLES),iptables) \
$(if $(BR2_PACKAGE_COLLECTD_LOGSTASH),yajl) \
$(if $(BR2_PACKAGE_COLLECTD_LUA),lua) \
$(if $(BR2_PACKAGE_COLLECTD_LUA),luainterpreter) \
$(if $(BR2_PACKAGE_COLLECTD_MEMCACHEC),libmemcached) \
$(if $(BR2_PACKAGE_COLLECTD_MODBUS),libmodbus) \
$(if $(BR2_PACKAGE_COLLECTD_MQTT),mosquitto) \