diff mbox

[1/4] package/dnsmasq: do not select Lua, depend on it

Message ID 42b88076d63c1a1043ee22090f819d1ad09df1d0.1450389598.git.yann.morin.1998@free.fr
State Changes Requested
Headers show

Commit Message

Yann E. MORIN Dec. 17, 2015, 10:06 p.m. UTC
Lua is a provider for the virtual package lua-interpreter, so it cannot
be selected, as explained in the manual.

Turn the 'select' into a 'depends on'; add a comment when Lua is not
enabled.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

---
Note: I haven't check if dnsmasq could use luajit instead of Lua. This
change is just a mechanical change.
---
 package/dnsmasq/Config.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Thomas Petazzoni Dec. 17, 2015, 10:08 p.m. UTC | #1
Dear Yann E. MORIN,

On Thu, 17 Dec 2015 23:06:33 +0100, Yann E. MORIN wrote:

>  config BR2_PACKAGE_DNSMASQ_LUA
>  	bool "Lua scripting support"
> -	select BR2_PACKAGE_LUA
> +	depends on BR2_PACKAGE_LUA
>  	help
>  	  Enable Lua scripting for dnsmasq
>  
> +comment "Lau scripting support needs the Lua interpreter"

Lau -> Lua

But I believe this comment is useless. It is obvious that if we want to
do Lua stuff, you must enable Lua.

Best regards,

Thomas
diff mbox

Patch

diff --git a/package/dnsmasq/Config.in b/package/dnsmasq/Config.in
index 9e1c462..e8028d8 100644
--- a/package/dnsmasq/Config.in
+++ b/package/dnsmasq/Config.in
@@ -38,10 +38,13 @@  config BR2_PACKAGE_DNSMASQ_IDN
 
 config BR2_PACKAGE_DNSMASQ_LUA
 	bool "Lua scripting support"
-	select BR2_PACKAGE_LUA
+	depends on BR2_PACKAGE_LUA
 	help
 	  Enable Lua scripting for dnsmasq
 
+comment "Lau scripting support needs the Lua interpreter"
+	depends on !BR2_PACKAGE_LUA
+
 config BR2_PACKAGE_DNSMASQ_CONNTRACK
 	bool "conntrack marking support"
 	select BR2_PACKAGE_LIBNETFILTER_CONNTRACK